Puppet Class: vaz::repo
- Defined in:
- manifests/repo.pp
Overview
Class: vaz::repo
vaz::repo is to setup repository.
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.pp', line 5
class vaz::repo (
String $ensure = 'present',
String $gpgkey_url = 'https://repo.veeta.org/gpg/GPG-KEY-vaz',
) {
case $facts['os']['family'] {
'RedHat': {
yumrepo { 'vaz':
ensure => $ensure,
descr => 'vaz',
baseurl => 'http://repo.veeta.org/centos/$basearch',
enabled => 1,
gpgcheck => 1,
gpgkey => $gpgkey_url,
}
}
'Debian': {
apt::source { 'vaz':
location => 'http://repo.veeta.org/debian/',
release => 'vaz',
repos => 'main',
key => {
id => 'FB369DFBB565680BACBB5E86BA436689FC2D1244',
source => $gpgkey_url,
},
include => {
deb => true,
source => false,
}
}
}
default: {
fail("Unsupported os: ${facts['os']['name']}")
}
}
}
|