On 11/21/2008 10:18 AM, Hang Chan wrote: > I looked through his definitions and it only checks if the proper > packages exists before setting up his configuration files.
site.pp also includes an apache::site definition that can create or remove a configuration file depending on if you call the definition with ensure => 'present' (the default), or ensure => 'absent'. That definition could be easily extended to also automatically create or remove the folder you're worried about. > I need to check if the directory exists as a condition. I don't want > to create the directory if it doesn't, as it is created manually > right now and needs to stay that way for awhile. Then you'll probably have to copy down the configuration file into a separate location, and use an exec to cp it into the proper destination with an onlyif test. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---