aboutsummaryrefslogtreecommitdiff
path: root/manifests/packages/ppa.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-02 13:01:00 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-02 13:01:00 -0200
commit5f3ed06fc85c3c9cb8d80c03d157bcc29bf75798 (patch)
tree6e89619ec894e6649d31cfd6743211e5e2498d17 /manifests/packages/ppa.pp
parent94fb97c148af076ea4c0e3ec710847b335761f30 (diff)
downloadpuppet-php-5f3ed06fc85c3c9cb8d80c03d157bcc29bf75798.tar.gz
puppet-php-5f3ed06fc85c3c9cb8d80c03d157bcc29bf75798.tar.bz2
Support both PHP 5 and 7, defaults to 5
Diffstat (limited to 'manifests/packages/ppa.pp')
-rw-r--r--manifests/packages/ppa.pp55
1 files changed, 0 insertions, 55 deletions
diff --git a/manifests/packages/ppa.pp b/manifests/packages/ppa.pp
deleted file mode 100644
index e38cccb..0000000
--- a/manifests/packages/ppa.pp
+++ /dev/null
@@ -1,55 +0,0 @@
-class php::packages::ppa {
- #package { 'python-software-properties':
- # ensure => present,
- #}
-
- ## TODO: check repository key!
- #exec { 'add-apt-repository-ondrej-php':
- # command => '/usr/bin/add-apt-repository -y ppa:ondrej/php && apt-get update',
- # user => 'root',
- # creates => '/etc/apt/sources.list.d/ondrej-ubuntu-php-xenial.list',
- # require => Package['python-software-properties'],
- #}
-
- # The needed packages: we could also try libapache2-mod-php5.6filter
- package { 'php5':
- name => 'php5.6',
- #require => Exec['add-apt-repository-ondrej-php'],
- }
-
- package { 'php5-cli':
- name => 'php5.6-cli',
- #require => Exec['add-apt-repository-ondrej-php'],
- }
-
- package { [ 'php5.6-mysql', 'php5.6-sqlite3', 'php5.6-curl', 'php5.6-gmp', 'libapache2-mod-php5.6' ]:
- ensure => installed,
- #require => Exec['add-apt-repository-ondrej-php'],
- }
-
- # Optional packages
- package { [ "php5.6-gd", "php-imagick", "php5.6-xml", "php5.6-mbstring" ]:
- ensure => installed,
- #require => Exec['add-apt-repository-ondrej-php'],
- }
-
- # Not available anymore
- package { 'php5.6-suhosin':
- ensure => absent,
- #require => Exec['add-apt-repository-ondrej-php'],
- }
-
- # The needed apache modules
- apache::module { 'php5.6':
- ensure => present,
- require => Package['libapache2-mod-php5.6'],
- }
-
- # Default alternative
- file { "/etc/alternatives/php":
- ensure => "/usr/bin/php5.6",
- owner => root,
- group => root,
- require => Package['php5'],
- }
-}