[Puppet Users] Re: does puppet allow to a client specify a value in a configuration file?

2011-04-20 Thread rowan holmes
Hi Denmat and Felix Thanks both of you very much for your help -- 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 puppet-users+unsub

[Puppet Users] Re: is it possible to take definition parameters from a database?

2011-04-20 Thread rowan holmes
> I don't know about doing it via puppet - I suspect not without custom > Functions and/or outside help. > > I assume you know about this: > > http://httpd.apache.org/docs/2.0/vhosts/mass.html > > and deem it not suitable. Thanks Russell, I know about that but I asked in general -- You receive

[Puppet Users] Re: is it possible to take definition parameters from a database?

2011-04-19 Thread rowan holmes
> for every $p1 and $p2 in valueTable in mypuppetDB: >    apache:addvhost {"abc$p1$p2": param1=>$p1, param2=>$p2} I corrected the title as abc$p1$p2 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us

[Puppet Users] does puppet allow to a client specify a value in a configuration file?

2011-04-19 Thread rowan holmes
hi everybody, In the server side we define a template for a configuration file. Our client pulls configuration file from the server without knowing any template is used or not, it just takes the catalog and puts the changes to the file. However, if a client wants to add an extra value to its confi

[Puppet Users] is it possible to take definition parameters from a database?

2011-04-19 Thread rowan holmes
hello everybody, I really wonder that can we use a database for our definition calls. assume that we have a definition which is used for adding virtual hosts to apache configuration file like below: apache:addvhost {"abc": param1=>value1, param2=>value2} There may be thousands of lines like abov