On Thu, May 14, 2015 at 10:11 AM, <plued...@caci.com> wrote:

> I have installed apache and tomcat from source in the /opt directory.
> Once I completed the install I modified the directory and file ownership
> and permissions.
> I also modified the .conf and .xml files for both tomcat and apache.
> Is there a way to capture a directory structure and the modifications and
> then create a puppet module from this info?
> would I use puppet resource or do I need to entre the info by hand?
> Thanks
>

I would recommend that you build a package, which you can then deploy with
Puppet. You may still wish to manage the configuration files separately
witha  module, and that's definitely find (and encouraged). Since it sounds
like you mostly just want to bundle up a directory, fpm[1] might be all you
need.

Using a native package will make it much easier when you need to upgrade
(and you will, eventually). It will also allow easy auditing of which
version of the software is running on each system in your infrastructure.

If for some reason you don't want to use a package (and I STRONGLY
recommend that you create a proper system package), you can also just make
a tarball and use the staging[2] or archive[3] modules to deploy it with
Puppet.

[1] https://github.com/jordansissel/fpm
[2] https://forge.puppetlabs.com/nanliu/staging
[3] https://forge.puppetlabs.com/nanliu/archive


Branan Riley
Software Engineer, Puppet Labs

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CADWDnrmdAKo00%3Dins0%3D4DWZyzWEArGztnujGXwXbG-KKoSd3MA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to