~openstack-charmers-archive/charms/trusty/ceph/next

« back to all changes in this revision

Viewing changes to hooks/ceph.py

  • Committer: James Page
  • Date: 2013-06-23 19:10:07 UTC
  • mto: This revision was merged to the branch mainline in revision 62.
  • Revision ID: james.page@canonical.com-20130623191007-oez473wzbv30yg7y
Initial move to charm-helpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
import json
11
11
import subprocess
12
12
import time
13
 
import utils
 
13
#import utils
14
14
import os
15
15
import apt_pkg as apt
16
16
 
18
18
PEON = 'peon'
19
19
QUORUM = [LEADER, PEON]
20
20
 
 
21
PACKAGES = ['ceph', 'gdisk', 'ntp', 'btrfs-tools', 'python-ceph', 'xfsprogs']
 
22
 
21
23
 
22
24
def is_quorum():
23
25
    asok = "/var/run/ceph/ceph-mon.{}.asok".format(utils.get_unit_hostname())