Faidon Liambotis has submitted this change and it was merged.

Change subject: Add ::apt to stage => first
......................................................................


Add ::apt to stage => first

To ensure that apt configs are applied before we start installing packages.

Change-Id: I481bc29ba5f0b6fef8c61d16e9d1b5e1cfeb0c55
---
M manifests/stages.pp
1 file changed, 20 insertions(+), 5 deletions(-)

Approvals:
  Faidon Liambotis: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/manifests/stages.pp b/manifests/stages.pp
index 758472d..d9b8ab5 100644
--- a/manifests/stages.pp
+++ b/manifests/stages.pp
@@ -1,6 +1,21 @@
-stage { 'first': before => Stage[main] }
-stage { 'last': require => Stage[main] }
+# == Manifest: ::stages
+#
+# Puppet segments its run into run stages. By default, there is only
+# the 'main' stage. We add a 'first' stage (which runs before 'main')
+# and a 'last' stage (which runs after it) as a way of ensuring that
+# certain actions happen at the very beginning or very end of a run.
+#
 
-class {
-    'apt::update': stage => first;
-}
+## Stages
+
+stage { 'first': before => Stage['main'], }
+stage { 'last': require => Stage['main'], }
+
+
+## Run first
+
+class { '::apt': stage => 'first', } ->
+class { '::apt::update': stage => 'first', }
+
+
+## Run last

-- 
To view, visit https://gerrit.wikimedia.org/r/167835
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I481bc29ba5f0b6fef8c61d16e9d1b5e1cfeb0c55
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <[email protected]>
Gerrit-Reviewer: Faidon Liambotis <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to