Hi Franky,
Hi Strahil,
I have a small addition to Silvio's answer: if you don't want to call the whole highstate in the cron job, you can just apply the state that corresponds to the configuration channel which contains your configuration file. Each configuration channel creates a salt state that you can use, although its name is not visible in the UI (yet). The naming scheme of the generated states is as follows:
manager_org_<your-org-id>.<config-channel-label>
So if your motd file is in configuration channel with label 'motd-config' and your organization id is 1, then you can apply the state locally on the minion using this command:
salt-call state.apply manager_org_1.motd-config
This is nice to know - will reduce the stress. ---So far i manage to "verify" the file: uyuni:~ # spacecmd configchannel_verifyfile TEST '/etc/motd' opensuse15-stripe INFO: Connected to https://uyuni.localdomain.com/rpc/api as admin INFO: Action ID: 69 --Check if it completed: uyuni:~ # spacecmd schedule_details 69 INFO: Connected to https://uyuni.localdomain.com/rpc/api as admin ID: 69 Action: Show differences between profiled config files and deployed config files scheduled by admin User: admin Date: 20190604T15:09:34 Completed: 1 Failed: 0 Pending: 0 Completed Systems ----------------- opensuse15-stripe ---Check the status of the task: uyuni:~ # spacecmd schedule_getoutput 69 INFO: Connected to https://uyuni.localdomain.com/rpc/api as admin System: opensuse15-stripe Completed: 20190604T15:09:40 Output ------ Files successfully compared But I can't get the output indicating if the file is the same or not. Any hint how can I find via spacecmd which systems have a difference between the file in the channel and locally on the minion? Silvio, Is there any plan such feature (automatic replacement of files that differs from the configuration channel) to be added into uyuni and thus into SuSE Manager ? Best Regards, Strahil Nikolov -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org