Skip to content

Instantly share code, notes, and snippets.

@justlooks
Created September 27, 2013 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justlooks/6723880 to your computer and use it in GitHub Desktop.
Save justlooks/6723880 to your computer and use it in GitHub Desktop.
why i can not write ID declaration
# cat init.sls
proinstall:
/tmp/mytest1:
file.managed:
- text: "hello me"
# salt '*' state.sls proinstall
bm:
Data failed to compile:
----------
The state "proinstall" in sls proinstall is not formed as a list
@jcockhren
Copy link

proinstall:
  file.managed:
    - name: /tmp/mytest1
    - text: "hello me"

OR

/tmp/mytest1:
  file.managed:
    - text: "hello me"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment