|
|
|
|
|
|
|
|
{% set without_items = nginx.get('without', []) -%} |
|
|
{% set without_items = nginx.get('without', []) -%} |
|
|
{% set make_flags = nginx.get('make_flags', nginx_map['make_flags']) -%} |
|
|
{% set make_flags = nginx.get('make_flags', nginx_map['make_flags']) -%} |
|
|
|
|
|
|
|
|
|
|
|
{% set service_name = nginx.get('service_name', 'nginx') %} |
|
|
|
|
|
|
|
|
{% set nginx_package = source + '/nginx-' + version + '.tar.gz' -%} |
|
|
{% set nginx_package = source + '/nginx-' + version + '.tar.gz' -%} |
|
|
{% set nginx_source = source + "/nginx-" + version -%} |
|
|
{% set nginx_source = source + "/nginx-" + version -%} |
|
|
{% set nginx_modules_dir = source + "/nginx-modules" -%} |
|
|
{% set nginx_modules_dir = source + "/nginx-modules" -%} |
|
|
|
|
|
|
|
|
file: |
|
|
file: |
|
|
- managed |
|
|
- managed |
|
|
- template: jinja |
|
|
- template: jinja |
|
|
- name: /etc/init.d/nginx |
|
|
|
|
|
|
|
|
- name: /etc/init.d/{{ service_name }} |
|
|
- source: salt://nginx/templates/nginx.init.jinja |
|
|
- source: salt://nginx/templates/nginx.init.jinja |
|
|
- user: root |
|
|
- user: root |
|
|
- group: root |
|
|
- group: root |
|
|
|
|
|
|
|
|
- running |
|
|
- running |
|
|
- enable: True |
|
|
- enable: True |
|
|
- restart: True |
|
|
- restart: True |
|
|
|
|
|
- name: {{ service_name }} |
|
|
- watch: |
|
|
- watch: |
|
|
- cmd: nginx |
|
|
- cmd: nginx |
|
|
- file: {{ conf_dir }}/nginx.conf |
|
|
- file: {{ conf_dir }}/nginx.conf |