3
votes
1answer
31 views

Puppet: how to run an exec only if puppet has made changes

We are doing basic management of some servers via puppet - The servers themselves run as part of a clustered system that handles other aspects like user accounts etc and includes a monitoring script ...
0
votes
1answer
14 views

MCollective metadata refresh returns: Host name lookup failure

With puppet installed, the command /opt/puppet/sbin/refresh-mcollective-metadata is run every 15 minutes. It loggs hostname: Host name lookup failure when it runs. hostname, hostname -i, and hostname ...
0
votes
1answer
56 views

Install php 5.5 on centos with puppet

I am trying to get a more recent version of php and mysql on a centos 6.5 x64 box. I added the yum repos epel and remi and have the remi as a dependency for php but it will not install. The error I ...
3
votes
1answer
82 views

“net ads join” fails in puppet exec but runs OK directly from command line

I have the following exec that joins a Linux (CentOS 6) host to an Active Directory domain. When run as root from the bash terminal, it runs successfully and the host is joined to the AD domain ...
4
votes
1answer
60 views

Is there a streamlined way to export settings from an existing CentOS 5.10 server for local Vagrant provisioning? (Puppet, Chef, shell, or otherwise)

I've recently started the process of learning how to use Vagrant for spinning up a local development environment. (after getting frustrated with the various WAMP stack options) Vagrant is great so ...
1
vote
2answers
76 views

Puppet - 2.7.x - Set SGID

Im trying to puppetize a module which will ensure I have the same path on servers for storing local log files for custom web applications. As such I would like to set the SGID to ensure that even if ...
0
votes
1answer
141 views

Recreating CentOS environment with Vagrant

I have a Vagrant and CentOS related question. I'm trying to replicate a CentOS server which uses WHM/cPanel for hosting. Each site on the server is hosted in /home/$user/. This means with Vagrant I ...
4
votes
1answer
100 views

Why would Puppet exclude a file resource without error?

The oddest thing is happening during this Puppet run (using Puppet Apply) and it has me perplexed. I've tried my usual channels to find solutions but I cannot find anything on the topic. I apologize ...
3
votes
2answers
192 views

Manage enable - disable nginx site by Hiera puppet?

i got the task to implement hiera puppet script to manage sites_enabled for nginx. Here is my puppet script: common.yaml --- classes: - nginx nginx: enabled: abc.com ...
-3
votes
1answer
48 views

What is best way to convert existing installation of linux to puppet

I have centos 6.4 running on aws on ec2. I has installed all moudles , plugins , libraries etc myself manually. Bow i want to convert that configuration into puupet. But i don't know how to do ...
-1
votes
1answer
1k views

How to set the fqdn on a CentOS server? [duplicate]

I set my hostname in the /etc/sysconfig/network file to host.example.com HOSTNAME=host.example.com Fyi, I then issued a reboot on the machine. I have a problem with Puppet: when I run Facter on ...
1
vote
1answer
23 views

Compact Node Definition

I created a new module for my autofs mounts using defined types so I can specify as many new mounts in my node definitions as needed. So for example my node definition looks like the following: node ...
1
vote
2answers
380 views

puppet create certificate with fqdn

hostname on the client is dns01.srv.acentauri.net.uk, however when I run puppet agent -t Info: Creating a new SSL key for dns01 Info: Caching certificate for ca Info: Caching certificate_request ...
0
votes
1answer
300 views

Centos - cant access node from puppet dashboard

I am trying to setup puppet's dashboard to be monitor the status of my servers. With the below shown configurations, my clients (or nodes) only show up as Unreported and says Has not reported in the ...
2
votes
3answers
209 views

Can I use puppet on an existing Linux server?

I want to learn puppet but I am confused with one thing. I have already installed many python modules, apache modules, PHP plugins etc. Can I convert all that into puppet so that in my new server the ...
1
vote
3answers
342 views

How to tell what version of puppet you are running on centos?

I'm getting started with puppet on centos and was confused about a few things. First off a man page exists for puppet-master but not for puppetmaster even though the daemon in /etc/init.d is ...
2
votes
4answers
243 views

Managing a block of text with Puppet

I'm attempting to insert a block of text into my CA certificate file on CentOS hosts with Puppet. I asked about this before, and it seems CentOS is sorely lacking in certificate management ...
1
vote
1answer
88 views

Puppet changes directory ownership frequently from “users” to “users”

I see many messages in my Puppet dashboard that say a change has taken place, changing ownership of a group from "users" to "users". It seems to be related to the group 'users' existing twice, once ...
0
votes
1answer
40 views

Is there a bug with puppet and Centos 5.7?

I'm going through the Puppet 'Learning' VM. Here's my manifest: $ensure_val = 'present' define student($full_name) { user { "${title}": ensure => $ensure_val, comment => ...
1
vote
1answer
683 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
109 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
546 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
96 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
150 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
286 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 ...
48
votes
2answers
6k 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
346 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
149 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
1k 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
925 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
774 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
856 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
384 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 ...
6
votes
3answers
1k 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
2k 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 ...
-1
votes
1answer
650 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 ...
8
votes
1answer
1k 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
2answers
3k 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 ...
2
votes
2answers
2k 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
532 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
379 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
1k 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 ...
2
votes
3answers
1k 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
3k 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
574 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
3k 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. ...
13
votes
4answers
4k 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 ...