Mercurial > repos > other > Puppet
comparison manifests/templates.pp @ 241:1901eea3befe puppet-3.6
Downgrade to PHP7.3
PHP 7.4 is only a few weeks old and Nextcloud doesn't support it
yet.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 20 Dec 2019 12:14:27 +0000 |
parents | 001e2f446837 |
children | 7d8e664ebcc9 |
comparison
equal
deleted
inserted
replaced
240:960e737a120e | 241:1901eea3befe |
---|---|
407 default_group => $defaultusers::default_user, | 407 default_group => $defaultusers::default_user, |
408 default_tld => 'co.uk', | 408 default_tld => 'co.uk', |
409 default_extra_tlds => [ 'com' ], | 409 default_extra_tlds => [ 'com' ], |
410 } | 410 } |
411 | 411 |
412 # Use Remi's PHP 7.4 | 412 # Use Remi's PHP 7.3 for now - 7.4 is still VERY new |
413 $php_suffix = '' | 413 $php_suffix = '' |
414 yumrepo { 'remirepo-safe': | 414 yumrepo { 'remirepo-safe': |
415 mirrorlist => 'http://cdn.remirepo.net/enterprise/$releasever/safe/mirror', | 415 mirrorlist => 'http://cdn.remirepo.net/enterprise/$releasever/safe/mirror', |
416 descr => "Extra CentOS packages from Remi", | 416 descr => "Extra CentOS packages from Remi", |
417 enabled => 1, | 417 enabled => 1, |
418 failovermethod => 'priority', | 418 failovermethod => 'priority', |
419 gpgcheck => 1, | 419 gpgcheck => 1, |
420 gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi', | 420 gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi', |
421 } | 421 } |
422 yumrepo { 'remirepo-php7.4': | 422 yumrepo { 'remirepo-php': |
423 mirrorlist => 'http://cdn.remirepo.net/enterprise/$releasever/php74/mirror', | 423 mirrorlist => 'http://cdn.remirepo.net/enterprise/$releasever/php73/mirror', |
424 descr => "PHP7.4 for CentOS from Remi", | 424 descr => "PHP7.3 for CentOS from Remi", |
425 enabled => 1, | 425 enabled => 1, |
426 failovermethod => 'priority', | 426 failovermethod => 'priority', |
427 gpgcheck => 1, | 427 gpgcheck => 1, |
428 gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi', | 428 gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi', |
429 } | 429 } |
430 file { '/etc/pki/rpm-gpg/RPM-GPG-KEY-remi': | 430 file { '/etc/pki/rpm-gpg/RPM-GPG-KEY-remi': |
431 ensure => present, | 431 ensure => present, |
432 source => 'puppet:///common/RPM-GPG-KEY-remi', | 432 source => 'puppet:///common/RPM-GPG-KEY-remi', |
433 before => YumRepo['remirepo-php7.4'], | 433 before => YumRepo['remirepo-php'], |
434 } | 434 } |
435 | 435 |
436 #Configure the PHP version to use | 436 #Configure the PHP version to use |
437 class { 'website::php': | 437 class { 'website::php': |
438 suffix => $php_suffix, | 438 suffix => $php_suffix, |