Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- manifests/nodes.pp
- ##################################
- node testnode.domain {
- include test_module
- }
- ##################################
- modules/test_module/init.pp
- ##################################
- class test_module ($test = "basetest") {
- notify {"${test}":;}
- class { "test_module::test_implementation::test": subtest => "imp_subtest" }
- }
- ##################################
- modules/test_module/test_implementation/test.pp
- ##################################
- class test_module::test_implementation::test ($subtest = "subtest") {
- notify {"${subtest}":; }
- notify {"Unqualified ${test}":;}
- notify {"FQ ${Test_module::test}":;}
- }
- ####################################################
- Syslog output from puppetmaster:
- ####################################################
- Mar 7 02:08:50 testmaster puppet-master[6082]: (Scope(Class[Test_module])) Could not look up qualified variable 'data::testnode.domain::test_module::test'; class data::testnode.domain::test_module could not be found
- Mar 7 02:08:50 testmaster puppet-master[6082]: Compiled catalog for testnode.domain in environment testenv in 0.24 seconds
- ####################################################
- Agent Output on testnode.domain:
- ####################################################
- root@testnode:~# puppet agent -t --environment=testenv
- Info: Retrieving plugin
- Info: Loading facts in /var/lib/puppet/lib/facter/inventory.rb
- Info: Caching catalog for testnode.domain
- Info: Applying configuration version '1362650930'
- Notice: basetest
- Notice: /Stage[main]/Test_module/Notify[basetest]/message: defined 'message' as 'basetest'
- Notice: Unqualified
- Notice: /Stage[main]/Test_module::Test_implementation::Test/Notify[Unqualified ]/message: defined 'message' as 'Unqualified '
- Notice: FQ basetest
- Notice: /Stage[main]/Test_module::Test_implementation::Test/Notify[FQ basetest]/message: defined 'message' as 'FQ basetest'
- Notice: imp_subtest
- Notice: /Stage[main]/Test_module::Test_implementation::Test/Notify[imp_subtest]/message: defined 'message' as 'imp_subtest'
- Notice: Finished catalog run in 0.11 seconds
Advertisement
Add Comment
Please, Sign In to add comment