Puppet is a configuration management tool (Unix & Windows) with its own Domain Specific Language.

learn more… | top users | synonyms

2
votes
1answer
213 views

When using the puppet node init command, are the parameters to specify in the answers.install file

On puppet-enterprise version 3.3.1, I am attempting to use the puppet node init command on a VMware puppet master node hosted on a VMware VSphere client with VCenter 5.1.0. My puppet master node has ...
2
votes
1answer
532 views

Puppet hang on 100% CPU usage

We're running puppet to manage our AWS instances and are migrating from a custom apt module for it, to the puppetlabs hosted apt module. Everything seems to work fine until during an puppet apply ...
2
votes
1answer
185 views

Puppet templates without modules

I want to use puppet without a puppetmaster and apply manifests with a git push workflow. I'd like to avoid splitting up everything into modules, because the server config is not very complex. ...
2
votes
1answer
460 views

When using multiple source files, how do you see which one Puppet is going to use?

Say you had a file directive like so: ***SNIP*** file: "/tmp/file_I_need": path => "/tmp/file_I_need", ensure => "present", source:[ ...
2
votes
1answer
460 views

puppet certificate fingerprint changed before and after signature?

I am getting quite a weird trouble here with my puppet configuration. On client and server (debian-squeeze), same version of puppet, clock synchronized. Things were going great until I decided to ...
2
votes
1answer
157 views

Create users via Puppet by reading a mySQL table

For a particular service, users are added/removed via web to a mySQL table. I need to replicate those users on several ubuntu servers (as regular shell users), preferably through Puppet. Currently I ...
1
vote
1answer
31 views

Complex puppet schedule attribute for package resource

So I have see the resource schedule in puppet. But it's not clear if I can have a complex schedule. If I want to install packages only Monday 10PM-3AM or Tuesday 10AM-Noon, unless a (external fact ...
1
vote
1answer
219 views

Puppet unable to send facts to Foreman - “tlsv1 alert unknown ca”

I recently updated Katello to 2.2 and Foreman now to 1.8.1, and it appears somewhere in the upgrade that Puppet now cannot contact Foreman: > [root@virt5 ~]# puppet agent --test info: > ...
1
vote
1answer
355 views

puppet Could not find dependency

I have inherited a puppet server. It has a couple of dozen hosts under management and it is mostly working fine. When I say mostly there are a few hosts that fail when checking in: Error: Failed to ...
1
vote
1answer
168 views

Puppet for Patch Management

I am thinking of using Puppet for massive patch management. The way to go with this, based on some research, is to create a class and apply it wherever you need, like in the following case: class ...
1
vote
1answer
198 views

Puppet: Unable to add physical volume

I want to create a physical volume in Puppet. Below is my code class lvm::crelvm { physical_volume { '/dev/sdb2': ensure => present } volume_group { 'vg_cas': ensure => present, ...
1
vote
1answer
158 views

Error: Duplicate declaration virtual defines user & group equal name

I need create a user with the name user1 & group user1. I defined a virtual resource to create it. Inside a class1 I create the user: include '::class1::virtual_accounts' ...
1
vote
1answer
268 views

Server provisioning without PXE

I have a lot of servers in different data centers which should be reinstalled from time to time. I am familiar with Puppet so I am able to configure the O/S after it boots up but I can't perform an ...
1
vote
1answer
173 views

Getting the error “Error 400 on SERVER: Invalid parameter” when defining a type for a yumrepo

I am trying to define a type to create yum repos. I want to be able to pull the data from common.yaml and have this define pull in that data and act upon it. I have not gotton that far and I am ...
1
vote
1answer
484 views

Nginx unmet dependencies over Vagrant / Puppet

I have no such issue on 64bit Ubuntu Precise, but once I tried to start 32bit machine, it failed on this command: # /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install ...
1
vote
1answer
707 views

external fact not available at very first puppet run

Introduction: We are using puppet to configure the nodes via a custom fact which is then referenced in hiera. The fact can either reside in the golden image in /etc/facter/fact.d/ or via pluginsync ...
1
vote
1answer
58 views

Puppet on Windows failing silently

None of my newly added Windows Puppet nodes seem to work, though none give errors. My Linux nodes work fine. I tried this line below in my nodes.pp, and a puppet kick runs without error, but does ...
1
vote
1answer
99 views

Puppet and managing .k5login with parameters and arrays

So I have Foreman set up, and would like to pass in a parameter that is basically a way to easily specify users and groups that can log in as that user. My idea is currently to have the parameter take ...
1
vote
1answer
99 views

puppet apply and extlookup

I still use extlookup (Yes, I know that it's deprecated :-( But I can't find time to move to hiera). My problem - I need to move from puppet master/puppet agent setup, to puppet apply that is run ...
1
vote
1answer
619 views

Puppet 3.3.1 Certificate verify failed

I`ve trouble to setup a master/node scenario with puppet 3.3.1 (puppet opensource) on both master and slaves. The slaves are on a windows and SLES machine. The Master is also on a SLES machine. The ...
1
vote
1answer
120 views

How do you upgrade puppet on Apache / passenger on EL6.4?

I have a Scientific Linux 6.4 server running apache / passenger with puppet-server installed. Also installed is Foreman 1.4. When I upgraded my agents to 3.4.2, they started all logging: Using less ...
1
vote
1answer
447 views

How to delete group using puppet when main group of another user

I have the following Puppet recipe: group{'pablo': ensure => absent, gid => 1020, } user{'pablo': ensure => absent, gid => 1020, managehome => false, } But ...
1
vote
1answer
289 views

Problems with Exec in Puppet

i want to to run the following command with puppet: sb2-init rasp /home/ubuntu/raspberry_pi_development/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc In ...
1
vote
1answer
206 views

How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) to send log files from several servers to a central server?

Summary How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) and scheduler (cron) to send log files from several servers to a central server? Context Our ...
1
vote
1answer
219 views

How to define nodes from a Hiera file in Puppet?

I am using puppet and the puppet network device management module and I am trying to build my custom type. In the built-in type for the routers configuration, you can specify a list of nodes and then ...
1
vote
1answer
27 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
1answer
864 views

Can I use variables in The Foreman as a Puppet ENC?

Is it possible to set variables like server_role=webserver, allow_root=false in The Foreman as a Puppet ENC? And does the Foreman as an ENC support hierarchies? E.g. make a group of webservers, that ...
1
vote
1answer
75 views

Pass compile options to rbenv::gem

I am using alup/puppet-rbenv and I am installing Passenger with nginx with this statement: rbenv::gem { "passenger": user => "vagrant", ruby => "1.9.3-p327", ensure => ...
1
vote
1answer
309 views

puppet ignores ENC classes

I am using a ruby script to retrieve the class parameters and my YAML output is as below: classes: tomcat_install: tmp_dir: /tmp tomcat_home: /tmp/tomcat6 puppet.conf is as below: ...
1
vote
1answer
168 views

Puppet agent on FreeBSD skipping runs

I am experimenting with puppet and we are using FreeBSD on some servers. I noticed that the agent on the FreeBSD is for some reason skipping runs, i.e.: May 6 09:19:15 eagle puppet-agent[66970]: ...
1
vote
1answer
696 views

How to refer to current iteration of hash loop in puppet

I have a hash like so net:ip { '': ip => { ip1 => { addr => '192.168.10.1', device => 'eth0', }, ip2 => { addr => '192.168.50.10', device => ...
1
vote
1answer
368 views

How to change single variable in Puppet between environments

Specifically, if I'm in staging, I want directory A, and in QA, directory B: file{'/etc/appenv': ensure => file, owner => 'root', group => 'root', mode => 0644, source => ...
1
vote
1answer
918 views

Puppet configuration file on Windows

I'm running puppet on windows as an admin (testing on windows 7, even though it is not officially supported). When I install puppet following the windows installation instructions, no puppet.conf file ...
1
vote
1answer
642 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: ...
1
vote
1answer
296 views

debian puppet clients (0.24.5-3) failing to retrieve file , centOs (0.25.5-1) working ok

I have got a puppetmaster and a mix of CentOs 5.4 and Lenny 5.0.3 clients. The CentOs have puppet-0.25.5-1.el5 installed and are working fine to retrieve files. The Debian boxes have the 0.24.5-3 ...
0
votes
1answer
13 views

Puppet: Cannot find class cron

I'm using Puppet 3.4.3. I'm trying to use the cron type to manage cron jobs (as documented here: https://docs.puppetlabs.com/references/latest/type.html). However, any time I try and run my ...
0
votes
1answer
15 views

Multiple Puppet classes need to access a resource and append a value to it, so another class can iterate through it after other classes are evaluated

I'm relatively new to Puppet and have recently inherited a very large infrastructure (Puppet 3.6 on a number of RHEL 6 machines). My Puppet infrastructure looks a bit like this: I have ...
0
votes
1answer
18 views

Puppet: Error: Could not set 'file' on ensure: getaddrinfo: Name or service not known on Ubuntu 14.04 x64

I'm trying to use Puppet to deploy a server on Ubuntu 14.04 x64. I can ping the puppet server fine, and the server is set correctly in puppet.conf. Puppet can connect to the master, send its key, I ...
0
votes
1answer
43 views

Unable to install foreman-installer on CentOS 6.6, what could be the reason?

I'm trying to install Puppet 3.x using Foreman-installer. I've following this guide after doing the following steps: Installed a clean installation of CentOS 6.6. Added foreman and puppet repos. ...
0
votes
1answer
30 views

Puppet Postgresql Module ERROR 400 Invalid parameter onlyif

I have a module named oss_puppetserver that has an init.pp and a database.pp. The database.pp class is enabled/included/assigned via hiera for a host, the module itself makes use of the existing ...
0
votes
1answer
28 views

Is it possible to get aws ec2 instance id based on its IP address

I have list of IP addressed, I want to find if instances associated with the IP address are still running or terminated. I am launching and terminating lot of instances on daily basis, just want to ...
0
votes
1answer
12 views

Error: Failed to apply catalog: Parameter name failed on Package[ntp]:

I am getting the following error while running puppet: Error: Failed to apply catalog: Parameter name failed on Package[ntp]: Name must be a String not Array at ...
0
votes
1answer
8 views

Puppet case statements with integer range

I need to write a case using some ranges in order to write in a better way something like the following spaghetti code : if $mem < 1024 { $retvalue = "128M" } elsif $mem < 7000 { ...
0
votes
1answer
21 views

puppet node name with regex

I am running puppet 3.7.3 on a windows 8.1 client and it is pulling in my default node definition. I am trying to create a more generalized definition by using regex on a group of nodes. Our naming ...
0
votes
1answer
50 views

Restarting Puppet Enterprise Master after hiera.yaml change

I have Puppet Enterprise 3.3.1 installed on an Ubuntu box. I've updated hiera.yaml to reflect a different datadir, and according to the docs a restart is required. How should restart the puppet ...
0
votes
1answer
68 views

Foreman displays a server as “out of sync”, what could be the reason and what is the right way to troubleshoot such an issue?

There's a puppet server in the company I work for with Foreman installed. There are around 200 Linux machines which are being managed by the Puppet server. When looking in the Foreman GUI, most ...
0
votes
1answer
31 views

Prevent debian package from being removed by puppet

is there a way to prevent a debian package from being removed? I want to prevent any resolution of "replaces" and "breaks" attributes that would lead to removing that package while being able to ...
0
votes
1answer
23 views

How to get variables in one define from another?

Suppose, the following Puppet code: define apache::base($pkgver = '2.4.10') { $apache_ver = $pkgver ... } define apache::vhost($instance) { ... $apache_ver = getvar(......) } ...
0
votes
1answer
155 views

Failure trying to manage apt sources with Puppet

I'm trying to get Puppet to manage my Debian apt sources.list, however, catalog compilation fails with this error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: ...
0
votes
1answer
70 views

Apache configuration resulting in recursive /index.html

I'm using puppet to configure Apache, and have a problem. I'm trying to serve a simple front page, with links to 2 subpages for Kibana and Uchiwa. I'm trying to use http://server/logging for kibana, ...