Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new parameter 'nginx_manage_repo' #182

Merged
merged 2 commits into from
Sep 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
#
Expand Down Expand Up @@ -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 {}
8 changes: 5 additions & 3 deletions manifests/profile/nginx.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand All @@ -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,
}
}