Created
March 1, 2012 16:30
-
-
Save timurb/1951081 to your computer and use it in GitHub Desktop.
a bug?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ puppet apply test.pp | |
warning: Scope(Class[Foo]): Could not look up qualified variable 'bar::var'; class bar has not been evaluated at /tmp/test.pp:4 | |
notice: undef | |
notice: /Stage[main]/Foo/Notify[undef]/message: defined 'message' as 'undef' | |
notice: Finished catalog run in 0.03 seconds | |
# The same is produced if I append to the manifest the line 'Class['foo'] -> Class['bar']' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ puppet apply test.pp | |
Duplicate definition: Class[Bar] is already defined; cannot redefine at /tmp/test.pp:11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include foo | |
class foo { | |
require bar | |
notify { $bar::var : } | |
} | |
class bar ($var='bz') { | |
} | |
class { 'bar': } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment