Bladeren bron

Added optional 'service_name' pillar config, to change the name of the service from 'nginx' to whatever you want it to be.

tags/v0.55.0
Ross Perkins 10 jaren geleden
bovenliggende
commit
ce0e3384eb
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. +4
    -1
      nginx/source.sls

+ 4
- 1
nginx/source.sls Bestand weergeven

@@ -24,6 +24,8 @@
{% set without_items = nginx.get('without', []) -%}
{% 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_source = source + "/nginx-" + version -%}
{% set nginx_modules_dir = source + "/nginx-modules" -%}
@@ -215,7 +217,7 @@ nginx:
file:
- managed
- template: jinja
- name: /etc/init.d/nginx
- name: /etc/init.d/{{ service_name }}
- source: salt://nginx/templates/nginx.init.jinja
- user: root
- group: root
@@ -227,6 +229,7 @@ nginx:
- running
- enable: True
- restart: True
- name: {{ service_name }}
- watch:
- cmd: nginx
- file: {{ conf_dir }}/nginx.conf

Laden…
Annuleren
Opslaan