ceph-salt icon indicating copy to clipboard operation
ceph-salt copied to clipboard

Do we really need ceph-salt grains?

Open ricardoasmarques opened this issue 3 years ago • 1 comments

(Relying on the pillar is more secure because only the master node can set it)

For ceph-salt minions targetting, we can use pillar:

salt -I ceph-salt:minions state.apply <state>

instead of grain:

salt -G ceph-salt:member state.apply <state>

So, apart from ceph-salt:execution grains that are set during execution for orchestration, do we really need any other ceph-salt grains?

(AFAIK, Suse Manager doesn't support grains)

ricardoasmarques avatar Oct 13 '20 22:10 ricardoasmarques

I think we still need grains when we want to target minion by role, for instance:

salt -G ceph-salt:roles:admin test.ping

ricardoasmarques avatar Oct 13 '20 22:10 ricardoasmarques