Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-cloud / recipes-support / puppet / files / puppetlabs-apache / puppetlabs-apache-updates-for-poky-stx.patch
1 diff --git a/lib/puppet/provider/a2mod/a2mod.rb b/lib/puppet/provider/a2mod/a2mod.rb
2 index e257a579..96d6151d 100644
3 --- a/lib/puppet/provider/a2mod/a2mod.rb
4 +++ b/lib/puppet/provider/a2mod/a2mod.rb
5 @@ -8,7 +8,7 @@ Puppet::Type.type(:a2mod).provide(:a2mod, :parent => Puppet::Provider::A2mod) do
6      commands :apache2ctl => "apache2ctl"
7  
8      confine :osfamily => :debian
9 -    defaultfor :operatingsystem => [:debian, :ubuntu]
10 +    defaultfor :operatingsystem => [:debian, :ubuntu, :'poky-stx']
11  
12      def self.instances
13        modules = apache2ctl("-M").lines.collect { |line|
14 diff --git a/manifests/params.pp b/manifests/params.pp
15 index 55682f3b..2f849752 100644
16 --- a/manifests/params.pp
17 +++ b/manifests/params.pp
18 @@ -220,7 +220,7 @@ class apache::params inherits ::apache::version {
19      $suphp_addhandler    = 'x-httpd-php'
20      $suphp_engine        = 'off'
21      $suphp_configpath    = '/etc/php5/apache2'
22 -    if ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '16.04') < 0) or ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '9') < 0) {
23 +    if ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '16.04') < 0) or ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '9') < 0) or ($::operatingsystem == 'poky-stx') {
24        # Only the major version is used here
25        $php_version = '5'
26      } else {