Skip to content

Commit 639bf0b

Browse files
zpetreimlav
authored andcommitted
(maint) Update Percona example (#1165)
* Updated packages and added new public signing key
1 parent 3ad4a9f commit 639bf0b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,23 +181,22 @@ If required, the password can also be an empty string to allow connections witho
181181
This example shows how to do a minimal installation of a Percona server on a
182182
CentOS system. This sets up the Percona server, client, and bindings (including Perl and Python bindings). You can customize this usage and update the version as needed.
183183

184-
This usage has been tested on Puppet 4.4 / CentOS 7 / Percona Server 5.7.
184+
This usage has been tested on Puppet 4.4, 5.5 and 6.3.0 / CentOS 7 / Percona Server 5.7.
185185

186186
**Note:** The installation of the yum repository is not part of this package
187187
and is here only to show a full example of how you can install.
188188

189189
```puppet
190190
yumrepo { 'percona':
191191
descr => 'CentOS $releasever - Percona',
192-
baseurl => 'http://repo.percona.com/centos/$releasever/os/$basearch/',
193-
gpgkey => 'http://www.percona.com/downloads/percona-release/RPM-GPG-KEY-percona',
192+
baseurl => 'http://repo.percona.com/percona/yum/release/$releasever/RPMS/$basearch',
193+
gpgkey => 'https://repo.percona.com/yum/PERCONA-PACKAGING-KEY',
194194
enabled => 1,
195195
gpgcheck => 1,
196196
}
197197
198198
class {'mysql::server':
199199
package_name => 'Percona-Server-server-57',
200-
package_ensure => '5.7.11-4.1.el7',
201200
service_name => 'mysql',
202201
config_file => '/etc/my.cnf',
203202
includedir => '/etc/my.cnf.d',
@@ -216,18 +215,15 @@ class {'mysql::server':
216215
# Note: Installing Percona-Server-server-57 also installs Percona-Server-client-57.
217216
# This shows how to install the Percona MySQL client on its own
218217
class {'mysql::client':
219-
package_name => 'Percona-Server-client-57',
220-
package_ensure => '5.7.11-4.1.el7',
218+
package_name => 'Percona-Server-client-57'
221219
}
222220
223221
# These packages are normally installed along with Percona-Server-server-57
224222
# If you needed to install the bindings, however, you could do so with this code
225223
class { 'mysql::bindings':
226224
client_dev_package_name => 'Percona-Server-shared-57',
227-
client_dev_package_ensure => '5.7.11-4.1.el7',
228225
client_dev => true,
229226
daemon_dev_package_name => 'Percona-Server-devel-57',
230-
daemon_dev_package_ensure => '5.7.11-4.1.el7',
231227
daemon_dev => true,
232228
perl_enable => true,
233229
perl_package_name => 'perl-DBD-MySQL',

0 commit comments

Comments
 (0)