Created
August 25, 2015 18:17
-
-
Save kevinquinnyo/17136f832bbfeefdba32 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
def web(self): | |
self.states[self.webroot_base] = { | |
'file.directory': [ | |
{'name': self.webroot_base} | |
{'mode': 750}, | |
{'owner': 'root'}, | |
{'group': 'root'} | |
] | |
} | |
webroot_options = [ | |
{'mode': 755}, | |
{'owner': 'www-data'}, | |
{'group': 'www-data'}, | |
{'require': [ | |
{'file': self.webroot_base} | |
]}, | |
] | |
# [ ..snip.. ] | |
self.states[self.webroot_base + website] = {'file.directory': [webroot_options]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment