Skip to content

Instantly share code, notes, and snippets.

@timurb
Created March 1, 2012 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timurb/1951081 to your computer and use it in GitHub Desktop.
Save timurb/1951081 to your computer and use it in GitHub Desktop.
a bug?
$ 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']'
$ puppet apply test.pp
Duplicate definition: Class[Bar] is already defined; cannot redefine at /tmp/test.pp:11
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