Puppet - how can i copy a file to several user folders?
Posted
by
Eliot Rocha
on Server Fault
See other posts from Server Fault
or by Eliot Rocha
Published on 2010-11-09T23:44:54Z
Indexed on
2011/01/30
7:27 UTC
Read the original article
Hit count: 586
Well i was using the info on this:
But i need some more elaborated, because i have several Desktops and are in use by 2 or 3 users each one, so i want to make a class for copy a shortcut in his desktops.
The computers are joined to a domain, so any user can log in any desktop, and his profile is created in every desktop.
I've tryed with this:
class applink {
file { "/home/installer/Escritorio/Workdesktop.desktop":
owner => installer,
group => root,
mode => 770,
source => "puppet://$server/files/Workdesktop.desktop"
}
This is only for one user called "installer", how can do this for several users?
Can i use $USER
for do this? Any Thoughts?
Thank You!
© Server Fault or respective owner