[Puppet Users] packages and Solaris

2011-12-28 Thread Peter Berghold
Hi folks, I'm about to propose to my current company that we use puppet to manage releases of home grown software. The environment is a mix of Solaris 8/9/10 and RHEL 56. I've got a handle on how to create recipes to release software into the RHEL environment. The unknown for me is how to

[Puppet Users] LDAP Authentication and puppet?

2011-12-12 Thread Peter Berghold
Having a brain storm this morning I had a thought. This can be dangerous at times. I have an infrastructure where I am moving user authentication to be LDAP based. Further I am working out how to create host groups in LDAP such that I can group which user can log into what hosts. For instance I

[Puppet Users] Another case of auto loader issues...

2011-12-01 Thread Peter Berghold
Here is a module layout: tomcat |-- facter |-- files | `-- cleanTomcatLogs.pl |-- lib | `-- puppet | |-- parser | |-- provider | `-- type |-- manifests | |-- classes | |-- defines | |-- init.pp | |-- scripts | | `-- cleanlogs.pp | `-- scripts.pp `-- templates

SOLVED: [Puppet Users] Another case of auto loader issues...

2011-12-01 Thread Peter Berghold
Almost as soon as I hit send I thought of something. I added include scripts/* to scripts.pp and it worked like a charm. -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

Re: SOLVED: [Puppet Users] Another case of auto loader issues...

2011-12-01 Thread Peter Berghold
oops... meant import scripts/*.pp not include... On Thu, Dec 1, 2011 at 10:34 AM, Peter Berghold salty.cowd...@gmail.comwrote: Almost as soon as I hit send I thought of something. I added include scripts/* to scripts.pp and it worked like a charm. -- Peter L. Berghold Owner

[Puppet Users] Is there a way...

2011-12-01 Thread Peter Berghold
... to invoke a template from multiple modules? Here is what I mean: I have a module called postfix which handles the installation and base configuration of the postfix MTA. I have another module called spamassassin which deals with the download and installation of the Mail::SpamAssassin Perl

Re: [Puppet Users] Which package repository for puppet installation (rh/centos) ?

2011-11-29 Thread Peter Berghold
On Tue, Nov 29, 2011 at 6:43 AM, seamie mail...@gmail.com wrote: But if I use EPEL does it invoke many changes in standard RH/Centos packages related to packages dependencies ? I am considering EPEL or yum.puppetlabs.com repositories (what is a difference between them ?). Hi, I've adopted

[Puppet Users] cannot find a module in plain sight...

2011-11-25 Thread Peter Berghold
I have this module with the following structure. adminscripts ├── facter ├── files │ └── getVPSNodes.pl ├── lib │ └── puppet │ ├── parser │ ├── provider │ └── type ├── manifests │ ├── classes │ ├── defines │ ├── getvpsnodes.pp │ └── init.pp └── templates The file

Re: [Puppet Users] cannot find a module in plain sight...

2011-11-25 Thread Peter Berghold
On Fri, Nov 25, 2011 at 3:32 PM, Nigel Kersten ni...@puppetlabs.com wrote: As an aside, this was an awesome way to post a module autoload problem Peter, showing the filesystem layout and the manifest content. the tree command is a beautiful thing! :-D Do you perhaps have another

Re: [Puppet Users] cannot find a module in plain sight...

2011-11-25 Thread Peter Berghold
. Cheers, Den On 26/11/2011, at 6:59, Peter Berghold salty.cowd...@gmail.com wrote: I have this module with the following structure. adminscripts ├── facter ├── files │ └── getVPSNodes.pl ├── lib │ └── puppet │ ├── parser │ ├── provider │ └── type ├── manifests

Re: [Puppet Users] cannot find a module in plain sight...

2011-11-25 Thread Peter Berghold
/getVPSNodes.pl, I can't check the class myself but do the .pp files parse correctly? Use the --parseonly or the validate command to check. It maybe failing to parse one of the files. Cheers, Den On 26/11/2011, at 6:59, Peter Berghold salty.cowd...@gmail.com wrote: I have this module

Re: [Puppet Users] cannot find a module in plain sight...

2011-11-25 Thread Peter Berghold
I take that back. Seems I was running the wrong master. Started running the proper master and the problem is back: Here is what I'm seeing in the logged output: debug: importing '/etc/puppet/modules/adminscripts/manifests/init.pp' in environment production debug: importing

Re: [Puppet Users] cannot find a module in plain sight...

2011-11-25 Thread Peter Berghold
class foo { ... } - modulepath/foo/manifests/init.pp class foo::bar { ... } - modulepath/foo/manifests/bar.pp and then you should be able to remove all the import *.pp statements. There's been a bit of grief expressed over this bug, so I'd like to reiterate that this wasn't a deliberate

Re: [Puppet Users] Need a second set of eyes... cannot find a class..

2011-11-14 Thread Peter Berghold
On Mon, Nov 14, 2011 at 12:23 AM, Aaron Grewell aaron.grew...@gmail.comwrote: Try removing the hyphen from the class name. If that fixes it then you've hit this: http://projects.puppetlabs.com/issues/5268 It would appear that was the case. Surprised that I didn't run into this before. I

[Puppet Users] What the?? (gem install puppet not working) sorta... read on...

2011-10-29 Thread Peter Berghold
Hi folks, In the past when I've wanted to install puppet to a system Ive just done a gem install puppet facter' and it has workd. After runing the gem install I tried running puppetd and was told not found. OK, so I started to dig and discovered that puppetd was indeed installed on the system,

[Puppet Users] Templating question:

2011-09-24 Thread Peter Berghold
I thought I read in some documentation somewhere that for array variables you had a means of setting up a conditional for last element. For instance class foo { $hosts=['hosta','hostb','hostc'] file { some-config : path=/s/ome/path/2[image: Call phone]/

Re: [Puppet Users] Re: Templating question:

2011-09-24 Thread Peter Berghold
. :) On Sep 24, 2:33 pm, Peter Berghold salty.cowd...@gmail.com wrote: I thought I read in some docu... -- 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

[Puppet Users] Root User

2011-09-23 Thread Peter Berghold
Hi folks, I thought I'd get clever tonight and add to my base class for node configuation the statement: user { root : comment = Root User on ${hostname} } My hope was that I would change the GECOS field for the root user so that emails from root on the machines would identify which root they

[Puppet Users] DNS Zone serial numbers

2011-09-09 Thread Peter Berghold
Hi folks, Trying to create a function backed by some templates that will create DNS zone files. The function is in the form of function forward_zone ($dns_zone = localdomain, $hosts = { { host=localhost, ip_addr=127.0.0.1 } }}) { logic here } and the template will include the

[Puppet Users] Package provider for gentoo?

2011-09-06 Thread Peter Berghold
Once again I'm experimenting with the Gentoo Linux distro and trying to get puppet to work with it. I'm starting to think it is a lost cause. In my puppet setup I have a list of packages that are built on any system that I support regardless of the systems final use. These include tmpwatch,

Re: [Puppet Users] Package provider for gentoo?

2011-09-06 Thread Peter Berghold
and it is not generating any spew for me to look at. I'll know in a while if it worked. On Tue, Sep 6, 2011 at 3:43 PM, James Turnbull ja...@puppetlabs.com wrote: Peter Berghold wrote: Now I get: err: Could not prefetch package provider 'portage': Command update_eix is missing I'm running puppet

[Puppet Users] gentoo linux and puppet

2011-06-22 Thread Peter Berghold
Hi folks, I am building a server using Gentoo Linux and was about to start automating the package loads using puppet. First things first I loaded the latest and greatest facter and puppet from gems. Got the new SSL certificate loaded and ran puppetd --test and expected to see a base manifest

Re: [Puppet Users] Parameterized class syntax...

2011-02-17 Thread Peter Berghold
On Thu, Feb 17, 2011 at 4:22 AM, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: What version is your puppetmaster? the latest stable version. -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] Parameterized class syntax...

2011-02-13 Thread Peter Berghold
Tried putting single quotes around tthe title as follows: class { 'openldap::config' : prefix = dc=sharkrivertech,dc=com, rootpw = 'xx' } When puppet is run I get: err: Could not retrieve catalog from remote server: Error 400 on SERVER:

Re: [Puppet Users] Debian packaging provider

2011-02-12 Thread Peter Berghold
On Sat, Feb 12, 2011 at 5:00 PM, Stu Teasdale s...@drogna.org.uk wrote: You need to install the gpg key used to sign the archive. The way I usually solve this is to manage my repositories in puppet, keep the public key in my manifests and get puppet to use apt-key to add it to the apt

[Puppet Users] Parameterized class syntax...

2011-02-12 Thread Peter Berghold
Am I correct in making the observation that this: class openldap::config ($prefix =dc=no,dc=domain,$rootpw=secret) { case $operatingsytem { Debian,Ubuntu: { class { openldap::config::debian : prefix = $prefix, rootpw =

[Puppet Users] Wierd debian package issue...

2011-01-28 Thread Peter Berghold
This one has me scratching my head. Simply enough I have the following in one of my manifests: package { postgresq1: ensure = latest } I checked with the Debian site to ensure that I had the correct package name, puppetd did its thing and lo and behold I get the following error message: err:

Re: [Puppet Users] Wierd debian package issue...

2011-01-28 Thread Peter Berghold
Hanging head in shame... I've been looking at that line off and on for the last two weeks and didn't see the one instead of el Gotta change the font in emacs I guess... Peter L. Berghold Owner, Shark River Technical Solutions LLC -- You received this message because you are subscribed to

[Puppet Users] node default in puppet 2.6?

2011-01-22 Thread Peter Berghold
When I was using an earlier version of puppet, in my site.pp I used to include a file called nodes.pp which only contained one entry, and that was node default { base options go here.. } Does that still work in 2.6? -- Peter L. Berghold Owner, Shark River Technical

[Puppet Users] another 2.6 question... stages

2011-01-22 Thread Peter Berghold
Also in 2.6 I have started using stages in my setups In my site.pp file I have something that looks like this: stage { preamble: before = Stage[main] } stage { postamble: require = Stage[main] } class { foo : stage = preamble ; bar: stage = postable; } Is it safe to assume

[Puppet Users] What the??? Failing dependancies and not sure why...

2011-01-21 Thread Peter Berghold
Observe the following code sniget: user { nagios : comment = Nagios Host Monitoring Service, shell = /bin/bash, home = /home/nagios, ensure = present } file { nagios-homedir : path = /home/nagios, owner

Re: [Puppet Users] What the??? Failing dependancies and not sure why...

2011-01-21 Thread Peter Berghold
January 2011 22:35, Peter Berghold salty.cowd...@gmail.com wrote: Observe the following code sniget: [...] file { nagios-ssh-key : path = /home/nagios/.ssh/authorized_keys, owner = nagios, group = nagios, mode = 0600, source = puppet

Re: [Puppet Users] What the??? Failing dependancies and not sure why...

2011-01-21 Thread Peter Berghold
OK... I had the relationship diagram backwards... (slapping self) Instead of key - directory - home I should have had home-directory-key Re-reading helps sometimes. -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- You received this message because you are subscribed

[Puppet Users] puppetd misbehaving on a debian based box.

2010-11-01 Thread Peter Berghold
Hi folks, Recently I put Linux Mint on my box at home and I am trying to manage it via puppet. This went well a few times and now I'm getting a very cryptic message that does not make sense to me. info: Retrieving plugin err: /File[/var/lib/puppet/lib]: Failed to generate additional resources

Re: [Puppet Users] puppetd misbehaving on a debian based box.

2010-11-01 Thread Peter Berghold
On Mon, Nov 1, 2010 at 7:56 PM, Nigel Kersten ni...@puppetlabs.com wrote: Were you distributing plugins in the lib/ sub-directory of modules and you've since deleted them from the master? I should wish it was that easy! Nope... I wasn't distributing plugins... from anywhere... --

Re: [Puppet Users] puppetd misbehaving on a debian based box.

2010-11-01 Thread Peter Berghold
Deleted and re-installed puppetd and things are working again... that was wierd. Still not sure what happened. -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this

[Puppet Users] templating woes....

2010-10-14 Thread Peter Berghold
% nagios_conf_dirs.each |dir| -% cfg_dir=%= dir % % end -% Anybody have any idea why that would cause a syntax error in a template? According to debug mode on puppetmasterd it is err: compile error (erb):18: syntax error _erbout.concat cfg_dir; _erbout.concat(( dir ).to_s); _erbout.concat

Re: [Puppet Users] Design, syntax question for passing values from node.pp

2010-07-23 Thread Peter Berghold
First question that comes to mind: is there a fact for a given node that determines what file name to use? On Jul 23, 2010 3:55 PM, bmort propertywholesa...@gmail.com wrote: Is it possible to define variable at this level. I need to pass the monit config file name ( sometimes its monitrc

[Puppet Users] firewall type

2010-06-05 Thread Peter Berghold
I am in the process of using some of Example 42's modules and ran into a small snag. Quite a few of them call out for a firewall type which does not exist for puppet out of the box (unless i'm missing something.) It's not immediately apparent to me as to where to get this type, which I assume is

Re: [Puppet Users] Run puppetd on the same as puppetmaster

2010-05-20 Thread Peter Berghold
I hope you are not literally using puppet.example.com On May 19, 2010 9:13 PM, mathie adsp...@gmail.com wrote: Hello, I would like to manage configs for the server that is also the puppetmaster. I declare a simple node (just write out a file) and ran this: puppetd --test --graph -w 10 --server

<    1   2   3