SUSE / DeepSea

A collection of Salt files for deploying, managing and automating Ceph.
GNU General Public License v3.0
160 stars 75 forks source link

[next] Simpler configuration #1726

Closed swiftgist closed 5 years ago

swiftgist commented 5 years ago

The original configuration uses stack.py and supports individual minion customizations. With a default and user pillar directory tree, this led to confusion for many more than once.

This strategy abandons using stack.py and the custom trees. Instead of file globbing, values of policy.cfg become Salt targets. The roles are generated the same without the intermittent files. Lastly, the global.yml moves out of the stack directory and is only initialized. The global.yml is still a user maintained file.

Signed-off-by: Eric Jackson ejackson@suse.com

Fixes #

Description:


Checklist:

swiftgist commented 5 years ago

If everyone agrees on the change to policy.cfg and this overall direction, I'll look to complete the calls to the network parts of the DeepSeaGlobal class.

swiftgist commented 5 years ago

An example policy.cfg

role-master: admin*
role-admin: mon*
role-igw: igw*
role-rgw: rgw*
role-mon: mon*
role-mds: mds*
role-mgr: mon*
rgw:
  role-red: rgw*
  role-blue: rgw*
ganesha:
  role-alpha: ganesha1*
  role-beta: ganesha2*

role-client-cephfs: client1*
role-client-radosgw: client1*
role-client-iscsi: client1*
role-client-nfs: client1*

role-benchmark-rbd: client2*
role-benchmark-blockdev: client2*
role-benchmark-fs: client2*
jschmid1 commented 5 years ago

If everyone agrees on the change to policy.cfg and this overall direction, I'll look to complete the calls to the network parts of the DeepSeaGlobal class.

This sounds like the right direction to me!

tserong commented 5 years ago

This sounds like the right direction to me!

Likewise :-)

jschmid1 commented 5 years ago

besides the linter complaints, shall we merge this and #1728 together?

swiftgist commented 5 years ago

Fine with me... the last couple of linter complaints I was undecided on.

jschmid1 commented 5 years ago

I fear we have to rebase here

swiftgist commented 5 years ago

okay.... give me a bit... still resolving some other issues.

swiftgist commented 5 years ago

rebased... we need to chat about Salt config vs. Ceph config