Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [puppet]

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

0
votes
1answer
16 views

create textfile in puppet from hiera list

I have a hash with a list in hiera. I use this to automatically create the dbs in the RDBMS via create_resources dbs: - dbname: something - dbname: or - dbname: other I would like to use this ...
0
votes
0answers
17 views

configure foreman smart proxy

I want to configure foreman smart proxy to connect puppet agents to puppetserver. I get an error when trying to connect an agent to a proxy by the following command. Command puppet agent --test --...
0
votes
2answers
29 views

Puppet - how to use different file source

I create configuration in Puppet for Nagios agent (NRPE). Now I'm trying to set different file source depending on existence of dirs.First I check if specific directory exists and then set specific ...
0
votes
1answer
12 views

puppetlabs-apache redirectmatch to 404 is not working

guys! I tried to return error 404 when accessing some directories on a vhost. Let's say we have http://bla.com/bla1, http://bla.com/bla2, http://bla.com/bla3, etc waiting to be redirected to 404. I ...
2
votes
1answer
21 views

Understanding puppet JMX metrics

Ive been looking into JMX metrics being exported from puppet and am not clear on how to interpret them. This particular one is supposed to be measuring the package compiler but it's not clear (to me) ...
1
vote
1answer
26 views

Puppet over WAN to implement configuration changes to linux clients

As the title suggests, I need to find a way to implement a system that can change configuration to over 800 linux clients, for a client. The problem stems from the fact that we are not allowed to ...
0
votes
0answers
26 views

Puppet installation error

I am trying to install puppet enterprise for the first time, and following this documentation: https://puppet.com/docs/pe/2019.0/installing_pe.html I have downloaded the file and executed it locally ...
0
votes
1answer
25 views

Puppet 6: PuppetDB won't start because of clojure/java errors

I've searched far and wide, and I just simply can't get it to work. I've searched everything I could find which contained "puppetdb", but without success. I have followed the documentation, and I ...
0
votes
1answer
12 views

Puppet : Custom resource creation failed

I have tried to create a custom resource type on Puppet which creates a file. However, after adding the type and providers in my module/lib folder and running puppet agent, using the new custom ...
0
votes
1answer
9 views

puppet 6 template variable from hiera can't be retreived

I'm having problem when migrating the puppet code from puppet 3 to puppet 6. This is the error message: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: ...
0
votes
1answer
49 views

Puppet - importing a locally written (non-installed) module's functions

Say I have two locally extant modules that don't exist on Forge or in a custom Forge-like repo. These repos will never be installed via command line as they are part of a bigger deployment that cannot ...
1
vote
1answer
21 views

Does Apache proxy_mod support repeated directives?

For example is: <Proxy balancer://blah> BalancerMember ajp://127.0.0.1:8080 Proxyset lbmethod=bytraffic Proxyset stickysession=JSESSIONID Proxyset timeout=5 </Proxy> interpreted in ...
1
vote
1answer
21 views

Puppet unable to add user to AD group

I'm trying to add user to group on my DC using puppet: dsc_xgroup {'DomainAdministrators': dsc_ensure => 'present', dsc_memberstoinclude => 'tfl@ad.contoso.com',...
0
votes
0answers
8 views

Make Puppet Enterprise see changes to git repos referenced in the Puppetfile more quickly

I am using Puppet Enterprise 2017 to manage some servers. I use this Puppetfile: mod 'puppetlabs/stdlib', :latest mod 'kdc', :git => 'https://git.example.com/myrepos/kdc.git', :branch =>...
2
votes
1answer
36 views

how i do use puppet variable in facter custom facts

how i can inherit variable from puppet manifest in facter custom fact? in this case $job_name varible. I want use same custom fact with different envs. if $facts['hostname'] =~ /.*name.*/ { $...
28
votes
6answers
4k views

Have a system that expires SSH keys every 90th day

I have a customer that now requires us to change every password every 90th day due to their interpretation of GDPR. That's fine for the web-based system we develop for them because we can just ...
0
votes
0answers
106 views

Puppet: How do I insert XML properties with augeas?

I would like to update an existing XML file with augeas. Here is the file: <?xml version="1.0" encoding="UTF-8"?> <config control-bind="127.0.0.1:11111" version="1.0"> <web-server ...
0
votes
1answer
185 views

File conflict in Puppet between modules

I have run into a problem that I am sure is an simple fix but I can't seem to find any resources that explain the behavior correctly. I am building out a new nginx puppet module for automating git ...
-1
votes
1answer
31 views

Why can't I have more than two SSH connections to a server?

I am using Puppet PE 2017.3.5.0-1 on a CentOS7 AWS instance. When I SSH into this machine, to a default installation, I am getting limited to two connections only. When I try to connect again (from a ...
0
votes
1answer
84 views

User Authentication with Puppet and Active Directory

I've just started my internship in a governmental organisation, and my first assignment is to develop at user system for our internal serverfarm of 120+ Redhat and Windows servers. The internal ...
0
votes
0answers
11 views

How to link a file if certain condition is not met

define link () { file { "/etc/effective/${title}.json": ensure => 'link', target => "/etc/original/${title}.json", } # Working fine. # if the above fails and ends up ...
1
vote
1answer
40 views

Installing postgres via puppet doesn't refresh package list, install fails

I'm on OSX 10.13.6 host running VirtualBox 5.2.16 and vagrant 2.1.2 I'm trying to set up a VM with bento/ubuntu-18.04 using two provisioners: 1) inline shell, to get puppet and the required modules ...
0
votes
0answers
80 views

How to avoid specifying variables many times with puppet roles and profiles pattern?

I am writing puppet modules and trying to understand and implement roles and profiles pattern , along with some best practices, particularly about hiera autolookups and splitting the module into ...
0
votes
1answer
66 views

How do you test/troubleshoot hiera in a Puppet environment

I'm using Puppet alongside Foreman to provision hosts, and I've currently got all of Puppet config as modules in a repository. I'd like to use Hiera but I've never been able to get even the simplest ...
0
votes
2answers
77 views

Q: How to define Apache modules via Puppet and Hiera?

I am currently using Puppet with Foreman 1.17 and puppetlabs/apache version 3.1.0. All virtual hosts are defined using a .yaml file: apache::vhost: vm12345_ssl: servername: my.example.com ...
0
votes
1answer
92 views

install powershell gallery module using puppet

Hopefully this is the right place for this. i am using Puppet on Windows Server and looking to install a Powershell module found in the Powershell Gallery using Puppet. I have read through https://...
0
votes
1answer
39 views

Puppet 5 : Variables not interpolated

I'm trying to update an old Puppet 3 infrastructure to Puppet 5. I'm using Hiera to get the data, with a NoSQL backend. I've written my own ENC in order to get node data from there, and this is ...
0
votes
0answers
76 views

override .bash_profile on puppet config, for nodes

I have a puppet master configuration, which i have yet to identify what is overriding(deleting them replacing with a core file) the bash configs. I have solved one of two of my issues, the first ...
0
votes
1answer
16 views

Kernel upgrade and Oracle prerequisites error

I am upgrading kernel (Red Hat) from 6.7 to 6.9 with Amazon AMI and when I am installing Oracle through puppet I am getting this pre-requisite error. Error: Execution of '/usr/bin/yum -d 0 -e 0 -y ...
4
votes
1answer
91 views

What are the pros/cons of running Chef/Puppet at regular intervals?

I always worked where they used to run Puppet at regular intervals. So, distributing changes was easy and on the fly. In the new team, they frown upon running the Chef agent at regular intervals. They ...
0
votes
1answer
76 views

Puppet conditional not working as facter is returning a string not a numeric

I have hit an issue when upgrading my code (written for 3.x) to live happily on our new 5.x puppet environment .. My question is specifically related to 'question mark conditionals' (not sure how else ...
1
vote
0answers
87 views

How to check Apache version in Puppet

I need to apply a different access control configuration depending on whether a server is using Apache 2.2 or 2.4. Presumably, this requires an if check on the version of Apache. I would like to know ...
1
vote
1answer
32 views

puppet server puppet apply node definitions remotely from server

i have setup puppet server agent setup. I am using puppet version 4 for both server and agent. I have my node definitions. I can run puppet agent -t to retrieve the node definitions from puppet server....
0
votes
1answer
92 views

Puppet Firewall string rate limiting not working for Asterisk

I have an Ubuntu 16.04 server and using Puppet 5 with Asterisk 14.6.0 running. I'm trying to implement the string rate limiting rules as described in the link below but it's not working. The CLI ...
0
votes
0answers
21 views

Puppet agent could not use the latest version of epp template

I am using r10k to manage my puppet code base. All worked fine, but the epp template file updating. I have modified a template file and deployed it with r10k, and doubled checked the puppet server to ...
1
vote
0answers
297 views

How to escape/quote a dollar sign `$` in an env var in a php-fpm pool?

As symfony4 uses dotenv and environment variables for configuration, they are also needed on the server. to pass the variables it is possible to add the following to the pool config: example-pool....
1
vote
0answers
192 views

Overriding Puppet class parameters with hiera

Im trying to use heira to override class parameters in puppet. I have this class: class test( $parameter1="codeddefault" ) { notify {"parameter1 is $parameter1": } } This is my hiera.yaml: ...
1
vote
1answer
49 views

Fetch puppet scripts on client side

I do not have access to puppet server. But i can log on ssh ok target servers (clients). Is there a way to log puppet scripts on target server? I want to know which operation have been done on each ...
0
votes
1answer
219 views

Encrypting properties with “eyaml edit” without a private key?

I would like to use eyaml edit to edit my Puppet/Hiera configuration files. My configuration files are a mixture of encrypted and plain text content. I want to use eyaml edit to encrypt certain ...
0
votes
0answers
60 views

Puppet Apache module class Illegal expression A Type-Name is unacceptable as function name in a Function Call

I am trying to set up puppet 3.8.7 with future parser enabled to work with the supported apache module from forge.puppetlabs.com i get the following error "Error: Could not retrieve catalog from ...
0
votes
1answer
16 views

Cannot run an “initialise” function in Puppet after installing package

OK I have been working on puppet for 12 months, I am deploying a manifest to install the "aide" package, but I cannot see any option to trigger the 'initialise' of aide after install of the package. ...
0
votes
1answer
33 views

puppet syntax multiple node includes different roles

Is it possible to set multiple nodes to includes different roles? Like this node_modules.pp: node 'puppet-appserver.dev' { include role::app_server } node 'puppet-dbserver.dev' { include role::...
1
vote
2answers
300 views

puppet adding timestamp in file content

super new to puppet. Could not find good example of how to add timestamp in a file puppet.pp node '123' { file { '/tmp/hello': content => "hello world", } file { '/tmp/timestamped': ...
0
votes
1answer
107 views

Error on Puppet Enterprise text mode install - pe.conf contains errors

I started puppet enterprise installation on CentOS image and it worked fine with guided install. Now, I am trying with text mode install with similar CentOS image and I get error to check pe.conf file....
1
vote
1answer
138 views

Puppet caching resources

I'm trying to debug a caching issue with Puppet on RedHat 7. My versions are at the bottom of this question. Below is an excerpt from my site.pp manifest. This is all fine and the Nagios check is ...
0
votes
0answers
116 views

Deploying Django with Puppet and Nginx

I'm trying to deploy a django application with puppet and nginx, but I'm having trouble figuring out how to configure nginx to serve static files while Gunicorn is running. Current I have nginx::...
0
votes
0answers
88 views

Use of Foreman with Puppet's hiera_include

I am evaluating Foreman (version 1.16), and am wondering whether the following observations about its capabilities for integrating with Puppet are correct: Foreman can import Puppet class definitions....
1
vote
1answer
82 views

Puppet not passing parameter to custom module

So I have a custom module that just sets up a simple nginx server, to learn how to properly make puppet modules. But it seems that my values when I declare the class aren't getting passed in. It ...
1
vote
0answers
135 views

Module not executing with r10k/puppet on masterless system

I was following this guide to set up a masterless puppet machine that could use puppet to manage itself (in a way that would let me add nodes and use this as the master later, but that's irrelevant ...
1
vote
1answer
283 views

Using Foreman's host groups in hiera.yaml :hierarchy section

Does anyone know how to set a correct path in :hierarchy section of hiera.yaml config to apply configuration to Foreman's host groups? I tried to use this settings with %{::hostgroup} variable, but it ...