Chassis / puppet-wp

This module enables the easy use of WP CLI to control your WordPress site through Puppet manifests
https://chassis.github.io/puppet-wp/
GNU Lesser General Public License v3.0
44 stars 39 forks source link

php-cli dependency fail despite it being available #25

Closed maciej-gurban closed 7 years ago

maciej-gurban commented 10 years ago

The following prevents me from creating any sites (or working with puppet-wp at all)

if ! defined(Package["$phpprefix-cli"]) {
    package { "$phpprefix-cli":
        ensure => installed,
    }
}

My rpm -q php-cli php-cli-5.3.3-27.el6_5.x86_64

Php installed using example42/php from puppetforge. Manual 'php' command-line executions work just fine. Manually installed wp-cli and all its functionalities are in tact. Any ideas?

rmccue commented 10 years ago

This is probably our $phpprefix bit being wrong. Any idea what the package name for PHP is on your system? (Also, what OS/distro?)

maciej-gurban commented 10 years ago

My OS is CentOS 6.5 (tried on 6.3 as well). Package name for PHP is just 'php'. Running 'which php-cli' or 'php5-cli' (they seem to be the only options) will return a lack of package. It seems that this check is entirely unnecessary in my case. I can execute php script from command line, though just using 'php'

rmccue commented 7 years ago

This should be fixed by #37, which allows:

class { 'wp':
    php_package => 'php',
}