Try this command string to obtain your custom fact for $home_user:

getent passwd | grep <username> | cut -f6 -d':'

Be aware though, that you may experience extreme lag if you have a
faulty authentication service (NIS, LDAP, whatever).

There's probably a better way to do it, but that will at least be accurate.

Trevor

On Tue, May 12, 2009 at 14:15, Robin Lee Powell
<rlpow...@digitalkingdom.org> wrote:
>
>
> What I want to do is:
>
>    file { "~$user/.zshenv":
>    ...}
>
> but that doesn't work.  I made custom facts for home dirs, so that
> "home_root" should work, but his:
>
>    file { "${home_$user}/.zshenv":
>    ...}
>
> doesn't work either.
>
> Help?
>
> -Robin
>
> --
> They say:  "The first AIs will be built by the military as weapons."
> And I'm  thinking:  "Does it even occur to you to try for something
> other  than  the default  outcome?"  See http://shrunklink.com/cdiz
> http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to