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

learn more… | top users | synonyms

0
votes
1answer
10 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 ...
-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
16 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
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
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
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
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 ...
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
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 ...
-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
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 ...
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}" ...
0
votes
2answers
26 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
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 ...
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 ...
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 => ...
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
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
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 ...
-1
votes
1answer
176 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
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 ...
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
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.
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(......) } ...
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 ...
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
1answer
62 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: ...
1
vote
1answer
142 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
53 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
79 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 ...
1
vote
2answers
43 views

Puppet master log not created in configured location

Below is my puppet master puppet.conf file [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter certname = puppet ...
-5
votes
1answer
45 views

init system vs configuration management [closed]

Best practice: What tasks would you give to an init system like systemd vs a configuration management system like ansible? What I like about starting up services with a CM is portability across ...
1
vote
1answer
42 views

Multiple agents on one host

Is it possible two run multiple puppet agents with different user rights on one host? I have a server which should be administered by two non related users through puppet. (one user account for the ...
0
votes
1answer
31 views

In Puppet deployment, do all agent nodes have to be connected to an Internet repository?

Or does the master cache the repository from the internet and provision for the agent nodes? In either case, how are updates deployed and managed? What pre-empts what? Edit: How are rpm updates, yum ...
2
votes
1answer
51 views

Puppet: How to use a set of common packages but allow exceptions?

I have about 200 more or less identical Linux VMs. There is a class for all common configuration: class my_packages { class { "::ntp": servers => [ "de.pool.ntp.org" ], } ...
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 ...
0
votes
1answer
31 views

Puppet - mySQL not remotely accessible upon setup (workbench)

I used Puppet's mySQL module to bring it up like this. The workstation ip is 172.16.1.49 and JIRA(mySQL) VM is 172.16.1.47 (Puppet Master is 172.16.1.80); I'm trying to access mySQL server using ...
4
votes
1answer
67 views

any sense in having multiple, distinct puppet masters?

I am wondering is whether it makes sense to have a single machine connect to multiple, distinct Puppetmaster instances. My use case is that i have different privilege level I want to grant to server ...
0
votes
1answer
97 views

Puppet - mysql module not pulling “my.cnf” from fileserver

Trying to deploy mySQL puppet. Using "Puppetlabs-MySQL" module. My puppetmaster'd pp has node 'jira.oracle' { class {'mysql::server':} } class mysql::server { package { "mysql-server": ensure ...
1
vote
2answers
61 views

How to append to the same variable with augeas run via puppet?

I have the following resource declaration to set the setenv.sh file via augeas in puppet. augeas {'test': lens => 'Properties.lns', incl => '/tmp/setenv.sh', changes => ...
1
vote
1answer
51 views

puppetserver timeout cannot find key

Fresh install on Centos (tried both 6 and 7) from the PC1 repo. Starting puppetserver munchs away at my RAM for a few minutes then fails with this error: Exception in thread "main" ...
3
votes
1answer
68 views

What's a good load balancer check for puppet master

We are running a couple of Puppet Master version 3.7 (Not PE) on AWS EC2 instances behind an Elastic Load Balancer (mainly for high availability). Currently the load balancer's check is just TCP ...
3
votes
1answer
151 views

Satellite 6's puppet is unable to find the hiera data sources

Using Satellite 6 which comes with Foreman 1.6.0.53. By default, Puppetlabs' documentation states that hiera configuration should be in $config/hiera.yaml. # puppet config print confdir hiera_config ...
2
votes
1answer
76 views

Transform \n to new line although input variable is single quoted in Puppet

If a variable is double quoted and it contains a \n $test="hello\nworld" file { '/tmp/hello': content => $test } then a new line is created: /tmp/hello hello world Problem What to ...