Skip to content

Conversation

@rclarkburns
Copy link

I opted to add a new facter to get the Ubuntu release. If you have any questions, let me know.

Thanks!

@mngoe
Copy link

mngoe commented Sep 9, 2016

Sorry, newbie on Puppet, but when I tried your branch, I get :

"Error: Failed to apply catalog: Could not find dependency File[/etc/php/7.0/cli/php.ini] for Package[php-cli] at /etc/puppet/modules/php/manifests/cli.pp:17".

After adding "include '::php::cli'" in my Manifest
My file : php.ini really exist in /etc/php/7.0/cli/

@rclarkburns
Copy link
Author

rclarkburns commented Sep 9, 2016

Hi @mngoe

Are you trying to modify the ini file in your manifest?

We ended up having to add this type of workaround in our manifest (unrelated to this branch):

case $::osfamily {
    'debian': {
      if $::ubuntu_release == '16.04' {
        file {'/etc/php':
          ensure => directory
        } ->
        file {'/etc/php/7.0':
          ensure => directory
        } ->
        file {'/etc/php/7.0/cli':
          ensure => directory
        }
      } else {
        file {'/etc/php5':
          ensure => directory
        } ->
        file {'/etc/php5/cli':
          ensure => directory
        }
      }
    }
  } ->

do something with ini 

Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants