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
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
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
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
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
... 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
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
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
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
.
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
/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
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
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
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
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,
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]/
. :)
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
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
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
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,
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
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
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
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:
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
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 =
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:
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
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
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
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
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
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
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
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...
--
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
% 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
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
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
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
201 - 240 of 240 matches
Mail list logo