On Friday, August 28, 2015 at 7:51:42 AM UTC-5, Sergiu Cornea wrote: > > Hi John, > > Thank you for your reply. So I have decided to go for RPM, however, I am > wondering now as I have finished my first package if I need to create an > RPM for each website (as the location is different such as: myexample.com/ > and myexample1.com/ or I could do this by passing some arguments? > >
If the web sites differ only in server name, then I would advise you to (re-)write your HTML so that it uses only relative links to content within the site. Alternatively, use some form of dynamic pages. Either way, the content you distribute can then be identical on all the sites. If you're talking about a small number of configuration files, on the other hand, then those few files are exactly the kind of thing that you should use Puppet to manage directly. A common pattern is for the package to include default configuration files along with all the content, and for you to use Puppet File resources to manage just those files for each node after the package is installed (by Puppet). Since in this case you are in control of the RPM, which is not always the case, you have the alternative of omitting from the RPM any files you want to manage directly via Puppet. Bottom line: isolate the node-specific bits in a small number of small files, and manage those files with File resources. Manage the bulk content that is common to all nodes via one of the other mechanisms. ---- If the various web sites you want to manage were substantially different from each other, on the other hand, then yes, it would make sense to package each in its own RPM. John -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ed222eb4-b5c3-4b6c-84ff-c547fb87b058%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
