Skip to content

Commit

Permalink
Improvements and bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
komljen committed Jul 18, 2014
1 parent 524df06 commit e25ca36
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 3 additions & 5 deletions salt/ceph/mon.sls
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ start_mon:
- cmd: populate_mon
add_mon:
cmd.wait:
cmd.run:
- name: ceph mon add {{ host }} {{ ip }}
- timeout: 5
- watch:
- cmd: start_mon
- onlyif: status ceph-mon id={{ host }}
- unless: ceph mon dump | grep {{ host }}
5 changes: 2 additions & 3 deletions salt/ceph/osd.sls
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ disk_prepare {{ dev }}:
- unless: parted --script /dev/{{ dev }} print | grep 'ceph data'

disk_activate {{ dev }}1:
cmd.wait:
cmd.run:
- name: ceph-disk activate /dev/{{ dev }}1
- onlyif: test -f {{ bootstrap_osd_keyring }}
- unless: ceph-disk list | egrep "/dev/{{ dev }}1.*active"
- timeout: 10
- watch:
- cmd: disk_prepare {{ dev }}

{% endif -%}
{% endfor -%}
Expand Down
5 changes: 5 additions & 0 deletions salt/common/salt-minion/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ salt-minion:
- require:
- pkg: salt-minion

mine_update:
module.wait:
- name: mine.update
- watch:
- service: salt-minion

0 comments on commit e25ca36

Please sign in to comment.