SUSE / machinery

A systems management toolkit for Linux
GNU General Public License v3.0
158 stars 32 forks source link

Add Salt states exporter #2280

Closed guangyee closed 3 years ago

guangyee commented 3 years ago

Add a Salt states exporter. For example, to export the system description to Salt states.

./bin/machinery export-salt --salt-dir /tmp/salt-foo foo --force

User is expected to copy the files in salt-dir to the Salt Master's states dir. For example,

cp -r /tmp/salt-foo/foo-salt /srv/salt/foo

To apply the states.

salt 'foo' state.apply bar