My class reads like: class name1::name2 ($gidvariable) { file { "somepath-to-file": ensure => file, mode => ''0640'', gid => $gidvariable, } } The problem is that the file isn''t getting set to the $gidvariable''s value which is a string "abc". The other things work (presence as file, mode). Stuart -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f3b6d362-0030-4a9b-a258-bc913bd1061d%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Gid should be a number? On 25 Nov 2013 18:14, "Stuart Cracraft" <smcracraft@gmail.com> wrote:> My class reads like: > > class name1::name2 ($gidvariable) { > file { "somepath-to-file": > ensure => file, > mode => ''0640'', > gid => $gidvariable, > } > } > > The problem is that the file isn''t getting set to the $gidvariable''s value > which is a string "abc". > > The other things work (presence as file, mode). > > Stuart > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/f3b6d362-0030-4a9b-a258-bc913bd1061d%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAAohVBfKhv8NMtexYhU%2BuRDJGkAFS-_hs9Ro_UEsHMdZri4pmw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
On 25 Nov 2013 18:14, "Stuart Cracraft" <smcracraft@gmail.com> wrote: My class reads like: class name1::name2 ($gidvariable) { file { "somepath-to-file": ensure => file, mode => ''0640'', gid => $gidvariable, } } Try group instead of gid. This email communication and any files transmitted with it may contain confidential and or proprietary information and is provided for the use of the intended recipient only. Any review, retransmission or dissemination of this information by anyone other than the intended recipient is prohibited. If you receive this email in error, please contact the sender and delete this communication and any copies immediately. Thank you. http://www.encana.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/A233B8D667A4114D983511EE6E8C4389C85EE496%40CGYEX1041. For more options, visit https://groups.google.com/groups/opt_out.
I had wrongly assumed gid, from user type would apply to file type {}. group => $variable fixed the issue. Thanks. On Monday, November 25, 2013 10:14:09 AM UTC-8, Stuart Cracraft wrote:> My class reads like: > > class name1::name2 ($gidvariable) { > file { "somepath-to-file": > ensure => file, > mode => ''0640'', > gid => $gidvariable, > } > } > > The problem is that the file isn''t getting set to the $gidvariable''s value > which is a string "abc". > > The other things work (presence as file, mode). > > Stuart > > > > > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c1cbf521-3435-4ee5-81c9-79ca65bfb958%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
I chose "group => $groupname" instead. On Monday, November 25, 2013 10:21:10 AM UTC-8, Neil - Puppet List wrote:> Gid should be a number? > On 25 Nov 2013 18:14, "Stuart Cracraft" <smcra...@gmail.com <javascript:>> > wrote: > >> My class reads like: >> >> class name1::name2 ($gidvariable) { >> file { "somepath-to-file": >> ensure => file, >> mode => ''0640'', >> gid => $gidvariable, >> } >> } >> >> The problem is that the file isn''t getting set to the $gidvariable''s value >> which is a string "abc". >> >> The other things work (presence as file, mode). >> >> Stuart >> >> >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to puppet-users...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/f3b6d362-0030-4a9b-a258-bc913bd1061d%40googlegroups.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/dd8bcfd2-3de6-4e0b-8ba3-b6adf64d91c8%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.