'SaltStack - FreeBSD Ports - ports.update
Why is this state.sls not working?
install_ports:
- ports.update:
- extract: True
When running
salt '*' state.highstate
I get a return of:
SaltMaster:
Data failed to compile:
----------
ID install_ports in SLS FreeBSD.11_0.ports is not a dictionary
ERROR: Minions returned with non-zero exit code
root@SaltMaster [~]$
I worked according to:
https://docs.saltstack.com/en/2015.8/ref/modules/all/salt.modules.freebsdports.html
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ports.html#module-salt.states.ports
Solution 1:[1]
Lines beginning with "-" are items in a YAMl list, and your 'install_ports' line is expecting a dictionary.
Thus, you should change '- ports.update:' to 'ports.update:' to get rid of the error.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | rothsa |
