Skip to content
Snippets Groups Projects

Added own definition for remi

Closed Saga Norén Karlsson requested to merge update_init into devel
1 file
+ 20
1
Compare changes
  • Side-by-side
  • Inline
+ 20
1
@@ -71,8 +71,27 @@ class aim_control (
@@ -71,8 +71,27 @@ class aim_control (
}
}
include aim_control::firewall
include aim_control::firewall
 
 
class aim_control::remi {
 
# Ensure the Remi release package is installed
 
package { 'remi-release':
 
ensure => installed,
 
provider => 'rpm',
 
source => 'https://rpms.remirepo.net/enterprise/remi-release-9.rpm',
 
before => Exec['enable remi-php74'],
 
}
 
 
# Enable PHP 7.4 module
 
exec { 'enable remi-php74':
 
command => 'dnf module enable php:remi-7.4 -y',
 
path => ['/bin', '/usr/bin'],
 
refreshonly => true,
 
require => Package['remi-release'],
 
}
 
}
 
include apache
include apache
include liurepo::remi
include aim_control::remi
class { 'apache::mod::php':
class { 'apache::mod::php':
package_name => 'php74',
package_name => 'php74',
Loading