瀏覽代碼

Merge branch 'saltstack-formulas:master' into master

pull/292/head
thomas-thorburn-connect 1 年之前
父節點
當前提交
3177e2ccbd
沒有連結到貢獻者的電子郵件帳戶。
共有 3 個檔案被更改,包括 23 行新增7 行删除
  1. +3
    -1
      nginx/map.jinja
  2. +16
    -6
      nginx/pkg.sls
  3. +4
    -0
      pillar.example

+ 3
- 1
nginx/map.jinja 查看文件

'server_use_symlink': False, 'server_use_symlink': False,
'pid_file': '/run/nginx.pid', 'pid_file': '/run/nginx.pid',
'gpg_check': True, 'gpg_check': True,
'gpg_key': 'http://download.opensuse.org/repositories/server:/http/openSUSE_{{ grains.osrelease }}/repodata/repomd.xml.key',
'gpg_key': 'http://download.opensuse.org/repositories/server:/http/{{ grains.osrelease }}/repodata/repomd.xml.key',
'gpg_autoimport': True,
'openssl_package': 'openssl', 'openssl_package': 'openssl',
}, },
'Arch': { 'Arch': {
'install_from_ppa': False, 'install_from_ppa': False,
'install_from_repo': False, 'install_from_repo': False,
'install_from_phusionpassenger': False, 'install_from_phusionpassenger': False,
'install_from_opensuse_devel': False,
'check_config_before_apply': False, 'check_config_before_apply': False,
'ppa_version': 'stable', 'ppa_version': 'stable',
'source_version': '1.10.0', 'source_version': '1.10.0',

+ 16
- 6
nginx/pkg.sls 查看文件

{% set from_official = true %} {% set from_official = true %}
{% set from_ppa = false %} {% set from_ppa = false %}
{% set from_phusionpassenger = false %} {% set from_phusionpassenger = false %}
{% set from_opensuse_devel = false %}
{% elif nginx.install_from_ppa %} {% elif nginx.install_from_ppa %}
{% set from_official = false %} {% set from_official = false %}
{% set from_ppa = true %} {% set from_ppa = true %}
{% set from_phusionpassenger = false %} {% set from_phusionpassenger = false %}
{% set from_opensuse_devel = false %}
{% elif nginx.install_from_phusionpassenger %} {% elif nginx.install_from_phusionpassenger %}
{% set from_official = false %} {% set from_official = false %}
{% set from_ppa = false %} {% set from_ppa = false %}
{% set from_phusionpassenger = true %} {% set from_phusionpassenger = true %}
{% set from_opensuse_devel = false %}
{% elif nginx.install_from_opensuse_devel %}
{% set from_official = false %}
{% set from_ppa = false %}
{% set from_phusionpassenger = false %}
{% set from_opensuse_devel = true %}
{% else %} {% else %}
{% set from_official = false %} {% set from_official = false %}
{% set from_ppa = false %} {% set from_ppa = false %}
{% set from_phusionpassenger = false %} {% set from_phusionpassenger = false %}
{% set from_opensuse_devel = false %}
{%- endif %} {%- endif %}


{%- set resource_repo_managed = 'file' if grains.os_family == 'Debian' else 'pkgrepo' %} {%- set resource_repo_managed = 'file' if grains.os_family == 'Debian' else 'pkgrepo' %}
{% if grains.os_family == 'Suse' or grains.os == 'SUSE' %} {% if grains.os_family == 'Suse' or grains.os == 'SUSE' %}
nginx_zypp_repo: nginx_zypp_repo:
pkgrepo: pkgrepo:
{%- if from_official %}
- managed
{%- else %}
- absent
{%- endif %}
- name: server_http - name: server_http
{%- if from_opensuse_devel %}
- managed
- humanname: server_http - humanname: server_http
- baseurl: 'http://download.opensuse.org/repositories/server:/http/openSUSE_13.2/'
- baseurl: 'http://download.opensuse.org/repositories/server:/http/{{ grains.osrelease }}/'
- enabled: True - enabled: True
- autorefresh: True - autorefresh: True
- gpgcheck: {{ nginx.lookup.gpg_check }} - gpgcheck: {{ nginx.lookup.gpg_check }}
- gpgkey: {{ nginx.lookup.gpg_key }} - gpgkey: {{ nginx.lookup.gpg_key }}
- gpgautoimport: {{ nginx.lookup.gpg_autoimport }}
{%- else %}
- absent
{%- endif %}
- require_in: - require_in:
- pkg: nginx_install - pkg: nginx_install
- watch_in: - watch_in:

+ 4
- 0
pillar.example 查看文件

# each build accordingly ( https://launchpad.net/~nginx ) # each build accordingly ( https://launchpad.net/~nginx )
ppa_version: 'stable' ppa_version: 'stable'


# Use openSUSE devel (server:http) repository to install nginx.
# If not set, the server_http repository will be removed if it exists.
install_from_opensuse_devel: false

# Source install # Source install
source_version: '1.10.0' source_version: '1.10.0'
source_hash: '' source_hash: ''

Loading…
取消
儲存