modules/redarrow/manifests/init.pp: define redarrow::add_redarrow($redarrow_file) { notice($caller_module_name) file { "/etc/redarrow.conf/$redarrow_file": content => template("${caller_module_name}/redarrow/${redarrow_file}.erb"), } } --------------------------------------------------- modules/mc/manifests/init.pp: define mc::add_config($config) { notice($caller_module_name) file { "/etc/douban/mc/$config": content => template("${caller_module_name}/mc/${config}.erb"), } } --------------------------------------------------- modules/anduin/manifests/init.pp: define anduin::set_up() { mc::add_config { "anduin memcache config file": config => "anduin-online" } define anduin::add_up_anduin() { redarrow::add_redarrow{ "redarrow commands for anduin": redarrow_file => "anduin.conf" } --------------------------------------------------- manifests/nodes.pp: node ''faramir'' inherits basenode { anduin::add_up_anduin{ "redarrow configs for up_anduin": } } node ''fili'' inherits basenode { anduin::set_up { "New Broadcast Backend 1": } } The strange thing is, after starting puppet master, if you "puppetrun faramir" first, then define "anduin::add_up_anduin" execute successfully, the notice show $caller_module_name is "anduin"; But the followed define "anduin::set_up" in node fili will be failed, the error report is: "Can not use a non-existent file for parsing at /etc/puppet/modules/mc/manifests/init.pp:23 on node fili.", and the notice show that $caller_module_name is blank. If you run node fili first, then "anduin::set_up" will be ok, but "anduin::add_up_anduin" will be failed, report is: "Can not use a non-existent file for parsing at /etc/puppet/modules/redarrow/manifests/init.pp:23 on node faramir." Is this a bug or i have been making a mistake? -- System Administrator, Focus on System Management and Basic Development -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.