https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • r

    runlolarun

    05/05/2022, 8:29 PM
    I need to install php package on RHEL8 based OS. The version is not what comes with the module - 8.0.13. I’ve disabled modules, but would like for php to be installed. This doesn’t install package php on it’s own. Is there a way around it? Thank you.
    Copy code
    package { 'php':
        ensure   => 'disabled',
        provider => 'dnfmodule',
      }
    
      class { '::php::globals':
        php_version => '8.0.13',
      }
  • r

    runlolarun

    05/05/2022, 8:29 PM
    I need to install php package on RHEL8 based OS. The version is not what comes with the module - 8.0.13. I’ve disabled modules, but would like for php to be installed. This doesn’t install package php on it’s own. Is there a way around it? Thank you.
    Copy code
    package { 'php':
        ensure   => 'disabled',
        provider => 'dnfmodule',
      }
    
      class { '::php::globals':
        php_version => '8.0.13',
      }
  • v

    vchepkov

    05/05/2022, 8:30 PM
    hmm, you would need to provide an alternative, if php module is disabled
  • r

    runlolarun

    05/05/2022, 8:31 PM
    I’ve built my own php RPMs and would like to have them installed instead. Hope I am making sense.
  • r

    runlolarun

    05/05/2022, 8:31 PM
    I’ve built my own php RPMs and would like to have them installed instead. Hope I am making sense.
  • v

    vchepkov

    05/05/2022, 8:31 PM
    hmm, you would need to provide an alternative, if php module is disabled
  • r

    runlolarun

    05/05/2022, 8:31 PM
    I have alternatives and they are in a custom repo. I can install package with
    yum install php
  • v

    vchepkov

    05/05/2022, 8:32 PM
    and you expect php module (which one by the way?) to install php from that repo?
  • r

    runlolarun

    05/05/2022, 8:32 PM
    I want to fully disable php modules and just install packages from my repo
  • v

    vchepkov

    05/05/2022, 8:32 PM
    you probably need to supply additional arguments to the class
  • v

    vchepkov

    05/05/2022, 8:33 PM
    if it's logic allows that
  • v

    vchepkov

    05/05/2022, 8:33 PM
    or install packages outside of class
  • v

    vchepkov

    05/05/2022, 8:33 PM
    or install packages outside of class
  • r

    runlolarun

    05/05/2022, 8:33 PM
    I can’t create another another
    package ('php'
    .. as it will be a duplicate.
  • v

    vchepkov

    05/05/2022, 8:33 PM
    which module do you use, ?
  • r

    runlolarun

    05/05/2022, 8:33 PM
    official php one
  • v

    vchepkov

    05/05/2022, 8:34 PM
    there is no such thing 🙂
  • r

    runlolarun

    05/05/2022, 8:34 PM
    https://forge.puppet.com/modules/puppet/php
  • r

    runlolarun

    05/05/2022, 8:34 PM
    sorry 🙂
  • y

    Yorokobi

    05/05/2022, 8:36 PM
    Are you doing anything with the module beyond installing PHP?
  • r

    runlolarun

    05/05/2022, 8:37 PM
    adding some settings
  • r

    runlolarun

    05/05/2022, 8:37 PM
    and extensions
  • v

    vchepkov

    05/05/2022, 8:38 PM
    hmm, that module designed 'old' way with params
  • r

    runlolarun

    05/05/2022, 8:38 PM
    even if i try to install the package from another class, wouldn’t it be considered a duplicate?
  • y

    Yorokobi

    05/05/2022, 8:38 PM
    This doesn't work?
    Copy code
    package { 'php':
        ensure => '8.0.13',
    }
  • v

    vchepkov

    05/05/2022, 8:39 PM
    only if module also manages the package
  • r

    runlolarun

    05/05/2022, 8:39 PM
    I need to disable modules first
  • r

    runlolarun

    05/05/2022, 8:39 PM
    No, module doesn’t manage the package.
  • r

    runlolarun

    05/05/2022, 8:39 PM
    Maybe i need to learn how to build RPMs with modules… at some point.
  • v

    vchepkov

    05/05/2022, 8:40 PM
    well if it doesn't manage it, it won't conflict
1...222324...428Latest