I''m sure i''m doing something incorrectly, I''m basing this off of what I''ve seen in other modules, but it''s not working as I''d expect. Specifically, If i change the parameters to server_config. My mongo.conf doesn''t ever reflect that change. As a matter of fact, I can delete mongo.conf and run puppet agent --test and it will not get replaced. If i remove the "@@" it works correctly, (except i don''t get the exported resource that I want to use elsewhere). I''ve got a node: node /^test\d+$/ { include stdlib include cc-mongo @@cc-mongo::server_config{ ''$fqdn'': sequence => 0} } and cc-mongo::server_config: define cc-mongo::server_config ( $replSet = "$environment", $server_name = "$hostname", $ipaddress = "$ipaddress", $sequence = 0, ) { file { ''mongo.conf'': path => ''/etc/mongod.conf'', notify => Service[''mongod''], owner => mongod, group => mongod, mode => 0640, content => template(''cc-mongo/mongod.conf.erb''); } } Any suggestions would be great. Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/46BOChxHFDcJ. 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.
> If i remove the "@@" it works correctly, (except i don''t get the > exported resource that I want to use elsewhere). > >Can you show how and where you are realizing the exported resource? From what I can see in your code you will export it ok but you''re not realizing it anywhere.... Regards Craig -- Craig Dunn Professional Services Puppet Labs Inc. http://www.puppetlabs.com -- 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.
Ah-ha! i had gotten confused by the examples I was using because they were realizing with a collector. (making me think that If i didn''t want to collect I didn''t need to realize). Now that I''ve added the code to realize it''s working. Thank you! On Friday, January 11, 2013 3:12:49 PM UTC-8, Craig Dunn wrote:> > > > If i remove the "@@" it works correctly, (except i don''t get the > > exported resource that I want to use elsewhere). > > > > > > Can you show how and where you are realizing the exported resource? From > what I can see in your code you will export it ok but you''re not > realizing it anywhere.... > > Regards > Craig > > -- > Craig Dunn > Professional Services > Puppet Labs Inc. > http://www.puppetlabs.com > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/U_jmgPpGtAsJ. 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.