From bb2025337dc1abe4d14e280535c94a0c0017c59d Mon Sep 17 00:00:00 2001 From: Antsiferov Grigory Date: Wed, 14 Jun 2017 16:43:24 +0300 Subject: [PATCH] Add ceph.pkg state; --- sls/ceph/pkg.sls | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 sls/ceph/pkg.sls diff --git a/sls/ceph/pkg.sls b/sls/ceph/pkg.sls new file mode 100644 index 0000000..42ad944 --- /dev/null +++ b/sls/ceph/pkg.sls @@ -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/