apache::mod::php::php_version - class versus hiera

167 views
Skip to first unread message

Paul van den Bergen

unread,
Jun 19, 2019, 12:39:34 PM6/19/19
to Puppet Users
Hey folks,

working with an older apache puppet module - 3.1.0 - that doesn't have use cases for bionic so I need to set my php version manually.

if I include

  class { '::apache::mod::php':
    php_version => '7.2'  # bionic
  }

in my profile manifest it works just fine...

if instead I try to specify the same value in hiera, vis:

apache::mod::php::php_version: '7.2'

in either the bionic.yaml
or the nodes definition yaml 
it gets ignored

puppet run fails with a package libapache2-mod-php7.0 not found error,

 or the link reverted, thus;  

Notice: /Stage[main]/Apache/File[/etc/apache2/mods-enabled/php7.2.conf]/ensure: removed
Notice: /Stage[main]/Apache/File[/etc/apache2/mods-enabled/php7.2.load]/ensure: removed


Any suggestions for other things to try or what  I'm missing gratefully appreciated.

Paul van den Bergen

unread,
Jun 19, 2019, 7:32:08 PM6/19/19
to Puppet Users
OK, sorted - PEBKAC...

in removing the config in the profile I removed mod php completely... doh
Reply all
Reply to author
Forward
0 new messages