This repository was archived by the owner on Jun 11, 2019. It is now read-only.
forked from lermit/puppet-php
-
Notifications
You must be signed in to change notification settings - Fork 56
This repository was archived by the owner on Jun 11, 2019. It is now read-only.
Cannot install php (5.6.19) on Centos 7x #111
Copy link
Copy link
Open
Description
I'm unable to install php version 5.6.19, using the following class definition, within my Centos 7x environment:
class { 'php':
version => '5.6.19',
}Since I'm using puppet to provision my vagrant instance of centos 7x, I've reduced the above thought to the following configure_php.pp definition:
# variables
$working_dir = '/home/provisioner'
## define $PATH for all execs
Exec {path => ['/usr/bin/', '/usr/sbin/']}
## update yum using the added EPEL repository
class update_yum {
exec { 'update-yum':
command => 'yum -y update',
timeout => 750,
}
}
## install php
class install_php {
## set dependency
require update_yum
## install php
class { 'php': }
}
## constructor
class constructor {
## set dependency
contain update_yum
contain install_php
}
include constructorWhen I run the above manifest, within my vagrant implementation:
[provisioner@drupal-demonstration ~]$ vagrant up
...
==> default: Running provisioner: puppet...
==> default: Running Puppet with environment development...
==> default: Error: Evaluation Error: Unknown function: 'params_lookup'. at /tmp
/vagrant-puppet/modules-3caf511b1ed192516806c35da44e64ef/php/manifests/init.pp:1
52:26 on node drupal-demonstration.com
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.In an attempt reduce the debug time, I implemented the same test, within the terminal console:
[provisioner@drupal-demonstration ~]$ cd ~
[provisioner@drupal-demonstration ~]$ ls
[provisioner@drupal-demonstration ~]$ puppet module install example42-php
Notice: Preparing to install into /home/provisioner/.puppetlabs/etc/code/modules
...
Notice: Created target directory /home/provisioner/.puppetlabs/etc/code/modules
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/home/provisioner/.puppetlabs/etc/code/modules
└─┬ example42-php (v2.0.25)
└── example42-puppi (v2.1.12)
[provisioner@drupal-demonstration ~]$ sudo vi install_php.pp
[provisioner@drupal-demonstration ~]$ puppet apply install_php.pp
Warning: Config file /home/provisioner/.puppetlabs/etc/code/hiera.yaml not found
, using Hiera defaults
Notice: Compiled catalog for drupal-demonstration.com in environment production
in 1.57 seconds
Error: Could not find dependent Service[httpd] for File[php.conf] at /home/provi
sioner/.puppetlabs/etc/code/modules/php/manifests/init.pp:258The following was my install_php.pp defintion:
## install php
class install_php {
class { 'php': }
}
contain install_phpMetadata
Metadata
Assignees
Labels
No labels