Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for PHP 7 on Ubuntu 16.04 #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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