Last active
August 29, 2015 14:23
-
-
Save mjinks/a931e4ac4acfc3eb2a0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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