3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'manifests/repo/apt.pp', line 3
class percona::repo::apt {
apt::key { 'CD2EFD2A':
ensure => present,
notify => Exec['percona::repo::apt-get update'],
}
if defined('apt::sources_list') {
# Camp2Camp/apt module
apt::sources_list { 'percona':
ensure => present,
source => false,
content => template ("${module_name}/repo/sources.list.erb"),
notify => Exec['percona::repo::apt-get update'],
require => Apt::Key['CD2EFD2A'],
}
}
if defined('apt::source') {
# Puppetlabs/apt module
apt::source { 'percona':
ensure => present,
include_src => true,
location => 'http://repo.percona.com/apt',
release => $::lsbdistcodename,
repos => 'main',
notify => Exec['percona::repo::apt-get update'],
require => Apt::Key['CD2EFD2A'],
}
}
exec { 'percona::repo::apt-get update':
command => 'apt-get update',
path => '/usr/bin',
refreshonly => true,
}
}
|