2017-02-10 16:54:17 +03:00
|
|
|
# Manage the packagecloud repo's
|
|
|
|
class orchestrator::repo inherits orchestrator {
|
2017-02-10 21:14:40 +03:00
|
|
|
if $orchestrator::repo_manage {
|
2017-02-10 16:54:17 +03:00
|
|
|
include packagecloud
|
|
|
|
|
|
|
|
case $::operatingsystem {
|
|
|
|
'Debian', 'Ubuntu': {
|
|
|
|
packagecloud::repo { 'github/orchestrator':
|
|
|
|
type => 'deb',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
'Fedora', 'CentOS', 'RedHat': {
|
|
|
|
packagecloud::repo { 'github/orchestrator':
|
|
|
|
type => 'rpm',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default: {
|
|
|
|
fail("Operating system ${::operatingsystem} was not supported for adding repo's")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|