Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/167835

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/35/167835/1

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: newchange
Gerrit-Change-Id: I481bc29ba5f0b6fef8c61d16e9d1b5e1cfeb0c55
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <[email protected]>

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

Reply via email to