changeset 238:6467e768e353 puppet-3.6

Switch to PHP 7.4 from Remi Webtatic don't support PHP 7.4 yet, and Remi is a Fedora maintainer
author IBBoard <dev@ibboard.co.uk>
date Fri, 20 Dec 2019 11:19:30 +0000
parents 1e65604c182a
children 001e2f446837
files common/RPM-GPG-KEY-remi common/RPM-GPG-KEY-webtatic-el7 manifests/templates.pp
diffstat 3 files changed, 50 insertions(+), 41 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/RPM-GPG-KEY-remi	Fri Dec 20 11:19:30 2019 +0000
@@ -0,0 +1,24 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1.4.7 (GNU/Linux)
+
+mQGiBEJny1wRBACRnbQgZ6qLmJSuGvi/EwrRL6aW610BbdpLQRL3dnwy5wI5t9T3
+/JEiEJ7GTvAwfiisEHifMfk2sRlWRf2EDQFttHyrrYXfY5L6UAF2IxixK5FL7PWA
+/2a7tkw1IbCbt4IGG0aZJ6/xgQejrOLi4ewniqWuXCc+tLuWBZrGpE2QfwCggZ+L
+0e6KPTHMP97T4xV81e3Ba5MD/3NwOQh0pVvZlW66Em8IJnBgM+eQh7pl4xq7nVOh
+dEMJwVU0wDRKkXqQVghOxALOSAMapj5mDppEDzGLZHZNSRcvGEs2iPwo9vmY+Qhp
+AyEBzE4blNR8pwPtAwL0W3cBKUx7ZhqmHr2FbNGYNO/hP4tO2ochCn5CxSwAfN1B
+Qs5pBACOkTZMNC7CLsSUT5P4+64t04x/STlAFczEBcJBLF1T16oItDITJmAsPxbY
+iee6JRfXmZKqmDP04fRdboWMcRjfDfCciSdIeGqP7vMcO25bDZB6x6++fOcmQpyD
+1Fag3ZUq2yojgXWqVrgFHs/HB3QE7UQkykNp1fjQGbKK+5mWTrQkUmVtaSBDb2xs
+ZXQgPFJQTVNARmFtaWxsZUNvbGxldC5jb20+iGAEExECACAFAkZ+MYoCGwMGCwkI
+BwMCBBUCCAMEFgIDAQIeAQIXgAAKCRAATm9HAPl/Vv/UAJ9EL8ioMTsz/2EPbNuQ
+MP5Xx/qPLACeK5rk2hb8VFubnEsbVxnxfxatGZ25AQ0EQmfLXRAEANwGvY+mIZzj
+C1L5Nm2LbSGZNTN3NMbPFoqlMfmym8XFDXbdqjAHutGYEZH/PxRI6GC8YW5YK4E0
+HoBAH0b0F97JQEkKquahCakj0P5mGuH6Q8gDOfi6pHimnsSAGf+D+6ZwAn8bHnAa
+o+HVmEITYi6s+Csrs+saYUcjhu9zhyBfAAMFA/9Rmfj9/URdHfD1u0RXuvFCaeOw
+CYfH2/nvkx+bAcSIcbVm+tShA66ybdZ/gNnkFQKyGD9O8unSXqiELGcP8pcHTHsv
+JzdD1k8DhdFNhux/WPRwbo/es6QcpIPa2JPjBCzfOTn9GXVdT4pn5tLG2gHayudK
+8Sj1OI2vqGLMQzhxw4hJBBgRAgAJBQJCZ8tdAhsMAAoJEABOb0cA+X9WcSAAn11i
+gC5ns/82kSprzBOU0BNwUeXZAJ0cvNmY7rvbyiJydyLsSxh/la6HKw==
+=6Rbg
+-----END PGP PUBLIC KEY BLOCK-----
--- a/common/RPM-GPG-KEY-webtatic-el7	Fri Dec 20 09:41:34 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
------BEGIN PGP PUBLIC KEY BLOCK-----
-Version: GnuPG v2
-
-mQINBFOch44BEADUQkO69WbI65GuTf7e/PxkPMONyyjeV3wZjz1qHtDbryzQmoN9
-CJg4xLUd/Dd03peNRQJ7RL/l2qsCu1Mb7zSTqaDdExRGyweKw6mIGBumzvBBRXPw
-97ezIEIiEmq3ZUKFGBSDU3VQI4Zzndn/NgSOa03tWn2VlrTyYsMHm07839OGn6bD
-CdnxlzAv2Z6FxYKomo2jMNPQ9vyJ6h3dSUghFhAkZPlkfLPAdBxuFVnn3oyAElDa
-F8G19BfRywg7tLQRE7aSuX9E7VqJo0QmZPqwy/oijb9NSEyDg9lO+y/naebX67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jQfWknGJpvQ7bfYkoYvINCWqdwUgaOGmrQ8omkeO4AjHsJ41/elz5FN6
-yG86FITDM4P64H8PBSCkFUYaYXrnWHWftjGcrGF6cFjZGLDh/pWL0vBgB7u+LoMa
-EFPgVyg6CysBrTAT061QVX9O1bJTtxXAcG2vr/kv
-=D3Nr
------END PGP PUBLIC KEY BLOCK-----
--- a/manifests/templates.pp	Fri Dec 20 09:41:34 2019 +0000
+++ b/manifests/templates.pp	Fri Dec 20 11:19:30 2019 +0000
@@ -201,7 +201,7 @@
 		source => 'puppet:///common/RPM-GPG-KEY-EPEL-6'
 	}
 	yumrepo { 'ibboard':
-		baseurl => 'https://download.opensuse.org/repositories/home:/IBBoard:/server/CentOS_7/',
+		baseurl => 'https://download.opensuse.org/repositories/home:/IBBoard:/server/CentOS_$releasever/',
 		descr => 'Extra packages from IBBoard',
 		enabled => 1,
 		gpgcheck => 1,
@@ -212,20 +212,13 @@
 		source => 'puppet:///common/RPM-GPG-KEY-ibboard'
 	}
 	yumrepo { 'webtatic':
-		mirrorlist => 'http://mirror.webtatic.com/yum/el$releasever/$basearch/mirrorlist',
-		descr => "Webtatic Packages for Enterprise Linux",
-		enabled => 1,
-		failovermethod => 'priority',
-		gpgcheck => 1,
-		gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7',
+		ensure => absent,
 	}
 	file { '/etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy':
 		ensure => absent,
 	}
 	file { '/etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7':
-		ensure => present,
-		source => 'puppet:///common/RPM-GPG-KEY-webtatic-el7',
-		before => YumRepo['webtatic'],
+		ensure => absent,
 	}
 
 	# Install Pip and symlink it so we can use it as a package provider
@@ -416,8 +409,29 @@
 		default_extra_tlds => [ 'com' ],
 	}
 
-	# Use Webtatic's PHP 7
-	$php_suffix = '72w'
+	# Use Remi's PHP 7.4
+	$php_suffix = ''
+	yumrepo { 'remirepo-safe':
+		mirrorlist => 'http://cdn.remirepo.net/enterprise/$releasever/safe/mirror',
+		descr => "Extra CentOS packages from Remi",
+		enabled => 1,
+		failovermethod => 'priority',
+		gpgcheck => 1,
+		gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi',
+	}
+	yumrepo { 'remirepo-php7.4':
+		mirrorlist => 'http://cdn.remirepo.net/enterprise/$releasever/php74/mirror',
+		descr => "PHP7.4 for CentOS from Remi",
+		enabled => 1,
+		failovermethod => 'priority',
+		gpgcheck => 1,
+		gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi',
+	}
+	file { '/etc/pki/rpm-gpg/RPM-GPG-KEY-remi':
+		ensure => present,
+		source => 'puppet:///common/RPM-GPG-KEY-remi',
+		before => YumRepo['remirepo-php7.4'],
+	}
 
 	#Configure the PHP version to use
 	class { 'website::php':