diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-12-16 09:53:44 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-12-16 09:53:44 -0200 |
commit | 6c2e3dba73d4ffaee51cafe42a1f30961f665384 (patch) | |
tree | a96577f447d133c8c3e5de315bcc10e49707ddf2 | |
parent | 9593e616a6b6f998e24b1b8d5dd0f4fad3de617d (diff) | |
download | puppet-php-6c2e3dba73d4ffaee51cafe42a1f30961f665384.tar.gz puppet-php-6c2e3dba73d4ffaee51cafe42a1f30961f665384.tar.bz2 |
Composer and optional packages
-rw-r--r-- | manifests/composer.pp | 9 | ||||
-rw-r--r-- | manifests/init.pp | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/manifests/composer.pp b/manifests/composer.pp new file mode 100644 index 0000000..29325f5 --- /dev/null +++ b/manifests/composer.pp @@ -0,0 +1,9 @@ +class php::composer { + # Composer + exec { 'getcomposer': + command => '/usr/bin/wget -O - https://getcomposer.org/installer | /usr/bin/php && /bin/mv composer.phar /usr/local/bin/composer', + user => 'root', + cwd => '/tmp', + creates => '/usr/local/bin/composer', + } +} diff --git a/manifests/init.pp b/manifests/init.pp index 2901bf9..b2fb4ba 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -22,6 +22,11 @@ class php { ensure => installed, } + # Optional packages + package { [ "php5-gd", "php5-imagick" ]: + ensure => installed, + } + # Not available anymore package { 'php5-suhosin': ensure => absent, |