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

learn more… | top users | synonyms

6
votes
2answers
4k views

Puppet permissions issue reported on client

err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Not authorized to call search on /file_metadata/plugins with {:ignore=>[".svn", ...
-3
votes
0answers
14 views

puppet agent failing to connect puppet server

I am new to Puppet. Configured a test server and a client (agent) machines. I am getting the following error while trying to test the puppet agent from client machine. [root@puppet-client lib]# ...
0
votes
2answers
18 views

Using Hiera to set global variables

I'd like to set a value used repeatedly by several classes and resrouces from Hiera. In other words, set a global parameter through Hiera. So, in the appropriate yaml file, I have: myavr: 'foo' ...
0
votes
0answers
15 views

Can puppet install the Apache2 package on Ubuntu Trusty 14.04?

Various documents on the Internet indicate that it is normal to use puppet to ensure that the Apache2 package is installed in Ubuntu eg package { 'apache2': ensure => present, } ...
2
votes
2answers
961 views

Puppet doesnt sign certs

I have build an testlap for puppet, but it doesnt work. I start the Puppet Agent on the Node and he waits for the Certificate. root:~# puppet agent --server xxxx --waitforcert 60 --test warning: ...
0
votes
0answers
3 views

Puppet populate var with a template contents

I need to populate a variable with a template file content. Something like this: options = template("module/test.erb") Do you know if there is a way to do it ? BR Flex
14
votes
2answers
1k views

Puppet and launchd services?

We have a production environment configured with Puppet, and want to be able to set up a similar environment on our development machines: a mix of Red Hats, Ubuntus and OSX. As might be expected, OSX ...
0
votes
1answer
6 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
16 views

Puppet masterport

You can have Puppet listen on a custom port as port 80 instead of 8140 as I have seen it. It can be set in etc/puppet/puppet.conf as masterport=80 There is a command, don't know if I use it ...
0
votes
1answer
2k views

How to add a puppet module to Gepetto, when using git?

I followed some "best practices" from Puppet 2.7 Cookbook and created agent - puppet master framework, with git cvs. Unfortunately, the book doesn't cover Gepetto, so I am forced to improvise that ...
5
votes
2answers
2k views

How to manually create Puppet CA and certificates?

I am wondering how to manually (using openssl instead of puppet ca command) create CA that would be usable by Puppet? The goal would be to script creation of such CA's to deploy them on multiple ...
0
votes
1answer
27 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
15 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 ...
1
vote
1answer
16 views

How to install an rpm through puppet and provider as yum

I have an RPM, which I am keeping in repo. Now I need to install the rpm via puppet. I dont have any dependency for that rpm. Currently I am using script package { "application": provider ...
1
vote
1answer
83 views

Why is my puppet master not using hiera?

I have a puppet master (version 3.8.1) set up, with a hiera.yaml file which I think is set up correctly, like so: pete@ip-172-31-4-61:~$ cat /etc/puppet/hiera.yaml --- :hierarchy: - "%{::fqdn}" ...
-2
votes
1answer
24 views

How to ignore some packages being upgraded while updating OS through mcollective in puppet? [closed]

Current mcollective patching that i am using is just upgrading everything. There should be some way that, we can ignore upgradation of some selective packages. Your suggestion would be really ...
0
votes
1answer
26 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
2answers
25 views

Install a Puppet module to the global modules directory by default?

I'm setting up a Puppet master server for the first time. It's configured to use environments: /etc/puppet/puppet.conf: [main] environmentpath = /var/opt/puppet/environments basemodulepath = ...
5
votes
4answers
5k 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 ...
0
votes
0answers
14 views

Can I accumulate an array of values in puppet from a collector

I need to instantiate a firewall related class which takes an array of the hosts allowed to access a database port on a db server. What's in that list depends on which of various web apps are turned ...
0
votes
1answer
29 views

Disable Puppet ENC part in Foreman

I looked for this for days now, and I'm quite depressed. We want to use Foreman as a monitoring and provisionnig tool. We would like to deactivate Foreman's ENC and use only Hiera. How could I manage ...
0
votes
1answer
26 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 ...
2
votes
1answer
56 views

Is it possible to execute «unless» clause as a specific user?

Background: I am upgrading our lxc puppet module to support the emerging unprivileged LXC technology. The code that creates the container is executed unless the following test if the container ...
3
votes
4answers
2k views

Installing Jenkins with Puppet fails to import GPG key

I'm trying to install Jenkins with Puppet using the manifests below. # init.pp class jenkins { include jenkins::install, jenkins::service } # service.pp class ...
1
vote
2answers
27 views

puppet directory trees creation from a variable

Im trying to create directory tree using puppet. Ex dir => /home/any_dirname/any_dirname2/any_dirname3/ Is it possible to create above tree in puppet where dirname can be anything so im taking it as ...
1
vote
3answers
1k views

Require file for mount and also update the file after mount?

I am trying to make sure a directory exists for a mount and then also update the permissions of that directory after the mount happens. I am receiving the following error: err: Failed to apply ...
1
vote
2answers
920 views

Problem getting puppet to sync custom fact

I am having trouble getting puppet to sync a custom fact. I am using puppet version 0.25.4. The fact is inside a module as described in http://docs.reductivelabs.com/guides/plugins_in_modules.html If ...
0
votes
0answers
39 views

How do dynamically get the hostname of another machine in hiera?

I have a few machines, one of those has the class dbserver assigned via ENC. The other machines run software which need the DB. Now I want to configure this software to be able to connect to the DB. I ...
0
votes
1answer
32 views

How to calculate value in puppet erb file

I have the following value im my application my_app.pp value: akka_application_cluster_seed_nodes => ...
2
votes
2answers
2k views

puppet cert list -all: Error: header too long

I tried restarting my puppet master but the error still persists. Also see it from all the puppet agents that try to join. puppet agent --server puppet.example.com --waitforcert 60 --test --verbose ...
6
votes
3answers
5k views

How to set up :datadir: when using Hiera with Puppet and Vagrant

I'd like to know how to set up :datadir: in hiera.yaml for optimal usage with Puppet and Vagrant. Currently I'm using vagrant 1.5.0 with virtualbox 4.2 on Ubuntu 13.10 with an Ubuntu 12.04 guest ...
0
votes
3answers
32 views

Puppet include firewalld module not working

I have cloned this module onto my puppet server. I cannot seem to understand how I should be including this into a node. I am doing: nodetest1 { include firewalld } But this does not apply all ...
-1
votes
2answers
39 views

Puppet file resource on windows agent don't work, what did i do wrong?

Background This is the first time i work on puppet The puppet master is Linux version... The puppet master host also install Puppet Foreman Server version 1.8.2 The puppet agent is Window ...
0
votes
0answers
36 views

Facter does not show custom Puppet facts

facter does not show the custom facts while Puppetboard does. According to this source the paramater -p is required to show all facts including the custom once. I have tried it but the outcome seems ...
1
vote
2answers
1k views

Puppet: Unable to start squid service

In init.pp the squid service is defined like this: service { 'squid': ensure => running, enable => true, hasrestart => true, hasstatus => true, subscribe => ...
1
vote
1answer
31 views

Puppet manifest isn't working. The error message is inexplicable and unhelpful

I'm trying to compile (into a catalog) a manifest to be ran on a specific puppet agent node. I am using Puppet 3.4 on the puppet master and agent servers. I am using Ubuntu on AWS. Here is the ...
12
votes
2answers
18k views

Adding lines to /etc/profile with puppet?

I use puppet to install a current JDK and tomcat. package { [ "openjdk-6-jdk", "openjdk-6-doc", "openjdk-6-jre", "tomcat6", "tomcat6-admin", "tomcat6-common", "tomcat6-docs", ...
-1
votes
1answer
174 views

Error 400 on SERVER: The environment must be purely alphanumeric, not 'puppet-ca'

I would like to share this mistake as i have waste for one day on this. So I think i might be useful for other There is a puppet server setup by my colleague in infrastructure team. They provide me ...
18
votes
4answers
25k views

puppet: force service restart after configuration file was modified

how can i ensure that if new version of configuration file is downloaded via puppet from master repository to one of managed servers relevant service is restarted. typical scenario - let's say there ...
5
votes
0answers
56 views

Best Foundation for Mesos Deployment

We are currently in the process of designing the architecture of our new Apache Mesos cloud setup. The goal is to unify our systems by moving different stacks onto the same architecture. The main ...
1
vote
1answer
57 views

Puppet change mysql datadir only if it is installed first time

I want to use puppet to install Percona server with YUM repository. The default datadir directory should be /mysql. This is required to be consistent with existing directory structure.
0
votes
1answer
30 views

How to execute/run puppet class

I am new to puppet. I want to know how to execute/run a simple puppet class. Below is the class I am trying to execute using puppet apply classExample.pp classExample.pp is the file in which class ...
1
vote
0answers
35 views

Puppet 3.8.1 hanging on windows

I am using puppet 3.8.1 and running command line as a administrator but puppet is hanging. With debug turned on I get too Debug: Runtime environment: puppet_version=3.8.1, ruby_version=2.0.0, ...
0
votes
1answer
22 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(......) } ...
2
votes
2answers
1k views

How to get Run Puppet button working on Foreman?

First of all, I know there is already a very similar question here on serverfault, but it doesn't quite answers my problem. So, my setup is the following: I have one server, running Ubuntu 14.04 LTS ...
0
votes
1answer
33 views

Recovering puppet config

Anyone know if you can recover puppet configuration from a host running an agent? We've found the reformatted yaml file that applied to the host, but not the actual puppet code. With CFengine the ...
2
votes
3answers
7k views

puppet master REST API returns 403 when running under passenger works when master runs from command line

I am using the standard auth.conf provided in puppet install for the puppet master which is running through passenger under Nginx. However for most of the catalog, files and certitifcate request I get ...
3
votes
1answer
2k views

passenger(mod_rails) fails to start puppet master under nginx

On the server [root@bangvmpllDA02 logs]# ruby -v ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] [root@bangvmpllDA02 logs]# puppet --version 3.0.1 and [root@bangvmpllDA02 logs]# service ...
1
vote
1answer
28 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
2answers
59 views

Puppet Master: Multiple agents with same hostname

I'd like to use Puppet master to configure multiple development VMs with Vagrant: eg: vagrant creates a new box and provisions it using Puppet agent. However, some testing seems to show that Puppet ...