Yuvipanda has uploaded a new change for review.
https://gerrit.wikimedia.org/r/234242
Change subject: aptly: Switch class to define
......................................................................
aptly: Switch class to define
Change-Id: I13e0857faa3580df5b2a652b18833d6fe483aaec
---
M modules/aptly/manifests/repo.pp
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/42/234242/1
diff --git a/modules/aptly/manifests/repo.pp b/modules/aptly/manifests/repo.pp
index a73c4af..759ce0b 100644
--- a/modules/aptly/manifests/repo.pp
+++ b/modules/aptly/manifests/repo.pp
@@ -1,10 +1,10 @@
-class aptly::repo (
+define aptly::repo (
$distribution,
$component = $::labsproject,
$publish = false,
) {
require ::aptly
-
+
$repo_name = "${title}-${component}-${distribution}"
exec { "create-aptly-repo-${title}":
command => "/usr/bin/aptly repo create -component=${component}
-distribution=${distribution} ${repo_name}",
--
To view, visit https://gerrit.wikimedia.org/r/234242
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I13e0857faa3580df5b2a652b18833d6fe483aaec
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits