Skip to content
Snippets Groups Projects
Commit 2917eea9 authored by Nils Olof Paulsson's avatar Nils Olof Paulsson
Browse files

rerepo to remi for php, first attempt

parent 394166bf
No related branches found
No related tags found
No related merge requests found
Pipeline #17118 passed
......@@ -60,27 +60,28 @@ class aim_control(
include ::aim_control::firewall
include ::apache
include ::liurepo::centos_sclo_rh
include ::aim_control::remirepo
class { '::apache::mod::php':
package_name => 'rh-php56-php',
package_name => 'php70',
}
include ::apache::mod::rewrite
package {
'rh-php56-php-pdo':
'php70-php-pdo':
ensure => installed;
'rh-php56-php-mbstring':
'php70-php-mbstring':
ensure => installed;
'rh-php56-php-mysqlnd':
'php70-php-mysqlnd':
ensure => installed;
'rh-php56-php-common':
'php70-php-common':
ensure => installed;
}
file { '/etc/httpd/modules/libphp5.so':
ensure => link,
target => '/opt/rh/httpd24/root/usr/lib64/httpd/modules/librh-php56-php5.so',
## target => '/opt/rh/httpd24/root/usr/lib64/httpd/modules/librh-php56-php5.so',
before => Service['httpd'],
}
......
class aim_control::remirepo(
) {
package { 'remi-release-7' :
ensure => 'installed',
provider => 'yum',
source => 'https://rpms.remirepo.net/enterprise/remi-release-7.rpm',
notify => Exec[ 'enable remi' ],
}
exec { 'enable remi' :
command => 'yum-config-manager --enable remi-php70',
path => ['/bin', '/usr/bin' ],
refreshonly => true,
creates => '/opt/remi',
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment