aarb000@gmail.com
2014-Sep-19 21:09 UTC
[Puppet Users] Manage a single file (directory) from multiple modules
I have a single class for every application to be installed on our Macintosh clients. The problem I am having is in the section of the class below. This copies files to the User Template folder so when users login they get predefined preferences. file { "System/Library/User Template/English.lproj/Library/Preferences/": source => "puppet:///modules/office_2011/Preferences", owner => "root", group => "wheel", mode => 600, recurse => true, require => Package["$main_package"], } This would work perfect if I had only one application in which I wanted managed preferences. I am getting an error that the User Template folder is being managed by another class. I understand why. I also understand the purpose. This code however only copies files into the Template Folder, it doesn't overwrite, or purge the folder. So, in theory, what I want to do should be a valid approach to managing preferences. I have an idea, but don't know how to execute it. So I hope someone can help. In the Puppetlabs/Firewall module, you can access it from another module. So if I have an apache module, I can tell the Firewall module I want to open port 80. I would like to make a Macintosh Managed Preferences module that will manage the User Template folder, and in each application module, I can provide that module with files. How can I accomplish this? Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7fe782a1-fba4-4cef-aeab-4cf85ed170d2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.