Puppet - how can i copy a file to several user folders?
- by Eliot Rocha
Well i was using the info on this:
Puppet - Any way to copy predefined custom configuration files for software on clients from the puppet master (host)?
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!