Specify PHP version with PuppetLabs' Apache module -


i'm using puppetlabs-apache maintain apache installation. want specify php version i'm using:

package { "php":     ensure => "5.4.16" } 

but error:

duplicate declaration: package[php] declared in file /path/to/my/server.pp ... 

i can't find documentation how specify php version. seems package declared in params.pp, doesn't seem allow change version. so, short of hacking module myself, how can configure let me specify own php package?

you use collector, bit hacky... :)

you can use anywhere in code. (even other modules)

package <| title=='php' |> {   ensure => "5.4.16" } 

i haven't tried this, 'should' work...

http://docs.puppetlabs.com/puppet/2.7/reference/lang_collectors.html


Comments