Hi there,
I have some situations where I need to manage a single file and possibly even single value in that file.
ie. limits.conf.
You have the one config: /etc/security/limits.conf
And even one value, specific user, specific config item, specific value.
That needs to be modified (err controlled) by more than a single module.
Okay, lets say a user (foo), is running a tomcat server, which runs java apps.
Now, in puppet, I am controlling both the tomcat server itself AND all the apps under it.
Now, initially that tomcat server only runs one application, so we set the limit value to 10 as specified by a param in the application class.
Then, I add another app to the server, which now means the value needs to be 17 (plus another 7 for this app)...
So, this is the part I can;t get my head around, how the hell do I get the sum from both classes and then write that value to the template file?
Any help?
Aaron.
↧