We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 276a247 commit 702bac8Copy full SHA for 702bac8
manifests/init.pp
@@ -106,6 +106,18 @@
106
refreshonly => true,
107
}
108
109
+ # Init as vagrant user to use when need to switch php
110
+ # and use it from vagrant console for example for composer command
111
+ ###################################################################
112
+ exec { 'init phpbrew as vagrant':
113
+ command => '/usr/bin/phpbrew init',
114
+ creates => '/home/vagrant/.phpbrew/bashrc',
115
+ subscribe => File['/usr/bin/phpbrew'],
116
+ refreshonly => true,
117
+ user => "vagrant",
118
+ environment => ["HOME=/home/vagrant"],
119
+ }
120
+
121
file { $php_install_dir:
122
ensure => 'directory',
123
require => Exec['init phpbrew'],
0 commit comments