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

learn more… | top users | synonyms

0
votes
1answer
10 views

Using hiera to include modules in example42/apache

I'm trying to set up a puppet configuration for work (open source version), and my goal is to create a sort of standard class that most of our servers could just use with a simple hiera_include in the ...
1
vote
1answer
11 views

Enable mod_php for apache when provisioning Vagrant with Puppet

I have a Vagrant machine provisioned by Puppet. I was able to install PHP & Apache but mod_php is not enabled so I can't run PHP scripts. I am using puppetlabs/apache. include apache::mod::php ...
0
votes
1answer
14 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
2answers
26 views

Puppet: converting a custom template into config file

I took over administrative duties for an Linux environment of around 20 boxes. Trying to consolidate configuration management with Puppet. Most is straightforward, however I stumbled on the firewall ...
0
votes
1answer
17 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 ...
-1
votes
1answer
21 views

Facter: Custom-fact-script “was parsed but returned an empty data set”

For facter/puppet, I installed a one-line shell script. Several, actually. On subsequent runs, and with facter -p, I see the following output: Fact file ...
0
votes
1answer
42 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
24 views

Managing application configuration in aws using puppet

I have a web application with .net backend ( RESTful Services) and angular js frontend. The application is hosted on IIS Web Server. I am going to deploy the application on AWS such that I will have ...
0
votes
1answer
26 views

Puppet: How to fix “Unknown function hiera_include”?

I've installed Puppet using the foreman-installer and it installed successfully. Then, I wanted to install Hiera as I have some modules which use hiera functions so I've installed hiera and created a ...
5
votes
1answer
209 views

Puppet VS Ansible + what is the best auto remote task tool [closed]

there are many remote tools for automation tasks as puppet or ansible my target is to perform many remote tasks on Linux machine as: run block of Linux command , copy files from master machine to ...
2
votes
0answers
38 views

Understanding packets dropped by iptables from puppetmaster

I am seeing packets getting dropped during my puppet client runs on a semi regular basis. And I do not understand what is causing this. I should mention that Puppet is managing the firewall rules ...
2
votes
1answer
20 views

Differentiate puppet agent (with master) from puppet apply run?

Is it possible to differentiate a puppet agent run from a puppet apply run? Is there a convenient environment variable or fact to check within my manifests?
0
votes
2answers
28 views

Puppet - Automatic provisioning with Vagrant VMs

I have three virtual machine that I have created using Vagrant. This virtual machine have as box ubuntu/trusty64. I have created all VMs in the same Vagrantfile as single project. To provision it, I ...
0
votes
1answer
28 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
0answers
22 views

Failing to install Foreman puppet on Centos 6.5

I've tried to install Foreman puppet on Centos 6.5 machine and failed. I followed these steps: http://tuxlabs.com/?p=64 And while running foreman-install I received the following error: ...
0
votes
0answers
32 views

Puppet : Invalid resource type anchor

Im trying to install our 'flume_ng` to mimic our prod environment. After organizing the directory structure, I use the puppet apply command sudo puppet apply -e 'include flume_ng' ...
0
votes
0answers
12 views

Configure puppet/foreman to update multiple servers

I just managed to install foreman on CentOS 7 and connected 4 agents to the puppet master, I was wondering if it is possible and how to update all 4 ubuntu servers at once and what will be the safest ...
0
votes
1answer
27 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 ...
2
votes
1answer
22 views

Add two or more SSH keys to a user, in puppet

I need a solution to be able to add more than one SSH ´key´ to one user. class user { user { 'k': ensure => present, comment => 'bogo user', home => '/home/k', managehome ...
0
votes
1answer
41 views

Puppet Error: 400 on SERVER: Syntax error at

I am getting a syntax error when running puppet, although I cant figure out why: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'String'; expected ')' at ...
0
votes
2answers
33 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
36 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, } ...
0
votes
0answers
4 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
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
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 ...
1
vote
1answer
28 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 ...
0
votes
1answer
49 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
0answers
16 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
51 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 ...
1
vote
1answer
105 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}" ...
0
votes
3answers
43 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 = ...
0
votes
1answer
65 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 ...
1
vote
2answers
33 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 ...
0
votes
0answers
46 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
44 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 => ...
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
3answers
47 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
44 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
50 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
1answer
33 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 ...
-1
votes
1answer
343 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 ...
5
votes
0answers
74 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 ...
0
votes
1answer
34 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
1answer
67 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.
1
vote
0answers
41 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
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
35 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 ...
1
vote
1answer
30 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 ...