Puppet Class: stns::repo
- Defined in:
- manifests/repo.pp
Overview
Class: stns::repo
stns::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 |
# File 'manifests/repo.pp', line 5
class stns::repo {
$gpgkey_url = 'https://repo.stns.jp/gpg/GPG-KEY-stns'
case $::osfamily {
'RedHat': {
yumrepo { 'stns':
ensure => present,
descr => 'stns',
baseurl => 'http://repo.stns.jp/centos/$basearch/$releasever',
enabled => 1,
gpgcheck => 1,
gpgkey => $gpgkey_url,
}
}
'Debian': {
include ::apt
require ::apt::update
include stns::repo::apt
}
default: {
fail("Unsupported osfamily: ${::osfamily}")
}
}
}
|