diff --git a/manifests/init.pp b/manifests/init.pp index 0fff0b3c..77917cd3 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -46,6 +46,7 @@ # [*mongodb_version*] - Version of MongoDB to install. If not provided it # will be auto-calcuated based on $version # (default: undef) +# [*manage_repo*] - Set this to false when you have your own repositories for nginx # # Variables can be set in Hiera and take advantage of automatic data bindings: # @@ -103,4 +104,5 @@ $ng_init = true, $datastore_keys_dir = $::st2::params::datstore_keys_dir, $datastore_key_path = "${::st2::params::datstore_keys_dir}/datastore_key.json", + $nginx_manage_repo = true, ) inherits st2::params {} diff --git a/manifests/profile/nginx.pp b/manifests/profile/nginx.pp index 1aacf5cf..b330c2f2 100644 --- a/manifests/profile/nginx.pp +++ b/manifests/profile/nginx.pp @@ -5,7 +5,7 @@ # # === Parameters # -# This module contains no parameters +# [*manage_repo*] - Set this to false when you have your own repository for nginx # # === Variables # @@ -15,9 +15,11 @@ # # include st2::profile::nginx # -class st2::profile::nginx inherits st2 { +class st2::profile::nginx ( + $manage_repo = $::st2::nginx_manage_repo +) inherits st2 { class { '::nginx': - manage_repo => true, + manage_repo => $manage_repo, confd_purge => false, } }