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
1 answer

Puppet not pulling Hiera value

Learning Puppet and Hiera and I've run into a roadblock. I apologize in advance if this is something simple. Given the following files within my GitLab for the PuppetClass es_strat: hiera.yaml --- version: 5 defaults: data_hash: yaml_data …
Tronyx
  • 1
  • 2
0
votes
1 answer

Desired State for MsSQL and IIS (puppet or chef)

In our infrastructure, some developers/consultants change some mssql or iis configurations without any notification which cause us problems. For example, if somebody change mssql recovery simple to full our backup agent cannot take any backup. I…
Emre
  • 33
  • 3
0
votes
1 answer

Puppet install php-xsl module on red hat 7

I need to install php 5.6 and some php modules on a Red Hat 7.4 server which is managed using puppet. Here's my init.pp file: package {"epel-release": provider=>rpm, ensure=>installed, install_options => ['--nodeps'], source=>…
0
votes
2 answers

Where does dependency User[root] (has failures) arise in Puppet manifest

The following Puppet manifest is meant for installing a binary and a systemd service description file, for starting the binary as a service, and for restarting the service when either the binary or the service description changes. class…
rookie09
  • 623
  • 1
  • 6
  • 17
0
votes
1 answer

Puppet Invalid parameter string on Firewall

Using the Firewall module version 1.9 in puppet 3.8.7, I am getting the following error: Error 400 on SERVER: Invalid parameter string on Firewall Here is my Puppet Firewall rule. firewall { "051 asterisk-set-rate-limit-register": string =>…
markhorrocks
  • 513
  • 3
  • 10
  • 26
0
votes
2 answers

puppet iptables string rate limiting

Does puppet firewall support the string module? I need help to implement the following iptables rules in puppet but can't find any documentation or examples on how to do this. iptables -I INPUT -p udp -m udp --dport 5060 -m string --string…
markhorrocks
  • 513
  • 3
  • 10
  • 26
0
votes
1 answer

Apache server proxy fcgi to php server

I have an Apache(2.4) webserver and a php (7.1) server running on Ubuntu 16.04 LTS. I am trying to setup a puppet manifest to create a vhost on the apache server and then each time a php server request is received by the webserver, the apache server…
TeNaJ Systems
  • 73
  • 1
  • 1
  • 10
0
votes
1 answer

puppet variables set in exec environment not accessible elsewhere in the class

I'm trying to configure a logging figuration with log paths based on a check to see if that log file exists. However, the if statements always return true even though I know /var/log/hermes/hermes.log doesn't exist. I have tested the exec…
0
votes
1 answer

Why am I unable to add an Alias to my Vhost via the Puppet Apache Module?

Here is the snippet from my manifest: apache::vhost { 'default-http': port => 80, serveraliases => ['example.test.com', 'example2.test.com',], docroot => '/var/www/html', rewrites => [ { comment => 'Bounce…
david
  • 135
  • 7
0
votes
2 answers

Which puppet module should I include for a managed database mysql::client using netmanagers/bareos?

When I include the following in my nodes.pp: class {'bareos': ... manage_database => true, ... I get the following error: ==> bareOSdirector: Error: Could not find class mysql::client for bareosdirector on node…
leeand00
  • 4,869
  • 15
  • 69
  • 110
0
votes
1 answer

Restart service before all resource have been applied

I want to setup and configure Apache via Puppet and request a SSL certificate with acme_tiny.py. My Puppet classes and resources for the web server and for acme-tiny work in most case, except for the first start. Unfortunately, acme_tiny needs a…
0
votes
1 answer

Multiple site.pp for the same nodes

I need to write multiple site.pp file for the same hosts. It gives me the following error Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Node 'default' is already defined at line 2; cannot redefine at line 2 on node…
Zama Ques
  • 523
  • 1
  • 9
  • 24
0
votes
2 answers

SOLVED - Unable to install foreman-proxy on CentOS 6.9

Puppet [root@ns1 ~]# puppet --version 4.10.1 Repositories (used Foreman 1.12 as the next versions are not supported in Centos 6) [root@ns1 ~]# yum repolist enabled Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base:…
Oleksandr
  • 1
  • 3
0
votes
1 answer

how do create puppet file directory resource using variable in the name so that it does not add brackets around the name []

When I try the following in my manifest. $profile = hiera('duplicity::profile', 'test123') file { [ "/tmp/${profile}" ]: ensure => directory, owner => root, group => root, } I have the following defined in the heira for that…
nelaaro
  • 644
  • 4
  • 10
  • 27
0
votes
1 answer

puppet class not inheriting variable from site.pp node definition

I have the following puppet setup (pretty simple): /etc/puppet/manifests/site.pp: node 'node.my.domain' { $nodeclass = 1 notify { "(INFO) nodeclass = $nodeclass": } class { "foobar": } } /etc/puppet/modules/foobar/manifests/site.pp: class…
J. Graham
  • 1
  • 1