Skip to content

Commit 53a8893

Browse files
authored
Merge pull request #182 from ruriky/nginx/repo_manage
Add new parameter 'nginx_manage_repo'
2 parents ec995e1 + e2addfc commit 53a8893

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

manifests/init.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
# [*mongodb_version*] - Version of MongoDB to install. If not provided it
4747
# will be auto-calcuated based on $version
4848
# (default: undef)
49+
# [*manage_repo*] - Set this to false when you have your own repositories for nginx
4950
#
5051
# Variables can be set in Hiera and take advantage of automatic data bindings:
5152
#
@@ -103,4 +104,5 @@
103104
$ng_init = true,
104105
$datastore_keys_dir = $::st2::params::datstore_keys_dir,
105106
$datastore_key_path = "${::st2::params::datstore_keys_dir}/datastore_key.json",
107+
$nginx_manage_repo = true,
106108
) inherits st2::params {}

manifests/profile/nginx.pp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# === Parameters
77
#
8-
# This module contains no parameters
8+
# [*manage_repo*] - Set this to false when you have your own repository for nginx
99
#
1010
# === Variables
1111
#
@@ -15,9 +15,11 @@
1515
#
1616
# include st2::profile::nginx
1717
#
18-
class st2::profile::nginx inherits st2 {
18+
class st2::profile::nginx (
19+
$manage_repo = $::st2::nginx_manage_repo
20+
) inherits st2 {
1921
class { '::nginx':
20-
manage_repo => true,
22+
manage_repo => $manage_repo,
2123
confd_purge => false,
2224
}
2325
}

0 commit comments

Comments
 (0)