From 6c2e3dba73d4ffaee51cafe42a1f30961f665384 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 16 Dec 2015 09:53:44 -0200 Subject: Composer and optional packages --- manifests/composer.pp | 9 +++++++++ manifests/init.pp | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 manifests/composer.pp 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, -- cgit v1.2.3