Skip to content

Instantly share code, notes, and snippets.

@elithrar
Created July 23, 2014 04:43
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 elithrar/6447fc02b12723a4bebd to your computer and use it in GitHub Desktop.
Save elithrar/6447fc02b12723a4bebd to your computer and use it in GitHub Desktop.
include:
- users
- nginx
- postgresql
# create web directory
/srv/www/www.domain.com:
file.directory:
- user: {{ pillar['username'] }}
- group: {{ pillar['username'] }}
- mode: 755
- require:
- directory: /srv/www/
- user: {{ pillar['username'] }}
- group: www-data
# public directory
/srv/www/www.domain.com/public:
file.directory:
- user: {{ pillar['username'] }}
- group: www-data
- mode: 2750
- recurse:
- user
- group
- mode
- require:
- directory: /srv/www/www.domain.com/
- user: {{ pillar['username'] }}
- group: www
`
----------
ID: /srv/www/www.domain.com
Function: file.directory
Result: False
Comment: The following requisites were not found:
require:
directory: /srv/www/
Changes:
----------
ID: /srv/www/www.domain.com/public
Function: file.directory
Result: False
Comment: The following requisites were not found:
require:
directory: /srv/www/www.domain.com/
group: www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment