diff options
-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, |