Skip to content

Instantly share code, notes, and snippets.

@jlund
Created June 11, 2013 23:02
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 jlund/5761535 to your computer and use it in GitHub Desktop.
Save jlund/5761535 to your computer and use it in GitHub Desktop.
Salt State to set up log rotation for Nginx and Passenger
# Set up log rotation for Nginx and Passenger
{% for rotate_target in 'nginx', 'passenger' %}
/etc/logrotate.d/{{ rotate_target }}:
file.managed:
- source: salt://nginx-passenger/{{ rotate_target }}-logrotate
- require:
- cmd: nginx-install
- cmd: passenger
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment