Questions tagged [puppet]

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

Puppet is a configuration management tool for Unix and Windows. It works either standalone mode (puppet apply) or in client-server mode (puppet agent) with puppet agents running on client systems checking in with the master daemon on the server on a regular basis. Puppet's written in ruby, and puppet source code, i.e. puppet manifests, uses its own domain-specific language that focuses on declaring the system resources and it's intended state.

Combined with system provisioning tools (PXE, kickstart, FAI, etc), puppet can fully automate any software installation and configuration process that doesn't require a GUI interface.

More info:

Related:

1792 questions
0
votes
2 answers

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 used the following: redirectmatch_dest => …
0
votes
1 answer

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 in what is going to be the master server (Ubuntu…
0
votes
1 answer

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 started writing a quick step to step guide for our…
0
votes
1 answer

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 resource, it shows me an error with Unknown resource…
0
votes
1 answer

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: Evaluation Error: Error while evaluating a Function…
Diamond
  • 1
  • 1
0
votes
1 answer

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 use the Forge-like installation commands - they…
AndrewL
  • 191
  • 4
0
votes
1 answer

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 server deployment. I am using a standard nginx…
Husk Rekoms
  • 217
  • 1
  • 4
  • 15
0
votes
1 answer

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 serverfarm are managed with Puppet. As it is now,…
Frisbee57
  • 27
  • 1
  • 3
0
votes
1 answer

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 thing to pull from one of the .yaml files that I…
geoffjay
  • 131
  • 5
0
votes
2 answers

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 docroot: /home/my.example.com/web logroot:…
nn4l
  • 1,336
  • 5
  • 23
  • 40
0
votes
1 answer

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://forge.puppet.com/puppetlabs/dsc/readme however there…
Laywah
  • 99
  • 7
0
votes
1 answer

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 working well. However, when I put variables in Hiera,…
drksnw
  • 1
0
votes
1 answer

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 install gcc-c++' returned 1: Error: Package:…
sam
  • 1
0
votes
1 answer

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 to describe them) .. In the snippet below I have…
gbt
  • 23
  • 3
0
votes
1 answer

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 console is showing rapid scripted REGISTER requests.…
markhorrocks
  • 513
  • 3
  • 10
  • 26