Re: [Puppet Users] Composed custom facts, request for opinions and ideas (somewhat related to setting up puppet)

2010-06-17 Thread David Schmitt
On 6/16/2010 8:27 PM, Silviu Paragina wrote: This is somewhat related to an older thread. The topic was how to install some perquisite packages for puppet, like augeas, lsb-release, cron to name just a few. Puppet is required to reinstall this packages if they are accidentally uninstalled. Becaus

Re: [Puppet Users] Re: "total control" for certain resources

2010-06-17 Thread David Schmitt
On 6/17/2010 8:15 AM, Mathijs wrote: Thanks for all answers, I indeed want unmanaged resources to remove themselves (in some cases, I know it's somewhat dangerous). So the ensure => absent (in the package example) is not what I'm after, because that only works on managed resources. Packages tha

Re: [Puppet Users] "total control" for certain resources

2010-06-17 Thread R.I.Pienaar
- "Daniel Pittman" wrote: > >> > >> # The puppet version of rm -rf /* > >> Package { ensure => absent, noop => true } > >> User { ensure => absent, noop => true } > >> > >> # These override the defaults > >> package { "foo": ensure => present } > > > > How does this mee

Re: [Puppet Users] "total control" for certain resources

2010-06-17 Thread Daniel Pittman
"R.I.Pienaar" writes: > - "Daniel Pittman" wrote: > >> >> >> >> # The puppet version of rm -rf /* >> >> Package { ensure => absent, noop => true } >> >> User { ensure => absent, noop => true } >> >> >> >> # These override the defaults >> >> package { "foo": ensure => pre

Re: [Puppet Users] "total control" for certain resources

2010-06-17 Thread R.I.Pienaar
- "Daniel Pittman" wrote: > "R.I.Pienaar" writes: > > - "Daniel Pittman" wrote: > > > >> >> > >> >> # The puppet version of rm -rf /* > >> >> Package { ensure => absent, noop => true } > >> >> User { ensure => absent, noop => true } > >> >> > >> >> # These override th

[Puppet Users] Could not find class, code-blind

2010-06-17 Thread Tore
I'm troubled with a node-definition not able to resolve a class: Could not find class rhnsd::common at /etc/puppet/manifests/nodes.pp: 8 on node X Content of manifest/site.pp: import "nodes.pp" [...] The layout of modules/rhnsd/ is: |-- files | `-- up2date-rhn |-- manifests | |-- client.pp |

Re: [Puppet Users] Composed custom facts, request for opinions and ideas (somewhat related to setting up puppet)

2010-06-17 Thread Silviu Paragina
On 17.06.2010 10:53, David Schmitt wrote: On 6/16/2010 8:27 PM, Silviu Paragina wrote: This is somewhat related to an older thread. The topic was how to install some perquisite packages for puppet, like augeas, lsb-release, cron to name just a few. Puppet is required to reinstall this packages i

Re: [Puppet Users] Could not find class, code-blind

2010-06-17 Thread Silviu Paragina
On 17.06.2010 13:31, Tore wrote: I'm troubled with a node-definition not able to resolve a class: Could not find class rhnsd::common at /etc/puppet/manifests/nodes.pp: 8 on node X Content of manifest/site.pp: import "nodes.pp" [...] The layout of modules/rhnsd/ is: |-- files | `-- up2date-r

[Puppet Users] Re: Could not find class, code-blind

2010-06-17 Thread Tore
Hm, I thought that puppet would search for filname X in module Y manifestdir when you included a class like include "Y::X", guess I'm wrong there. On the other hand, adding the import statement in the beginning of rhnsd/manifests/init.pp yeilds the same error. On 17 Jun, 13:10, Silviu Paragina w

Re: [Puppet Users] Composed custom facts, request for opinions and ideas (somewhat related to setting up puppet)

2010-06-17 Thread David Schmitt
On 6/17/2010 1:02 PM, Silviu Paragina wrote: On 17.06.2010 10:53, David Schmitt wrote: On 6/16/2010 8:27 PM, Silviu Paragina wrote: This is somewhat related to an older thread. The topic was how to install some perquisite packages for puppet, like augeas, lsb-release, cron to name just a few. P

Re: [Puppet Users] augeas and sendmail aliases

2010-06-17 Thread Rob McBroom
On Jun 16, 2010, at 5:42 PM, Silviu Paragina wrote: >> set /files/etc/aliases/*[name = ‘ftp’]/name ftp >> > I've actually tried this in augtool and puppet and it didn't work. In puppet > it fails silently and on first sight you would believe everything went ok. In > augtool it simply fails.

[Puppet Users] Foreman / external_node.rb

2010-06-17 Thread CraftyTech
Hello All, I'm trying to start using external nodes under foreman, and I'm running into some issues. I have the entries in puppet.conf: [main] external_nodes = /etc/puppet/external_node.rb node_terminus = exec The enternal_node.rb script is the one that came with foreman:

Re: [Puppet Users] Foreman / external_node.rb

2010-06-17 Thread Ohad Levy
Just to be on the safe side, does it work if you use it with http (instead of https)? additionally, you should be using it with fqdn as the parameter (e.g. /etc/puppet/external_node.rb fqdn ) Ohad On Thu, Jun 17, 2010 at 10:48 PM, CraftyTech wrote: > Hello All, > > I'm trying to start using

Re: [Puppet Users] Automated installation of Puppetmaster and Dashboard

2010-06-17 Thread Bryan Ross
> We're going to set up Puppetmaster and Dashboard, and would like to > automate the installation process. Have anyone made scripts or puppet > manifests for installing these and would like to share? I'm not aware of any specific examples, but do a search at http://github.com/ if you haven't alrea

Re: [Puppet Users] augeas and sendmail aliases

2010-06-17 Thread Christopher Johnston
I was never able to get this working properly for /etc/services, there is support in augeas now to do the matches properly but I think the ruby bindings are not up to date with the new changes which ended up making puppet fail. On Thu, Jun 17, 2010 at 9:06 AM, Rob McBroom wrote: > On Jun 16, 20

Re: [Puppet Users] Re: Separate install for just client code?

2010-06-17 Thread Todd Zullinger
Forrie wrote: > What is the disadvantage of using the puppet gem vs. installing from > source (install.rb)? Well, I wouldn't recommend that either. I much prefer a proper packaging system like dpkg or rpm. But that's just my opinion. :) -- ToddOpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.po

[Puppet Users] Re: Foreman / external_node.rb

2010-06-17 Thread CraftyTech
Hello Ohad, I started it with webrick on port 80, and it appears to work. This what I get when I run the command /etc/puppet/external_node.rb host: --- parameters: puppetmaster: puppet classes: [] environment: "" Does that mean it works on webrick but not on apache/passenger:443? On Jun

Re: [Puppet Users] Re: Separate install for just client code?

2010-06-17 Thread James Turnbull
Todd Zullinger wrote: > Forrie wrote: >> What is the disadvantage of using the puppet gem vs. installing from >> source (install.rb)? > > Well, I wouldn't recommend that either. I much prefer a proper > packaging system like dpkg or rpm. But that's just my opinion. :) > +1. Regards James Tur

[Puppet Users] Augeas problem changing values in postfix/main.cf

2010-06-17 Thread PBWebGuy
I have been working with the Augeas resource command and having a difficult time. At this point I am perplexed as to why the following code doesn't work. I have the following rule for updating the main.cf file to change an existing value and to add a new element with comments: augeas { "

Re: [Puppet Users] Could not find class, code-blind

2010-06-17 Thread Gabriel Filion
On 2010-06-17 06:31, Tore wrote: > I'm troubled with a node-definition not able to resolve a class: > Could not find class rhnsd::common at /etc/puppet/manifests/nodes.pp: > 8 on node X > > Content of manifest/site.pp: > import "nodes.pp" > [...] > > The layout of modules/rhnsd/ is: > |-- files

Re: [Puppet Users] manage desktops

2010-06-17 Thread Daniel De Marco
* Ohad Levy [06/15/2010 22:38]: >The ip address does not really matter, if you want to force your own >certificate names, you can use the certname option instead on relaying on >facter to resolve the fqdn fact for you. ah... that's even better. I didn't notice that option on the manua

Re: [Puppet Users] Augeas problem changing values in postfix/main.cf

2010-06-17 Thread John Martin
I have done some further experimenting and found things even more perplexing. The rule is now just adding the new values that I need. The rule is: augeas { "dkim-postfix-settings": require => Package["postfix"], context => "/files/etc/postfix/main.cf",

Re: [Puppet Users] Re: Could not find class, code-blind

2010-06-17 Thread Silviu Paragina
Just to be sure we're on the same page. It doesn't work like this? init.pp:: import "*" class rhnsd { } Is the module path in puppet set to your module path? Other than this I can't spot any other errors. Also make sure you have restarted puppetmasterd, in many cases when developing puppet code

[Puppet Users] Re: Automated installation of Puppetmaster and Dashboard

2010-06-17 Thread PBWebGuy
Hi Bryan, I was just looking over your puppet-puppet recipe and I was curious on how you are managing your different target environments. I see that you have defined different trees for each environment: [development] manifest = /etc/puppet/environments/development/site.pp modulepath = /e

[Puppet Users] Failed to retrieve current state of resource error on one module

2010-06-17 Thread Aaron Blew
I'm getting the following errors in the module I'm writing to maintain my snmpd configurations (this is a mis of verbose and normal errors): err: //snmp/File[/etc/sysconfig/snmpd.options]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet:///snmp/sn

Re: [Puppet Users] Re: Automated installation of Puppetmaster and Dashboard

2010-06-17 Thread Nigel Kersten
On Thu, Jun 17, 2010 at 4:23 PM, PBWebGuy wrote: > Hi Bryan, > > I was just looking over your puppet-puppet recipe and I was curious on > how you are managing your different target environments.  I see that > you have defined different trees for each environment: > [development] >    manifest = /e

Re: [Puppet Users] Re: Foreman / external_node.rb

2010-06-17 Thread Mohamed Lrhazi
I think I have the same problem the scripts bundled with foreman, those that talk to the web interface, do not seem to support https... I set up an apache virtual on localhost with ssl disabled and configured these scripts to speak to that. that seems to do it. Can someone confirm this limitat

[Puppet Users] Re: Foreman / external_node.rb

2010-06-17 Thread CraftyTech
Well I got foreman.rb to work with https. Look at this thread: http://groups.google.com/group/puppet-users/browse_thread/thread/1d2b5814a73300d/5907d3697c63853c?lnk=gst&q=foreman.rb#5907d3697c63853c I'd like to know what the deal is with node.rb I hope I'm doing something wrong, and that th

Re: [Puppet Users] Re: Foreman / external_node.rb

2010-06-17 Thread Ohad Levy
that is not a limitation, and usually actually works :) can you check that you get the right output with curl/wget - e.g.? curl -k https://foreman/node/fqdn?format=yml (add -x "" to disable curl using a proxy) Ohad On Fri, Jun 18, 2010 at 9:28 AM, CraftyTech wrote: > Well I got foreman.rb t

[Puppet Users] User Password

2010-06-17 Thread Marek Dohojda
Hello Is there any way to have a user with two different passwords. I have a user that is present in our prod and non prod environments. However the password for non-prod is different than prod. Anyway I can arrange that in puppet? -- You received this message because you are subscribed to

[Puppet Users] problems with puppetmaster using intermediate CA cert

2010-06-17 Thread Geoff Crompton
Hi, I'm trying to develop a manifest to setup a new puppet master. To solve the SSL certificates I've created a root CA outside of puppet, and have generated an intermediate CA for the new puppet master to use. I've also configured my puppetmaster daemon to use it's own ssl directory. So the

Re: [Puppet Users] problems with puppetmaster using intermediate CA cert

2010-06-17 Thread Ohad Levy
On Fri, Jun 18, 2010 at 1:07 PM, Geoff Crompton < geo...@trinity.unimelb.edu.au> wrote: > > Anyone know how I can arrange for the puppet client to successfully trust > the masters certificate? > you need to add the top level ca pub key to it to /var/lib/puppet/ssl/certs/ca.pem you might still fai

Re: [Puppet Users] Augeas problem changing values in postfix/main.cf

2010-06-17 Thread Patrick Mohr
On Jun 17, 2010, at 11:04 AM, John Martin wrote: > I have done some further experimenting and found things even more perplexing. > The rule is now just adding the new values that I need. The rule is: > > augeas { "dkim-postfix-settings": > require => Package["postfix"]