radosgw service checking added to formula
diff --git a/ceph/map.jinja b/ceph/map.jinja
index e97db67..3ef3372 100644
--- a/ceph/map.jinja
+++ b/ceph/map.jinja
@@ -32,9 +32,11 @@
{% set radosgw = salt['grains.filter_by']({
'Debian': {
'pkgs': ['ceph-common','radosgw','python-rados','librados2'],
+ 'services': ['radosgw-all'],
},
'RedHat': {
'pkgs': ['ceph-common','radosgw'],
+ 'services': ['radosgw-all'],
},
}, merge=salt['pillar.get']('ceph:radosgw')) %}
diff --git a/ceph/radosgw.sls b/ceph/radosgw.sls
index 7f79b34..3a6f4c6 100644
--- a/ceph/radosgw.sls
+++ b/ceph/radosgw.sls
@@ -13,4 +13,14 @@
- require:
- pkg: ceph_radosgw_packages
+radosgw_service:
+ service.running:
+ - name: {{ radosgw.services }}
+ - enable: True
+ - require:
+ - pkg: ceph_radosgw_packages
+ - file: /var/lib/ceph/radosgw/ceph-radosgw.gateway/done
+ - watch:
+ - file: /etc/ceph/ceph.conf
+
{%- endif %}
\ No newline at end of file