Hi,
Wondering how to substitute the OS X username into the manifest document.
Here are the details:
On the OS X client:
Username is user1
on the puppet server:
sites.pp file:
file { "/Users/$identity['user']/Applications/mpbar/myscript.sh":
source => "puppet:///modules/mymodule/myscript.sh",
If I hard code 'user1' everything works but when I try to substitute the username from the agent I get all the key pairs from identity and not just the user name (user1):
/Users/{gid => 20, group => staff, uid => 504, user => user1}['user']/Applications/mpbar/myscript.sh
I've tried $identity.user as well with no luck.
Any advice on how I can get the local OS X username passed into the sites.pp file so this works properly?
Appreciate any help.
Luis