Skip to content
Browse files

add custom_repo to foreman_proxy

  • Loading branch information...
1 parent 6454e24 commit cf86d6c60b62877162bb2fc8d2f2af02404b1dca @fschaer fschaer committed Mar 6, 2013
Showing with 14 additions and 3 deletions.
  1. +1 −0 manifests/init.pp
  2. +10 −3 manifests/install.pp
  3. +3 −0 manifests/params.pp
View
1 manifests/init.pp
@@ -1,5 +1,6 @@
class foreman_proxy (
$repo = $foreman_proxy::params::repo,
+ $custom_repo = $foreman_proxy::params::custom_repo,
$port = $foreman_proxy::params::port,
$dir = $foreman_proxy::params::dir,
$user = $foreman_proxy::params::user,
View
13 manifests/install.pp
@@ -1,10 +1,17 @@
class foreman_proxy::install {
- foreman::install::repos { 'foreman_proxy':
- repo => $foreman_proxy::repo,
+ if ! $foreman_proxy::custom_repo {
+ foreman::install::repos { 'foreman_proxy':
+ repo => $foreman_proxy::repo,
+ }
+ }
+
+ $repo = $foreman_proxy::custom_repo ? {
+ true => [],
+ default => Foreman::Install::Repos['foreman_proxy'],
}
package {'foreman-proxy':
ensure => present,
- require => Foreman::Install::Repos['foreman_proxy'],
+ require => $repo,
}
}
View
3 manifests/params.pp
@@ -5,6 +5,9 @@
# Packaging
$repo = stable
+ # if set to true, no repo will be added by this module, letting you to
+ # set it to some custom location.
+ $custom_repo = false
# variables
$port = "8443"

0 comments on commit cf86d6c

Please sign in to comment.
Something went wrong with that request. Please try again.