Skip to content

Commit

Permalink
Merge pull request #182 from ruriky/nginx/repo_manage
Browse files Browse the repository at this point in the history
Add new parameter 'nginx_manage_repo'
  • Loading branch information
nmaludy authored Sep 1, 2017
2 parents ec995e1 + e2addfc commit 53a8893
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
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,
}
}

0 comments on commit 53a8893

Please sign in to comment.