-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi, in "Load Balancing Configuration via a New Role" the file /srv/salt/load-balance/init.sls is shown as:
nginx:
pkg.installed: []
service.running:
watch:
file: /etc/nginx/nginx.conf
/etc/nginx/nginx.conf:
file.managed:
- source: salt://load-balance/nginx.conf
You're then able to run state.apply, but in my case I get:
$ sudo salt minion1 state.apply
minion1:
Data failed to compile:
----------
State 'nginx' in SLS 'load-balance' is not formed as a list
Fixed by inserting - before watch and file, as in /srv/salt/hwaas-service/init.sls.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels