Good morning,
I have a question concerning puppet and modifying user data. I am on Mac
OS X 10.8.5 with puppet 3.4.2.
I would like to run a manifest with the following content:
file { "/Users/${id}/Desktop/testfile":
ensure => file,
}
file { "/usr/testfile":
ensure => file,
}
For this manifest you need root access and you have to know the current
logged in user.
But the fact $id is, of course, "root" because I have to run this
manifest as root.
So how can I get the current logged in user as a variable?
Thanks in advance.
Kind regards.
Robert
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/52D7866A.1040909%40reproflex.de.
For more options, visit https://groups.google.com/groups/opt_out.