Skip to content

Commit c86d342

Browse files
author
nb
committed
feat(ng): promote NG formula
1 parent 10513fd commit c86d342

File tree

206 files changed

+4140
-5211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+4140
-5211
lines changed

docs/README.rst

Lines changed: 103 additions & 308 deletions
Large diffs are not rendered by default.

php/adodb.sls

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
{%- from "php/map.jinja" import php with context %}
2-
3-
include:
4-
- php.deprecated
5-
- php
6-
7-
php-adodb:
8-
pkg.installed:
9-
- name: {{ php.adodb_pkg }}
1+
{%- set tplroot = tpldir.split('/')[0] %}
2+
{%- set state = 'adodb' %}
3+
{%- include tplroot ~ "/installed.jinja" %}

php/ng/apache2/files/mod_php.conf.jinja renamed to php/apache2/files/mod_php.conf.jinja

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
{% from "php/ng/map.jinja" import php with context %}
2-
{% from "php/ng/map.jinja" import phpng_version with context %}
3-
{% set major = phpng_version.split('.')|first %}
1+
{%- set tplroot = tpldir.split('/')[0] %}
2+
{%- from tplroot ~ "/map.jinja" import php with context %}
3+
{%- from tplroot ~ "/map.jinja" import php_version with context %}
4+
{%- set major = php_version.split('.')|first %}
45

56
LoadModule php{{ major }}_module /usr/local/libexec/{{ php.lookup.apache2.name }}/libphp{{ major }}.so
67

php/ng/apache2/ini.sls renamed to php/apache2/ini.sls

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Manages the main Apache2 ini file
2-
{% from "php/ng/map.jinja" import php with context %}
3-
{% from "php/ng/ini.jinja" import php_ini %}
2+
{%- set tplroot = tpldir.split('/')[0] %}
3+
{%- from tplroot ~ "/map.jinja" import php with context %}
4+
{%- from tplroot ~ "/ini.jinja" import php_ini %}
45

56
{% set settings = php.ini.defaults %}
67
{% do settings.update(php.apache2.ini.settings) %}

php/apache2/init.sls

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{%- if grains['os_family'] in ["Debian", "FreeBSD"] %}
2+
include:
3+
- php.apache2.install
4+
{%- endif %} #END: os = Debian|FreeBSD
5+
{%- if grains['os_family'] == "Debian" %}
6+
- php.apache2.ini
7+
8+
extend:
9+
php_apache2_ini:
10+
file:
11+
- require:
12+
- sls: php.apache2.install
13+
{%- endif %} #END: os = debian

php/apache2/install.sls

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{%- set tplroot = tpldir.split('/')[0] %}
2+
{%- from tplroot ~ "/map.jinja" import php with context %}
3+
4+
{%- set state = 'apache2' %}
5+
{%- include tplroot ~ "/installed.jinja" %}
6+
7+
{%- if grains['os_family'] == "FreeBSD" %}
8+
{{ php.lookup.apache2.module_config }}:
9+
file.managed:
10+
- source: salt://php/apache2/files/mod_php.conf.jinja
11+
- template: jinja
12+
{%- if salt['pillar.get']('php:use_apache_formula', True) %}
13+
- makedirs: true
14+
- require_in:
15+
- sls: apache
16+
- watch_in:
17+
- module: apache-restart
18+
{%- endif %} #END: use apache formula
19+
{%- endif %} #END: os = debian

php/apc.sls

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
{%- from "php/map.jinja" import php with context %}
2-
3-
include:
4-
- php.deprecated
5-
- php
6-
7-
php-apc:
8-
pkg.installed:
9-
- name: {{ php.apc_pkg }}
1+
{%- set tplroot = tpldir.split('/')[0] %}
2+
{%- set state = 'apc' %}
3+
{%- include tplroot ~ "/installed.jinja" %}

php/apcu.sls

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
{%- from "php/map.jinja" import php with context %}
2-
3-
include:
4-
- php.deprecated
5-
- php
6-
7-
php-apcu:
8-
pkg.installed:
9-
- name: {{ php.apcu_pkg }}
1+
{%- set tplroot = tpldir.split('/')[0] %}
2+
{%- set state = 'apcu' %}
3+
{%- include tplroot ~ "/installed.jinja" %}

php/auth-sasl.sls

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{%- set tplroot = tpldir.split('/')[0] %}
2+
{%- set state = 'auth-sasl' %}
3+
{%- include tplroot ~ "/installed.jinja" %}

php/bcmath.sls

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
{%- from "php/map.jinja" import php with context %}
2-
3-
include:
4-
- php.deprecated
5-
- php
6-
7-
php-bcmath:
8-
pkg.installed:
9-
- name: {{ php.bcmath_pkg }}
1+
{%- set tplroot = tpldir.split('/')[0] %}
2+
{%- set state = 'bcmath' %}
3+
{%- include tplroot ~ "/installed.jinja" %}

0 commit comments

Comments
 (0)