Hi, I m'' trying to do something like this in Puppet (my version is 0.23.0) : $myprefix = "myvalue" file { "/my/file": group => "$myprefix_group", } Unfortunately Puppet replaces "$myprefix_group" by "" instead of "myvalue_group". If i use a "." separator instead of "_", the substitution is OK. Is there a syntax tip to make it works or is it a bug in Puppet? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Try "${myprefix}_group" On 10 Oct 2008, at 13:40, Sébastien Prud''homme wrote:> > Hi, > > I m'' trying to do something like this in Puppet (my version is > 0.23.0) : > > $myprefix = "myvalue" > > file { "/my/file": > group => "$myprefix_group", > } > > Unfortunately Puppet replaces "$myprefix_group" by "" instead of > "myvalue_group". > > If i use a "." separator instead of "_", the substitution is OK. > > Is there a syntax tip to make it works or is it a bug in Puppet? > > Thanks! > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sébastien Prud''homme
2008-Oct-10 19:44 UTC
[Puppet Users] Re: Variable substitution problem
Ok i''ll try that next monday. Thanks 2008/10/10 Mike Pountney <mike.pountney@gmail.com>:> > > Try "${myprefix}_group" > > On 10 Oct 2008, at 13:40, Sébastien Prud''homme wrote: > >> >> Hi, >> >> I m'' trying to do something like this in Puppet (my version is >> 0.23.0) : >> >> $myprefix = "myvalue" >> >> file { "/my/file": >> group => "$myprefix_group", >> } >> >> Unfortunately Puppet replaces "$myprefix_group" by "" instead of >> "myvalue_group". >> >> If i use a "." separator instead of "_", the substitution is OK. >> >> Is there a syntax tip to make it works or is it a bug in Puppet? >> >> Thanks! >> >> > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sébastien Prud''homme
2008-Oct-13 11:33 UTC
[Puppet Users] Re: Variable substitution problem
It''s fine now thanks to Mike''s advice. 2008/10/10 Sébastien Prud''homme <sebastien.prudhomme@gmail.com>:> Ok i''ll try that next monday. > > Thanks > > 2008/10/10 Mike Pountney <mike.pountney@gmail.com>: >> >> >> Try "${myprefix}_group" >> >> On 10 Oct 2008, at 13:40, Sébastien Prud''homme wrote: >> >>> >>> Hi, >>> >>> I m'' trying to do something like this in Puppet (my version is >>> 0.23.0) : >>> >>> $myprefix = "myvalue" >>> >>> file { "/my/file": >>> group => "$myprefix_group", >>> } >>> >>> Unfortunately Puppet replaces "$myprefix_group" by "" instead of >>> "myvalue_group". >>> >>> If i use a "." separator instead of "_", the substitution is OK. >>> >>> Is there a syntax tip to make it works or is it a bug in Puppet? >>> >>> Thanks! >>> >>> > >> >> >> >> >> >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---