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

learn more… | top users | synonyms

2
votes
5answers
151 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
91 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
307 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
696 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
62 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
279 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 ...
4
votes
1answer
294 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
139 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
33 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
63 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
263 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
128 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
208 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
1answer
591 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
107 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
225 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
2answers
251 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 ...
1
vote
2answers
238 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
132 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
9 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
29 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
42 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
119 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
164 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
401 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 ...
1
vote
0answers
42 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
188 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
467 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}" ...
1
vote
3answers
242 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 = ...
1
vote
2answers
821 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
115 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
68 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
101 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
49 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
257 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
71 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
211 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
59 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
vote
1answer
3k 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 ...
7
votes
0answers
202 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
88 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
188 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
68 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
62 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
38 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
58 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
162 views

Puppet agent on Windows unless doesn't work how I think?

Ok, I've spent days chasing this around. Is there an issue with puppet agent 3.7.1 x64 on Windows 7 x64 where execs with "unless" don't ever NOT run the command? I've tried doing Batch example: ...
2
votes
1answer
568 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: > ...
0
votes
1answer
423 views

Duplicate declaration on Puppet server

I can't override parameters of a class in my manifest. Puppet version on both machines is 3.7.5. I use thias-postfix. I even can't execute the example from the Readme.MD file. Below is my site.pp ...
1
vote
2answers
333 views

Optionally pass parameter to puppet using hiera

We're using the roles/profiles pattern. In the example below I'd like to optionally pass a parameter from hiera so that if no value is provided then the ::apache class default is used (which it gets ...