You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the README I see there are two states apt.update and apt.upgrade so you should be able to just run those and have and update/upgrade, did you tried this?
Looking at the README I see there are two states apt.update and apt.upgrade so you should be able to just run those and have and update/upgrade, did you tried this?
Tried that as shown below....
kelleher@buffet:~$ sudo salt 'vsi02' state.apply apt.update
vsi02:
----------
ID: apt-get update
Function: cmd.wait
Result: False
Comment: The following requisites were not found:
watch:
file: /etc/apt/sources.list
file: /etc/apt/sources.list.d
Started: 14:31:56.468828
Duration: 0.043 ms
Changes:
Summary for vsi02
------------
Succeeded: 0
Failed: 1
------------
Total states run: 1
Total run time: 0.043 ms
ERROR: Minions returned with non-zero exit code
kelleher@buffet:~$
This aligns with a commit on 2016-04-23, but not sure why the change was made - 7c7cd9f
Why have update and upgrade only run when sources.list or sources.list.d are changed?
This means it can't be run as a maintenance job. I'm new to Saltstack formulas, so am I missing something obvious?
I modified and tested the formula to use additional pillar data, "always_update" and "always_upgrade" to enable the maintenance behavior, e.g.
Any interesting in a pull request?
The text was updated successfully, but these errors were encountered: