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: 550

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!

© Server Fault or respective owner

Related posts about user-management

Related posts about puppet