liam.j.bennett
2011-Oct-05 16:19 UTC
[Puppet Users] Deprecation notice: must now include ''$'' in prototype
Can some explain to me how to fix the following warning: warning: Deprecation notice: must now include ''$'' in prototype I am receiving in on one of my functions define config_file(owner = named, group = named, mode = 644,source, ensure = file, replace = no, source = "puppet://$servername/ configmodule/scripts" ) -- 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.
Steve Snodgrass
2011-Oct-05 17:32 UTC
[Puppet Users] Re: Deprecation notice: must now include ''$'' in prototype
You just need to include a $ in front of those parameter variables: define config_file($owner = named, $group = named, ... On Oct 5, 12:19 pm, "liam.j.bennett" <liam.j.benn...@gmail.com> wrote:> Can some explain to me how to fix the following warning: > > warning: Deprecation notice: must now include ''$'' in prototype > > I am receiving in on one of my functions > > define config_file(owner = named, group = named, mode = 644,source, > ensure = file, replace = no, source = "puppet://$servername/ > configmodule/scripts" )-- 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.