Install Specific PHP Version with Puppet & Vagrant -


first time puppet user, , i'm having trouble getting install of specified version of php using vagrant. i'm using example42/php module, , keep running ensure problems.

error: not update: execution of '/usr/bin/yum -d 0 -e 0 -y install php-5.5.12' returned 1: error: nothing error: /stage[main]/php/package[php]/ensure: change absent 5.5.12 failed: not update: execution of '/usr/bin/yum -d 0 -e 0 -y install php-5.5.12' returned 1: error: nothing warning: /stage[main]/php/file[php.conf]: skipping because of failed dependencies 

spits out of console, followed attempt that's identical.

my .pp file i'm provisioning with:

class lamp {     # package {'php':     #   ensure => present,     # } } node 'node1' {       include lamp     file { '/php':         ensure => directory,         # read may need have directory in order install work...     }     class { 'php':         version => '5.5.12',     } } 

as far can tell, i'm referencing correctly modules, store inside /puppet/modules/ , it's finding them, i'm having hard time getting specific version of php install. use simple "getting started lamp" puppet but install 5.3.3 if ensure => latest,

the puppet module uses system's package manager (yum) download specific php packages. if cannot find required packages, not work. 5.3.3 latest version in repository, install that. wouldn't surprised if version of php available in repositories.

you need configure yum repositories have required php packages , try puppet module that.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -