mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 10:25:23 +00:00
Add ceph.pkg state;
This commit is contained in:
parent
4ebed04ada
commit
bb2025337d
72
sls/ceph/pkg.sls
Normal file
72
sls/ceph/pkg.sls
Normal 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/
|
Loading…
Reference in New Issue
Block a user