Skip to content

Instantly share code, notes, and snippets.

@valentinbud
Last active December 20, 2015 12:39
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 valentinbud/6132571 to your computer and use it in GitHub Desktop.
Save valentinbud/6132571 to your computer and use it in GitHub Desktop.
----------
State: - service
Name: nginx
Function: running
Result: False
Comment: The following requisites were not found:
watch: {'file': '/etc/nginx/sites-enabled/*'}
watch: {'file': '/etc/nginx/nginx.conf'}
watch: {'file': '/etc/nginx/conf.d/*.conf'}
Changes:
python-software-properties:
pkg.installed:
- name: python-software-properties
nginx:
pkgrepo.managed:
- ppa: nginx/stable
- require:
- pkg: python-software-properties
- require_in:
- pkg: nginx
pkg.installed:
- name: nginx-extras
service.running:
- name: nginx
- enable: True
- require:
- pkg: nginx
- watch:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment