[Puppet Users] How to remove a node from Puppet CA, Puppet DB from a remote host

2013-04-18 Thread Rajul Vora
I need to programmatically remove cert from Puppet master and remove all information in Puppet DB for a node from another machine which is neither Puppet Master or PuppetDB. It does have a Puppet signed cert since it is also provisioned using Puppet. I can't find any decent documentation on

[Puppet Users] Puppet fails but succeeds on the 2nd attempt

2012-12-01 Thread Rajul Vora
I have installed two modules under $confdir/modules: erwbgy's system module (which depends on augeasproviders) and augeasproviders I have a hiera entry: system::sshd: Banner: value: /etc/issue.net When I do the first puppet agent --test run, it always fails with following error:

[Puppet Users] HOME is not set when running post-installation script on Ubuntu

2012-11-18 Thread Rajul Vora
Trying to install mcollective with RabbitMQ. The following package install produces the errors listed below in Bold. I know exec resource unsets HOME and USER now starting with 3.0 and the workaround for that is to set environment = 'HOME=/root' for the exec resource. It looks like it is the

[Puppet Users] Re: Dynamic Collection?

2012-11-16 Thread Rajul Vora
On Friday, November 16, 2012 6:38:13 AM UTC-8, jcbollinger wrote: On Thursday, November 15, 2012 6:01:24 PM UTC-6, Rajul Vora wrote: I want to do something like this: class foo ( $collection ) { User | $collection | } where $collection would be a string like group == admin or group

Re: [Puppet Users] Getting Started with Hiera

2012-11-16 Thread Rajul Vora
http://docs.puppetlabs.com/hiera/1/index.html is the only document I could find and some of the pages are empty or light on content. I also did git clone of the hiera project from github to read some of the docs / code / examples there. Also, the Puppet function reference has no documentation

[Puppet Users] Re: Sending debug messages from manifests

2012-11-16 Thread Rajul Vora
Aren't all of these functions already available? http://docs.puppetlabs.com/references/latest/function.html Rajul On Friday, November 16, 2012 9:22:57 AM UTC-8, Abhijeet Rastogi wrote: Sorry, the code for the custom function is: Puppet::Parser::Functions::newfunction(:debug_msg, :type =

[Puppet Users] Re: Dynamic Collection?

2012-11-16 Thread Rajul Vora
UTC-8, jcbollinger wrote: On Friday, November 16, 2012 11:07:18 AM UTC-6, Rajul Vora wrote: Thanks for the effort in explaining these alternatives. I apologize I didn't do justice to explaining the bigger picture in the first place. So here it goes: Goal: Use hiera to provision

[Puppet Users] Can I create virtual resources with create_resources function

2012-11-15 Thread Rajul Vora
I am trying to add ability to add virtual users to the git://github.com/erwbgy/puppet-system.git module as I really want the ability to use virtual users and then combine that with User | group == 'x' and group == 'y' | way of realizing the users. This is much more flexible than what I can do

Re: [Puppet Users] Can I create virtual resources with create_resources function

2012-11-15 Thread Rajul Vora
Excellent, thanks. Rajul On Thursday, November 15, 2012 2:54:08 PM UTC-8, Nan Liu wrote: On Thu, Nov 15, 2012 at 2:04 PM, Rajul Vora raju...@gmail.comjavascript: wrote: I am trying to add ability to add virtual users to the git:// github.com/erwbgy/puppet-system.git module as I really

[Puppet Users] Dynamic Collection?

2012-11-15 Thread Rajul Vora
I want to do something like this: class foo ( $collection ) { User | $collection | } where $collection would be a string like group == admin or group == powerusers Doesn't work. Is there an alternative way to do this? Syntax error at '|'; expected '}' -- You received this message