Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New structure for new Ubuntu PPA and other fixes #113

Merged
merged 30 commits into from
Dec 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
03e7f90
Initial commit for new branch
sc250024 Nov 28, 2016
dc10176
Quick change to base test files
sc250024 Nov 28, 2016
0398f0b
Updated map.jinja, added `php` dependency for all subformulas
sc250024 Nov 28, 2016
45179fa
Fixing mongo module and map.jinja needed OpenSSL dev libraries
sc250024 Nov 29, 2016
27d6b4a
Should be final changes needed for Mongo module
sc250024 Nov 29, 2016
4ead49d
Updating Suhosin package since many distros don't have package in their
sc250024 Nov 29, 2016
d77420f
Generalizing suhosin module, and updating pillar.example for new PPA
sc250024 Nov 29, 2016
65ee27e
Adding addtional logic for RedHat based families to Suhosin
sc250024 Nov 29, 2016
c9c4cf7
Initial commit of NG refactored map.jinja file
sc250024 Nov 30, 2016
6071ca8
Deleting FFMpeg state file since the module is quite old, and has been
sc250024 Dec 1, 2016
9ffd3a6
Updating NG formulas for new definitions
sc250024 Dec 1, 2016
b491014
Removing 'twig' as a state since it can be installed via Composer
sc250024 Dec 1, 2016
749315e
Changes to installed.jinja to set correct PHP path based on version
sc250024 Dec 1, 2016
64cc8bd
NG Composer and NG Suhosin changes
sc250024 Dec 2, 2016
d2375b1
Version bump and deleting README for deleted states
sc250024 Dec 2, 2016
19a6a8e
Finished refactor of NG map.jinja file
sc250024 Dec 2, 2016
a507abb
Adding trailing commas (forgot them earler)
sc250024 Dec 2, 2016
046cddc
Adding changes list, and modifying map file for missing definitions when
sc250024 Dec 2, 2016
c1c2598
Changes needed after performing testing on RHEL 7
sc250024 Dec 2, 2016
c562718
Changes needed for Ubuntu Trusty without using PPA
sc250024 Dec 2, 2016
19c2e1a
Removing testing files; keep on local
sc250024 Dec 2, 2016
8e0dfb4
Map changes needed after testing Debian Jessie
sc250024 Dec 2, 2016
1e67df1
Changed needed for Debian Wheezy
sc250024 Dec 3, 2016
c49e33e
Adding more pkgs for Arch Linux support
sc250024 Dec 3, 2016
427ab98
More ArchLinux support
sc250024 Dec 3, 2016
3b704a2
Stupid tabs
sc250024 Dec 4, 2016
81777c1
Removing extra line breaks, and using the general "use_external_repo" in
sc250024 Dec 6, 2016
6b1b1cd
Accoutning for Precise `phpenmod` and others
sc250024 Dec 8, 2016
4e7f9a1
Merge branch 'master' into feature/NewStructureForPPA
sc250024 Dec 8, 2016
fc5d7b3
Merge branch 'master' into feature/NewStructureForPPA
sc250024 Dec 11, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -515,11 +515,6 @@ Installs the php-tidy package.

Installs the php-tcpdf package.

``php.ng.twig``
--------------

Installs the php-twig package.

``php.ng.cache-lite``
--------------

Expand All @@ -529,9 +524,3 @@ Installs the php-cache-lite package.
--------------

Installs the php-console-table package.

``php.ng.ffmpeg``
--------------

Installs the php-ffmpeg package and ffmpeg.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.4
0.1.0
5 changes: 4 additions & 1 deletion php/adodb.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-adodb:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/apc.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-apc:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/apcu.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-apcu:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/bcmath.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-bcmath:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/cgi.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-cgi:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/cli.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-cli:
pkg.installed:
Expand Down
17 changes: 9 additions & 8 deletions php/composer.sls
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{% from "php/map.jinja" import php with context %}
{% set install_file = php.local_bin + '/' + php.composer_bin %}
{%- from "php/map.jinja" import php with context %}

{% if not salt['config.get']('sudo_user') %}
{% set salt_user = salt['config.get']('user', 'root') %}
{% else %}
{% set salt_user = salt['config.get']('sudo_user', 'root') %}
{% endif %}
{%- set install_file = php.local_bin + '/' + php.composer_bin %}

{% set salt_user_home = salt['user.info'](salt_user).get('home', '/root') %}
{%- if not salt['config.get']('sudo_user') %}
{%- set salt_user = salt['config.get']('user', 'root') %}
{%- else %}
{%- set salt_user = salt['config.get']('sudo_user', 'root') %}
{%- endif %}

{%- set salt_user_home = salt['user.info'](salt_user).get('home', '/root') %}

include:
- php
Expand Down
5 changes: 4 additions & 1 deletion php/curl.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-curl:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/dev.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-dev:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/fpm.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-fpm:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/gd.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-gd:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/imagick.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-imagick:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/imap.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-imap:
pkg.installed:
Expand Down
34 changes: 19 additions & 15 deletions php/init.sls
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

{% if not 'ng' in salt['pillar.get']('php', {}) %}
{%- if not 'ng' in salt['pillar.get']('php', {}) %}

{% if grains['os_family']=="Debian" %}
{% set use_ppa = salt['pillar.get']('php:use_ppa', none) %}
{%- if grains['os'] == "Ubuntu" %}
{%- set use_external_repo = salt['pillar.get']('php:use_external_repo', False) %}

{% if use_ppa is not none %}
{%- if use_external_repo %}
{%- set external_repo_name = salt['pillar.get']('php:external_repo_name', 'ondrej/php') %}

{% set ppa_name = salt['pillar.get']('php:ppa_name', 'ondrej/php5') %}
php_from_ppa:
pkgrepo.managed:
- ppa: {{ external_repo_name }}
- env:
- LC_ALL: "C.UTF-8"
- require_in:
- pkg: php_from_ppa
pkg.latest:
- name: {{ php.php_pkg }}
- refresh: True

php54:
pkgrepo.managed:
- ppa: {{ ppa_name }}
pkg.latest:
- name: php5
- refresh: True
{%- endif %}

{% endif %}
{% endif %}
{%- endif %}

php:
pkg.installed:
- name: {{ php.php_pkg }}

{% endif %}
{%- endif %}
5 changes: 4 additions & 1 deletion php/intl.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-intl:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/json.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-json:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/ldap.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-ldap:
pkg.installed:
Expand Down
5 changes: 4 additions & 1 deletion php/mail.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% from "php/map.jinja" import php with context %}
{%- from "php/map.jinja" import php with context %}

include:
- php

php-mail:
pkg.installed:
Expand Down
Loading