Giter Club home page Giter Club logo

Comments (3)

Slashbunny avatar Slashbunny commented on August 19, 2024

If someone knows the values for all those settings on Ubuntu 20.04 LTS, they can be added in a new elseif in this section of the parameters file:

# Service configuration defaults
# Ubuntu Bionic and above ship php 7.2
if $facts['os']['name'] == 'Ubuntu' and '18' in String($facts['os']['release']['major']) {
$package_name = 'php7.2-fpm'
$service_name = 'php7.2-fpm'
$config_dir = '/etc/php/7.2/fpm'
$pid_file = '/var/run/php/php7.2-fpm.pid'
$error_log = '/var/log/php7.2-fpm.log'
# Ubuntu Artful and above ship php 7.1
} elsif $facts['os']['name'] == 'Ubuntu' and '17' in String($facts['os']['release']['major']) {
$package_name = 'php7.1-fpm'
$service_name = 'php7.1-fpm'
$config_dir = '/etc/php/7.1/fpm'
$pid_file = '/var/run/php/php7.1-fpm.pid'
$error_log = '/var/log/php7.1-fpm.log'
# Ubuntu Xenial and above ship with php7 not php5
} elsif $facts['os']['name'] == 'Ubuntu' and '16' in String($facts['os']['release']['major']) {

That should be all that is required to get it working.

from puppet-phpfpm.

rogermartensson avatar rogermartensson commented on August 19, 2024

I believe that the only difference is the version number.

What I did was to create new path with the new version number. In Ubuntu 20.04 that is 7.4 instead of 7.2 in Ubuntu 18.04.

from puppet-phpfpm.

Slashbunny avatar Slashbunny commented on August 19, 2024

Thanks, I downloaded the php-fpm deb file and inspected the contents to confirm the paths and service files are nearly identical, except with 7.4 instead of 7.2. Released version 0.0.27 to Puppet Forge with these changes.

from puppet-phpfpm.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.