0
votes
1answer
33 views

Puppet error on already installed package on centos

I am using puppet on CentOS for the first time. I have the following in one of my .pp files: package {"openjdk-6-jdk": ensure => installed, } Which generates the following error when ...
0
votes
1answer
34 views

Puppet-Labs Apache Module Set Operating System type

I'm new to Puppet and having some trouble with the Puppet-Labs Apache Module http://forge.puppetlabs.com/puppetlabs/apache. I'm using it in conjunction with Vagrant as a serverless setup (if that ...
3
votes
3answers
181 views

Best way to manage third-party / custom-built software with Puppet?

We use versions of Ruby, Collectd, Ant, Java (and more) that are not available in CentOS or EPEL repos. Up until now, our strategy for installing these has been kind of a hack: write a ...
3
votes
1answer
55 views

Puppet: Accessing var/val of more complex hieradata yaml files

I've been Googling around and haven't seen any examples of a more complex hieradata yaml config. Consider this: # /path/to/hieradata/vhost/config.yaml vhost_config_melikedev: port: 53002 ...
2
votes
1answer
69 views

Puppet - groupid (gid) for mysql group differs between prod and dev

I just puppetized mysql and ran into a weird issue where the gid for the mysql group on dev differs from production. Apparently on production I have a user that doesn't exist on the dev environment ...
1
vote
1answer
151 views

Puppet - Call custom function (which contains case/when) from manifest

I am working on puppetizing my httpd and nginx vhost confs. Right now I have 5 servers which each have their own port and are run on server1, while nginx is running on server2. Obviously I need to ...
36
votes
2answers
2k views

Why is it so difficult to upgrade between major versions of Red Hat and CentOS?

"Can we upgrade our existing production EL5 servers to EL6?" A simple-sounding request from two customers with completely different environments prompted my usual best-practices answer of "yes, but ...
1
vote
2answers
218 views

Minimizing Disk Space for CentOS & Vagrant VM Install

I'm working on building a Base VM for use with a Vagrant, and/or Puppet. I've done the minimal CentOS 6.3 install 32 bit. It's still a size of approx 800 mb. From what I've found out there people ...
0
votes
1answer
91 views

Puppet Standalone Configuration

Is it possible, when running Puppet as standalone to keep it from attempting to contact the default server? It's not the end of the world but every two minutes it's adding a line to my ...
8
votes
4answers
702 views

Puppetize everything or not?

Notice: there is a lot of theoretical questions. Recently I'm reading about Puppet (and similar systems), which - as I believe - can make my work easier, a lot. But I try - and unfortunately can't - ...
0
votes
1answer
397 views

Puppet yum repo - Pull down 2.7.x vs 3.0.x

So a few weeks ago I started on the path to using puppet to automate all the configs/services. At the time I was using the EPEL repo, which installed version 2.6.x. After some reading I was trying to ...
1
vote
1answer
263 views

CentOS - Configuring Puppet to play nice with SELinux

I am running into an issue every time I attempt to start the puppetmasterd service, for which I receive the following error message: root@service1 ~ # -> /etc/init.d/puppetmaster start Starting ...
2
votes
1answer
317 views

Why does my namespace and class name conflict?

I have a puppet module installed that is called ntp. A node do I define by node testip { include myconfig::ntpp } and in /etc/puppet/modules/myconfig/manifests/init.pp have I class myconfig::ntpp ...
2
votes
1answer
230 views

Why isn't the variable available?

Background I would like to apply this idea of having a common class that includes all the specific info about my setup. So I have created /etc/puppet/modules/common/manifests/init.pp with class ...
0
votes
2answers
865 views

Adding an existing user to a group with puppet

Is it possible to add an existing user to a group with puppet 2.7.18? We have two modules, each one defines one class : module "user" creates all users, including user foo and user bar. module ...
6
votes
3answers
725 views

Use puppet to make changes to ip route and sysctl

I have two changes to ip route & sysctl that disable tcp slow start. Here’s how I do it ip route show Make a note of the line starting with default. Pick up the IP from the default line and ...
5
votes
4answers
809 views

How to “yum update” / “aptitude safe-upgrade” many hosts?

I have two books about Puppet and none of them mentions how to push yum update or aptitude safe-upgrade. So I am getting the impression that Puppet can't, which I find hard to believe. Question How ...
0
votes
1answer
534 views

How to install puppet devel version from yum?

In /etc/yum.repos.d/puppet.repo have I put [puppetlabs] name=Puppet Labs Packages baseurl=http://yum.puppetlabs.com/el/$releasever/devel/$basearch/ enabled=1 gpgcheck=1 ...
6
votes
1answer
618 views

What directory and file structure to use for Puppet?

The Puppet tutorials I have read so far haven't mentioned how to structure the puppet .pp. Can anyone share some experiences of what works and scales well?
0
votes
0answers
67 views

grabbing/parsing iSCSI iface information

I'm writing a puppet provider for iSCSI and want to grab information about the ifaces (in my case HBAs) we have, is there a better way than doing this: iscsiadm -m iface -I ...
0
votes
2answers
1k views

Puppet: exec onlyif value is not equal

I have a script that really only needs to be run one time on a server, i.e. at deployment time, but figured it would be best to have Puppet manage it. The script remaps several legacy user id's that ...
1
vote
2answers
822 views

Puppet Agent fails sporadically, with either timeout or “Could not find class” error

I have puppet master running on a Xen dom0, and 3 domUs syncing to it via an hourly crontab puppet agent --test. About 80% of the time, the puppet agent --test completes successfully: info: ...
1
vote
1answer
427 views

Unable to start puppetmaster on CentOS 6

I installed puppet 2.6.12 on CentOS 6. When I try to start the puppetmaster service using the command service puppetmaster start I get the error: Starting puppetmaster: ...
2
votes
1answer
253 views

Puppet conditional include based on selinux fact not working

I have a class in a module: # File: modules/selinux/tools.pp class selinux::tools { $packages = ['policycoreutils-python',] package { $packages: ensure => ...
0
votes
1answer
812 views

puppet dashboard fails to start

So here's the situation. I'm running Puppet on CentOS 5.7 64-bit, and on the puppet master I also have puppet-dashboard, however when I try to start it, I see the following: [root@puptest-master ...
1
vote
3answers
812 views

puppet exclude module

i have created a base class for all the servers in puppet, class centos_base { include chkconfig include hosts include inittab include nscd include nsswitch ...
0
votes
3answers
2k views

puppet execute remote script on all servers

how can i execute a python script on all puppet clients. i have added a class for the script to be executed class curp { exec { "/usr/src/scripts/curp.py": } } and included it in nodes.pp ...
1
vote
1answer
528 views

I've broken my puppet, clients are failing reporting “ Could not run Puppet configuration client: Invalid parameter stage”

I'm getting this error on all my clients, debian and CentOS, where the line number depends on which case is selected for the OS; err: Could not run Puppet configuration client: Invalid parameter ...
2
votes
3answers
2k views

Puppet - Any way to copy predefined custom configuration files for software on clients from the puppet master (host)?

I have been having a lot of fun coding with what puppet I have had experience with so far, and so far it looks like it can do most of what I need it to do. One thing I am not finding in the ...
0
votes
1answer
2k views

Just trying to set up a puppet client and server in CentOS VMs from scratch - basic setup problems

I have a set of two VM's which I am trying to use puppet on. It's about a simple setup as you can get, I am trying to setup a server and setup a client and simply get to writing some puppet policy. ...
12
votes
4answers
3k views

Managing an application across multiple servers, or PXE vs cfEngine/Chef/Puppet

We have an application that is running on a few (5 or so and will grow) boxes. The hardware is identical in all the machines, and ideally the software would be as well. I have been managing them by ...