Yuvipanda has submitted this change and it was merged.
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(-)
Approvals:
Yuvipanda: Verified; Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I13e0857faa3580df5b2a652b18833d6fe483aaec
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits