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

2011-04-21 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[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 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[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 above. so is it possible to store
val1, val2 values in a database and do our job only calling a line
like this:

for every $p1 and $p2 in valueTable in mypuppetDB:
   apache:addvhost {abc: param1=$p1, param2=$p2}

Above code is pseudo.

thanks in advance.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[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 configuration file that does not exist in the template, does
puppet allow that?

In other words, puppet forces a configuration file to a bunch of nodes
but a node in this bunch wants to add an extra value by itself, it
wont take that value from the server.

thanks so much

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[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-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.