Skip to content

Instantly share code, notes, and snippets.

@mjinks
Last active August 29, 2015 14:23
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 mjinks/a931e4ac4acfc3eb2a0c to your computer and use it in GitHub Desktop.
Save mjinks/a931e4ac4acfc3eb2a0c to your computer and use it in GitHub Desktop.
# In the master, I have:
file_roots:
base:
- /srv/salt/
# In /srv/salt/top.sls, I have (same as before):
base:
'*':
- motd
# In /srv/salt/motd/init.sls I have:
/etc/motd:
file.managed:
- source: salt://motd/files/motd
- motd: 644
- user: root
- group: root
- backup: minion
# …and in a plain file at /srv/motd/files/motd I have:
This is just some text.
# … but I'm getting the same error I had before:
$ sudo salt '*' state.sls motd
# …yields:
Data failed to compile:
----------
No matching sls found for 'motd' in env 'base'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment