equal
deleted
inserted
replaced
|
1 class sysconfig::drupal ( |
|
2 $vhost = hiera('sysconfig::params::vhost', $sysconfig::params::vhost) |
|
3 ) inherits sysconfig::params { |
|
4 |
|
5 notify {'drupal': name => "drupal => \$vhost : ${vhost}", withpath => true } |
|
6 |
|
7 #install composer |
|
8 file { "/tmp/composer": |
|
9 ensure => directory, |
|
10 }-> |
|
11 file { "/tmp/composer/install.sh": |
|
12 mode => "0755", |
|
13 source => "puppet:///modules/sysconfig/composer/install.sh", |
|
14 }-> |
|
15 exec { "install_composer": |
|
16 command => "/tmp/composer/install.sh", |
|
17 creates => "/usr/local/bin/composer" |
|
18 }-> |
|
19 |
|
20 class { '::drush': |
|
21 require => Package["php56"], |
|
22 versions => ['7'], |
|
23 default_version => '7', |
|
24 autoupdate => true, |
|
25 ensure_extra_packages => false, |
|
26 extra_packages => [ 'bzip2', 'gzip', 'less', 'mariadb', 'rsync', 'unzip', 'wget' ], |
|
27 extensions => ['drush_extras'], |
|
28 php_path => '/opt/remi/php56/root/usr/bin/php', |
|
29 composer_path => '/opt/remi/php56/root/usr/bin/php /usr/local/bin/composer' |
|
30 } |
|
31 |
|
32 drush::alias { 'corpus': |
|
33 root => '/var/www/corpusdelaparole/drupal', |
|
34 uri => $vhost, |
|
35 } |
|
36 |
|
37 } |