Puppet Class: php::composer

Inherits:
php::composer::params
Defined in:
manifests/composer.pp

Overview

Class: php::composer

Install composer package manager

Parameters

source

Holds URL to the Composer source file

destination

Holds path to the Composer executable

Variables

No variables

Examples

include php::composer

Authors

Christian “Jippi” Winther <jippignu@gmail.com>

Copyright 2012-2013 Christian “Jippi” Winther, unless otherwise noted.

Parameters:

  • source (Any) (defaults to: $php::composer::params::source)
  • destination (Any) (defaults to: $php::composer::params::destination)


29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'manifests/composer.pp', line 29

class php::composer (
  $source       = $php::composer::params::source,
  $destination  = $php::composer::params::destination
) inherits php::composer::params {

  exec { 'download composer':
    command => "wget ${source} -O ${destination}",
    creates => $destination,
    path    => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ],
    require => [
      Package['php5-cli']
    ]
  }

  file { $destination:
    mode    => '0555',
    owner   => root,
    group   => root,
    require => Exec['download composer'],
  }

}