Hi John, Thank you for your answer.
The files I am speaking about are the Linux Container files such as the /lib64, /usr and /var directories. Therefore, the choice of making RPMs as I have to copy all those files for each website using Puppet. Thank you, Kind regards, Sergiu On Monday, 31 August 2015 14:38:01 UTC+1, jcbollinger wrote: > > > > 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 > > -- This message and its attachments are private and confidential. If you have received this message in error, please notify the sender and remove it and its attachments from your system. The University of Westminster is a charity and a company limited by guarantee. Registration number: 977818 England. Registered Office: 309 Regent Street, London W1B 2UW. -- 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/71b4158c-1d95-4cad-b9d0-e92dd3691e3f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
