Faidon Liambotis has uploaded a new change for review.

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

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

Revert "Add ::apt to stage => first"

Creates a dependency cycle.

This reverts commit 134de68a53d7d842490ad7579771637c9e20808f.

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


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/43/169643/1

diff --git a/manifests/stages.pp b/manifests/stages.pp
index d9b8ab5..758472d 100644
--- a/manifests/stages.pp
+++ b/manifests/stages.pp
@@ -1,21 +1,6 @@
-# == 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.
-#
+stage { 'first': before => Stage[main] }
+stage { 'last': require => Stage[main] }
 
-## Stages
-
-stage { 'first': before => Stage['main'], }
-stage { 'last': require => Stage['main'], }
-
-
-## Run first
-
-class { '::apt': stage => 'first', } ->
-class { '::apt::update': stage => 'first', }
-
-
-## Run last
+class {
+    'apt::update': stage => first;
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iecc000fd0c93a428af9c9e8ea2aefa0dbe03313d
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon Liambotis <[email protected]>

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

Reply via email to