Add ceph.pkg state;

This commit is contained in:
Antsiferov Grigory 2017-06-14 16:43:24 +03:00
parent 4ebed04ada
commit bb2025337d

72
sls/ceph/pkg.sls Normal file
View File

@ -0,0 +1,72 @@
ceph:
pkg.installed:
- pkgs:
- sys-cluster/ceph: "[-nss,cryptopp,radosgw,tcmalloc,xfs]"
user.present:
- system: True
- home: /var/lib/ceph
- shell: /sbin/nologin
- gid_from_name: True
/etc/ceph/:
file.directory:
- create: True
- mode: 755
- user: root
- group: ceph
- require:
- user: ceph
/var/lib/ceph/:
file.directory:
- create: True
- mode: 755
- user: ceph
- group: ceph
- require:
- user: ceph
/var/lib/ceph/mon/:
file.directory:
- create: True
- mode: 755
- user: ceph
- group: ceph
- require:
- file: /var/lib/ceph/
/var/lib/ceph/osd/:
file.directory:
- create: True
- mode: 755
- user: ceph
- group: ceph
- require:
- file: /var/lib/ceph/
/var/lib/ceph/mds/:
file.directory:
- create: True
- mode: 755
- user: ceph
- group: ceph
- require:
- file: /var/lib/ceph/
/var/log/ceph/:
file.directory:
- create: True
- mode: 755
- user: ceph
- group: ceph
- require:
- user: ceph
/var/log/ceph/stat/:
file.directory:
- create: True
- mode: 755
- user: ceph
- group: ceph
- require:
- file: /var/log/ceph/