Yuvipanda has uploaded a new change for review.
https://gerrit.wikimedia.org/r/142499
Change subject: nginx: Make nginx package name configurable
......................................................................
nginx: Make nginx package name configurable
Bug: 67188
Change-Id: Iefe7be5813ac74a2b865e9d3924d0389f543a7a7
---
M manifests/init.pp
1 file changed, 6 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet/nginx
refs/changes/99/142499/1
diff --git a/manifests/init.pp b/manifests/init.pp
index 2bd7744..ae105e5 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -12,8 +12,12 @@
# false, the service will need to be manually restarted for the
# configuration changes to take effect.
#
+# [*package_name*]
+# Name of the package to install. Defaults to nginx-full
+#
class nginx(
$managed = true,
+ $package_name = 'nginx-full',
)
{
package { [ 'nginx-full', 'nginx-full-dbg' ]: }
@@ -22,7 +26,7 @@
enable => true,
provider => 'debian',
hasrestart => true,
- require => Package['nginx-full'],
+ require => Package[$package_name],
}
file { [ '/etc/nginx/conf.d', '/etc/nginx/sites-available',
'/etc/nginx/sites-enabled' ]:
@@ -30,7 +34,7 @@
recurse => true,
purge => true,
force => true,
- require => Package['nginx-full'],
+ require => Package[$package_name],
}
if $managed {
--
To view, visit https://gerrit.wikimedia.org/r/142499
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iefe7be5813ac74a2b865e9d3924d0389f543a7a7
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet/nginx
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits