|
28 | 28 | 'openssl-devel', |
29 | 29 | 'bzip2-devel', |
30 | 30 | 'libicu-devel', |
31 | | - 'readline-devel' |
| 31 | + 'readline-devel', |
| 32 | + |
| 33 | + 'httpd-devel', |
| 34 | + 'libcurl-devel', |
| 35 | + 'oniguruma-devel', |
| 36 | + 'libsodium-devel' |
32 | 37 | ] |
33 | 38 |
|
34 | 39 | exec { 'Installing Development Tools package group': |
|
98 | 103 | } |
99 | 104 |
|
100 | 105 | exec { 'init phpbrew': |
101 | | - command => '/usr/bin/sudo /usr/bin/phpbrew init', |
102 | | - creates => '~/.phpbrew/bashrc', |
| 106 | + command => '/usr/bin/sudo /usr/bin/phpbrew init --root=/opt/phpbrew', |
| 107 | + creates => '/opt/phpbrew/bashrc', |
103 | 108 | subscribe => File['/usr/bin/phpbrew'], |
104 | 109 | refreshonly => true, |
105 | 110 | } |
|
115 | 120 | } |
116 | 121 |
|
117 | 122 | # Specify where versions of PHP will be installed. |
118 | | - file { '~/.phpbrew/init': |
| 123 | + file { '/opt/phpbrew/init': |
119 | 124 | content => "export PHPBREW_ROOT=${php_install_dir}", |
120 | 125 | require => Exec['init phpbrew'] |
121 | 126 | }-> |
122 | | - file_line { 'Append a line to ~/.phpbrew/init': |
123 | | - path => '~/.phpbrew/init', |
| 127 | + file_line { 'Append a line to /opt/phpbrew/init': |
| 128 | + path => '/opt/phpbrew/init', |
124 | 129 | line => 'export PHPBREW_HOME=${php_install_dir}', |
125 | 130 | } |
126 | 131 |
|
|
132 | 137 | } |
133 | 138 |
|
134 | 139 | # Load phpbrew configuration by default. |
135 | | - file_line { 'add phpbrew to bashrc': |
136 | | - path => '~/.bashrc', |
137 | | - line => 'source ~/.phpbrew/bashrc', |
138 | | - require => Exec['init phpbrew'], |
139 | | - } |
| 140 | +# file_line { 'add phpbrew to bashrc': |
| 141 | +# path => '~/.bashrc', |
| 142 | +# line => 'source ~/.phpbrew/bashrc', |
| 143 | +# require => Exec['init phpbrew'], |
| 144 | +# } |
140 | 145 |
|
141 | 146 |
|
142 | 147 | exec { 'update basbrc': |
143 | 148 | command => '/bin/bash' |
144 | 149 | } |
145 | 150 |
|
146 | | - file { '~/.phpbrew/install_extension.sh': |
| 151 | + file { '/opt/phpbrew/install_extension.sh': |
147 | 152 | ensure => present, |
148 | 153 | mode => 'a+x', |
149 | 154 | source => 'puppet:///modules/phpbrew/install_extension.sh', |
|
0 commit comments