Browse Source

Merge pull request #38 from Seldaek/master

Fix ppa support in php.ng, fixes #36
tags/v0.34.0
Forrest 9 years ago
parent
commit
59b99bef7b
2 changed files with 18 additions and 2 deletions
  1. +16
    -0
      php/ng/installed.jinja
  2. +2
    -2
      php/ng/map.jinja

+ 16
- 0
php/ng/installed.jinja View File

{% do pkgs.append(pkginfo) %} {% do pkgs.append(pkginfo) %}
{% endif %} {% endif %}


{% if grains['os_family']=="Debian" and (state == 'cli' or state == 'fpm' or state == 'php') %}
{% set use_ppa = salt['pillar.get']('php:use_ppa', none) %}
{% if use_ppa is not none %}

{% set ppa_name = salt['pillar.get']('php:ppa_name', 'ondrej/php5') %}

php_ppa_{{ state }}:
pkgrepo.managed:
- ppa: {{ ppa_name }}
pkg.latest:
- name: {{ state }}
- pkgs: {{ pkgs|json() }}
- refresh: True
{% endif %}
{% endif %}

php_install_{{ state }}: php_install_{{ state }}:
pkg.installed: pkg.installed:
- name: {{ state }} - name: {{ state }}

+ 2
- 2
php/ng/map.jinja View File

'mysqlnd': 'php5-mysqlnd', 'mysqlnd': 'php5-mysqlnd',
'pear': 'php-pear', 'pear': 'php-pear',
'soap': 'php-soap', 'soap': 'php-soap',
'sqlite': 'php5-sqlite',
'sqlite': 'php5-sqlite',
'xml': 'php5-xmlrpc', 'xml': 'php5-xmlrpc',
'redis': 'php5-redis', 'redis': 'php5-redis',
'imagick': 'php5-imagick', 'imagick': 'php5-imagick',
'mysqlnd': 'php-mysqlnd', 'mysqlnd': 'php-mysqlnd',
'pear': 'php-pear', 'pear': 'php-pear',
'soap': 'php-soap', 'soap': 'php-soap',
'sqlite': 'php5-sqlite',
'sqlite': 'php5-sqlite',
'xml': 'php-xml', 'xml': 'php-xml',
'redis': 'php-redis', 'redis': 'php-redis',
'imagick': 'php-imagick', 'imagick': 'php-imagick',

Loading…
Cancel
Save