mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-07 02:45:21 +00:00
28 lines
559 B
Plaintext
28 lines
559 B
Plaintext
include:
|
|
- ceph.pkg
|
|
- ceph.conf
|
|
|
|
/etc/init.d/radosgw:
|
|
file.managed:
|
|
- source: salt://ceph/files/radosgw.initd
|
|
- mode: 755
|
|
- user: root
|
|
- group: root
|
|
- require:
|
|
- pkg: ceph
|
|
|
|
|
|
{% for client in salt['pillar.get']('ceph:radosgw:clients', []) %}
|
|
/etc/init.d/radosgw.{{ client }}:
|
|
file.symlink:
|
|
- target: /etc/init.d/radosgw
|
|
|
|
radosgw.{{ client }}:
|
|
service.running:
|
|
- enable: True
|
|
- watch:
|
|
- file: /etc/ceph/ceph.conf
|
|
- file: /etc/init.d/radosgw
|
|
- file: /etc/init.d/radosgw.{{ client }}
|
|
{% endfor %}
|