add radosgw role into ceph
diff --git a/ceph/init.sls b/ceph/init.sls
index a01aa88..d44ffec 100644
--- a/ceph/init.sls
+++ b/ceph/init.sls
@@ -7,4 +7,7 @@
 {% endif %}
 {% if pillar.ceph.client is defined %}
 - ceph.client
+{% endif %}
+{% if pillar.ceph.radosgw is defined %}
+- ceph.radosgw
 {% endif %}
\ No newline at end of file
diff --git a/ceph/map.jinja b/ceph/map.jinja
index 9bf8886..e97db67 100644
--- a/ceph/map.jinja
+++ b/ceph/map.jinja
@@ -29,5 +29,14 @@
     },
 }, merge=salt['pillar.get']('ceph:client')) %}
 
+{% set radosgw = salt['grains.filter_by']({
+    'Debian': {
+        'pkgs': ['ceph-common','radosgw','python-rados','librados2'],
+    },
+    'RedHat': {
+        'pkgs': ['ceph-common','radosgw'],
+    },
+}, merge=salt['pillar.get']('ceph:radosgw')) %}
+
 {#- vim:ft=sls
 -#}
\ No newline at end of file
diff --git a/ceph/radosgw.sls b/ceph/radosgw.sls
new file mode 100644
index 0000000..7f79b34
--- /dev/null
+++ b/ceph/radosgw.sls
@@ -0,0 +1,16 @@
+{%- from "ceph/map.jinja" import radosgw with context %}
+{%- if radosgw.enabled %}
+
+include:
+- ceph.client
+
+ceph_radosgw_packages:
+  pkg.installed:
+  - names: {{ radosgw.pkgs }}
+
+/var/lib/ceph/radosgw/ceph-radosgw.gateway/done:
+  file.directory:
+  - require:
+    - pkg: ceph_radosgw_packages
+
+{%- endif %}
\ No newline at end of file