]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
uses include type class declaration
authorChris Barker <cbarker@puppetlabs.com>
Mon, 20 Apr 2015 17:06:00 +0000 (10:06 -0700)
committerChris Barker <cbarker@puppetlabs.com>
Mon, 20 Apr 2015 17:06:00 +0000 (10:06 -0700)
previous behavior used class { 'stdlib::stages':} which isn't singleton and could cause duplication resource declaration on the stages class.

Since many community modules work by calling 'include stdlib' we should make stdlib's include of stages singleton as well.

manifests/init.pp

index 500ad770d53857ff4ff390fc6a8bb34389eb231f..87ea97501b218cdcb43137b9c0b7d069e010e5a8 100644 (file)
@@ -14,7 +14,5 @@
 # Requires: nothing
 #
 class stdlib {
-
-  class { 'stdlib::stages': }
-
+  include stdlib::stages
 }