question about file {} type

28 views
Skip to first unread message

Stuart Cracraft

unread,
Nov 25, 2013, 1:14:09 PM11/25/13
to puppet...@googlegroups.com
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






Neil - Puppet List

unread,
Nov 25, 2013, 1:21:10 PM11/25/13
to PuppetList

Gid should be a number?

--
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.
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.

Stuart Cracraft

unread,
Nov 25, 2013, 1:28:39 PM11/25/13
to puppet...@googlegroups.com
I had wrongly assumed gid, from user type would apply to file type {}.

group => $variable

fixed the issue.

Thanks.

Kinzel, David

unread,
Nov 25, 2013, 1:28:11 PM11/25/13
to puppet...@googlegroups.com
On 25 Nov 2013 18:14, "Stuart Cracraft" <smcra...@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

Stuart Cracraft

unread,
Nov 25, 2013, 5:16:22 PM11/25/13
to puppet...@googlegroups.com, maillis...@iamafreeman.com
I chose "group => $groupname" instead.
Reply all
Reply to author
Forward
0 new messages