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

learn more… | top users | synonyms

2
votes
1answer
56 views

How to insert row into RDBMS table from puppet module?

I have a database table where I need to insert a row for each host has been assigned a particular puppet model. Lets call this puppet model foo. The db table is called foo_hosts has three columns: ...
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 ...
-1
votes
1answer
50 views

New puppet master VM counted towards licenses used, old puppet master node made agent no longer responsive

*Using VSphere Client 5.1 Ubuntu precise VM's with Puppet Enterprise 3.3.1 and PostgreSQL 9.3.1 I am utilizing the same postgresql database to manage a new puppet master and I know that the licenses ...
3
votes
2answers
191 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 ...
0
votes
1answer
100 views

Puppet agent not following `server` setting

I have a very strange issue with Puppet 2.7.18 (on a Raspberry Pi) that started all of the sudden. In simple terms, the agent only partially follows the 'server' directive in puppet.conf. The ...
0
votes
2answers
99 views

How to add multiple checks of OS for a package in puppet

I have mixture of CentOS , 5.8, 5.7, 6.1, 6.3 , 4.7 Ubuntu, Debian, servers with me. I want all of them to have nrpe installed on them. the problem i am facing is that when i write puppet code to ...
2
votes
3answers
86 views

How to make puppet to start all services in the end of the catalogue run?

Especially when setting up a completely new server from the scratch, puppet tends to start dependant services as soon as all their dependencies are satisfied. This sometimes leads to situation that ...
1
vote
2answers
1k views

puppet only exec when file does NOT exist

I only want to exec following command when file (/usr/local/bin/papply) does not exist. not sure what to put there. exec { 'git add url': command =>'git remote add origin ...
2
votes
1answer
279 views

How to collect tagged exported resources?

I export an haproxy::balancermember resource for my application servers: class www_admin($datacenter){ @@haproxy::balancermember{"${hostname}-www-admin:9193": listening_service => ...
2
votes
0answers
113 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 ...
3
votes
2answers
59 views

How does active puppet agent handle downed puppetmaster?

Say that a puppet agent is in the middle of a refresh and I stop the puppet master service. Is there any point that it would potentially cause an incomplete or corrupt setup to be pushed out like I ...
4
votes
2answers
197 views

Overriding Parameters in Previously Declared Puppet Resource

I'm attempting to rebuild nwaller's sssd puppet module to be entirely LDAP based and to be a little cleaner. In it we have a resource defined for each authentication domain of the form define ...
1
vote
1answer
65 views

Augeas edit option if it exist, add otherwise - while referencing newly created node

I want to do something along the lines of: set /files/etc/exports/dir[. = '/export/home'][client = '10.0.0.0/8'] /export/home set /files/etc/exports/dir[. = '/export/home'][client = ...
2
votes
1answer
61 views

Is there more than one provisioning technology named fog? [closed]

I have a puppet installation in which I tried to check the fog version (for cloud provisioning), but I got no response so I assumed it was not installed. I need fog in order to utilize the vmware ...
1
vote
1answer
227 views

Puppet fails to mount a CIFS share

I have a Puppet module that I use to mount a CIFS share. Both the puppetmaster and the agents are running SLES 11. The mount works manually with this command: mount.cifs //servername/path/to/share ...
1
vote
0answers
141 views

Puppet agent runs as a daemon but manifests are only applied when puppet agent is run manually?

I have puppet agent daemonized # service puppet status * agent is running And can confirm that it is retrieving the configurations from the master # cat ...
1
vote
2answers
261 views

Null / blank values on puppet facts

How can I quickly and easily state that a null / blank value is OK on a fact within puppet? When assembling a custom fact I'm doing something like the following: ...
2
votes
0answers
85 views

How do I obtain the ssh public key from my VSphere ESXi 5.1 host hypervisor residing in vcenter with puppet-enterprise cloudprovisioner

I am using the learn puppet 3.1 vm and trying to connect to a host hypervisor. I followed the instructions to create a .fog file under root which includes a yaml hash, and I read that the yaml hash ...
1
vote
1answer
140 views

puppet onlyif with pgrep does not work

I want to use an exec in puppet onlyif its process is NOT running exec { "execute me": onlyif => "pgrep -fc 'ruby execute.rb'", command => "execute me", } So on the above case, if ...
0
votes
0answers
52 views

Create puppet manifests file with mariaDb

I want to customize vagrant with puppet and install there php5, apache and mariaDb. I try to use this site to generate suitable manifests file but there absent mariaDb. Can someone suggest where I can ...
-2
votes
1answer
45 views

Thoughts about a simple way to check remote updates lists and updating remote servers

I have been building my own Control Panel (mostly hobby) where I control hosting packages on my webservers, mailaccounts on my mailservers, DNS records etc. I also use this to monitor my servers. I ...
0
votes
1answer
219 views

How to have puppet master on hostname without modifying /etc/hosts on client?

I created an A record for my puppetmaster. In case the puppetmaster on this ip address goes down and I have to spawn a new one from a new ip address, I can just change the ip address associated with ...
0
votes
1answer
36 views

How Puppet handles manifests in terms of processes?

I want to find out how Puppet handles manifests: in master process or Puppet forks it to execute in child process? It necessary for me to know what exactly do puppet master while handling manifests, ...
0
votes
1answer
295 views

Configuring puppetdb module in Puppet using Hiera

I'm trying to install the PuppetDB Module. Part of this bundles a module for installing some requisite Postgres instances which I am using as well. We primary use heira to configure roles and set ...
0
votes
1answer
71 views

Puppet node ordering

Can someone help me with puppet node ordering, I know how to control sequence inside classes using require, before, subscribe etc but I need to be 100% sure that my node2 will be executed only after ...
-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 ...
3
votes
1answer
238 views

Slow performance of only puppet commands on Learning Puppet VM

I'm using the Learning Puppet VM in VirtualBox and am getting slow performance (1 to 2 minutes per command) specifically for puppet commands. puppet itself is oblivious to these performance issues, ...
2
votes
1answer
99 views

Can we get git-like functionality with a tool like puppet?

I'm thinking about a convenient way to track my vps configurations and to deploy them in one click (or more or less one). I have been reading up and looking into different config deployment tools of ...
2
votes
1answer
182 views

Can't find installed module on modulepath

I'm attempting to use the maestrodev/rvm module when provisioning a virtual machine with Vagrant, but am running into a problem when attempting to include rvm. I keep getting Error: Could not find ...
0
votes
1answer
164 views

Puppet apache prefork configuration

I'm using the puppetlabs apache module to manage my apache configuration. I got everything configured, except the Server settings for mod_prefork. There is a template for prefork and it gets variable ...
1
vote
1answer
38 views

Getting latest build of Puppet agent for ARM

Im planning to use Puppet to maintain 100-1000 ARM based Debian machines for a multi-year study. The puppet 'master' system has v3.3 (obtained via yum on CentOS 6.4). The client systems are on v 2.6 ...
1
vote
1answer
87 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
109 views

puppet service not stopping service

notice ("This should be echoed") service { "iptables": ensure => "stopped", } This does not stop iptables, I am not sure why. service iptables stop works fine. Puppet 2.6.17 on CentOS 6.3. ...
2
votes
1answer
230 views

How to update grub with puppet?

I would like to change a line in /etc/default/grub with puppet to this: GRUB_CMDLINE_LINUX="cgroup_enable=memory" I've tried to used augeas which seems to do this magic: exec { "update_grub": ...
0
votes
0answers
38 views

Puppet Filenames with chinese characters don't get created

I have a puppet server and a client and both have the following locales configured: locale LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" ...
2
votes
3answers
389 views

hiera_include equivalent for resource types

I'm using the yumrepo built-in type. I can get a basic integration to hiera working yumrepo { hiera('yumrepo::name') : metadata_expire => hiera('yumrepo::metadata_expire'), descr ...
1
vote
1answer
86 views

converting node inheritance to hiera

I'm working on moving over a node inheritance tree to hiera. Presently working on the hierarchy. Prior to hiera, my nodes had a hierarchy as such base pre-prod qa nodes staging ...
1
vote
1answer
271 views

Puppet installs too many dependencies

I have a puppet class 'php' which looks like the following: class php { case $operatingsystem { debian: { package {'php5-common': ensure => latest, provider => apt, ...
1
vote
1answer
118 views

Hiera can't find puppet environment

I'm testing out hiera and hitting a snag on the hierarchy configuration. What I have is extremely simple, the part that isn't working is specification of hiera datadir files based on environment. ...
3
votes
1answer
130 views

Determine / set Puppet environment

I'm trying to determine what Puppet thinks the environment is on my agent nodes. Per the documentation I've configured the agent's environment in /etc/puppet/puppet.conf as such [agent] ...
2
votes
1answer
69 views

How to get puppet to stop on the first error in a Manifest?

How do you configure puppet to just stop on the first failure instead of continuing on and just spewing errors for the rest of the steps that depends on the first failure?
4
votes
1answer
194 views

hiera data source in using puppet syntax?

The documentation for hiera on docs.puppetlabs.com seems to give me the impression that I can use puppet syntax to describe my data. Or posssibly will be able to in the future. See: Coming soon. Is ...
2
votes
1answer
302 views

Hiera lookup based on pattern

I am trying to wrap my head around how I can transition from something I am doing in my large site.pp file into a structure I can use in hiera. It isn't clear to me from reading the puppet docs, ...
2
votes
1answer
384 views

Vagrant-aws not provisioning

I'm trying to spin up and provision an EC2 instance with Vagrant, it successfully creates the instance up and I can then use vagrant ssh to SSH into the it but Puppet doesn't seem to carry out any ...
0
votes
1answer
75 views

Something like doxygen for puppet nodes

I've got a fairly deep tree of inheritance within my puppet nodes. Before I head to omnigraffle, is there a tool out there like Doxygen for puppet scripts which could diagram this inheritance tree?
2
votes
1answer
61 views

Why does the official Puppet style guide insist on aligned fat arrows? [closed]

From http://docs.puppetlabs.com/guides/style_guide.html: All of the fat comma arrows (=>) in a resource’s attribute/value list should be aligned. The arrows should be placed one space ahead of ...
1
vote
1answer
82 views

Verifying hiera lookup for puppet

In the course of attempting to debug my puppet manifests numerous times after bundling it with hiera, sometimes I doubt whether the correct hiera lookup is even being performed. I am mostly using ...
0
votes
0answers
31 views

Puppet issue with hostname and certificates

My puppet master server has host-name.example.com for FQDN. Facter tells his hostname is host-name.example.com, that is correct. However, when I run puppet master for the first time, the generated ...
-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 ...
12
votes
3answers
381 views

Notified when a file controlled by puppet is going to be changed by yum

Is it possible to receive a notification on the console when a package containing a file that is controlled by puppet is about to change that file? Meaning, in yum when doing yum update, is it ...