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 - using hiera parameters in a top scope manifest file

I have a site.pp file which looks like this: Package {allow_virtual => false,} stage { 'pre': before => Stage['main'] } stage { 'post': require => Stage['main'] } resources { 'firewall': purge => true } node default { …
RikSaunderson
  • 207
  • 4
  • 13
0
votes
1 answer

runinterval not working for Puppet Agents

I am running puppet agents on windows. I am trying to change the interval of Puppet Agent check-in with the Server. on puppet master, i modified puppet.conf file and added runinterval = 5m under agent section. I then restarted pe-puppet service.…
Asdfg
  • 109
  • 1
  • 13
0
votes
1 answer

Foreman: Pass host comment to puppet

In the Foreman there is the ability to set a comment for hosts. I would like to pass this comment to a puppet class assigned to these hosts so that the comment can be printed in the motd of the hosts. Is there a way in which I can pass the comment…
Sander Toonen
  • 113
  • 1
  • 6
0
votes
1 answer

Is it possible to write a test in rspec-puppet to check if registry exists?

I am trying to install .net framework 4.5.2 using puppet module using exec resource instead of using Package resource due to some reason. I want to write a test case to check if it is installed or not. The only way I could find to check if it is…
Ankita13
  • 101
  • 1
0
votes
2 answers

Puppet doesn't configure MySQL

I have a following Puppet class using puppetlabs/mysql module: class hg_playground::makowals::brains::db { class { '::mysql::client': package_name => 'mariadb', } $override_options = { 'mysqld' => { 'log-bin' => '', …
0
votes
2 answers

Puppet agent fails to find test module

I'm setting up a puppet master and agent. They are running on the same host, as I want puppet to manage this host, too. The agent fails to find the convenient test module that the package provides. I'm running ubuntu trusty (14.04 LTS) and…
jma
  • 425
  • 6
  • 16
0
votes
1 answer

Easiest way to view puppet reports on pending (i.e., --noop) changes

My Puppet environment consists of a master and numerous agents which are run manually via the invocation of puppet agent --test. I am attempting to find the easiest (i.e., human readable, at-a-glance type reporting) way to view reports on what hosts…
0
votes
1 answer

Puppet: managing multiple users without repeating myself

When I add a user to my puppet configuration, I end up copy/pasting something like this: user {'jeff': ensure => 'present', groups => ['sudo', 'supervisor'], require => [Group['sudo'], Group['supervisor']], home =>…
jma
  • 425
  • 6
  • 16
0
votes
2 answers

Puppet Ochestration: get results of puppet run

How can i get results of puppet apply -t --noop in some script readable way? Are there any resources to apply? I suppose there should be something better then GREP :) Making some modification to the underling puppet infrastructure and i would like…
0
votes
1 answer

Puppet-Foreman: Hosts are not updated on default runinterval, what could be the cause?

Linux servers in my company are configured and managed by Puppet which installed with Foreman. While looking at the Foreman dashboard I can see that 95% of the servers appear as synced and updated (blue icon) and 20 servers which have no known…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
0
votes
2 answers

Puppet: Cannot find class cron

I'm using Puppet 3.4.3. I'm trying to use the cron type to manage cron jobs (as documented here: https://docs.puppetlabs.com/references/latest/type.html). However, any time I try and run my configuration: Error: Could not retrieve catalog from…
BnMcG
  • 500
  • 2
  • 5
  • 12
0
votes
1 answer

Using hiera to include modules in example42/apache

I'm trying to set up a puppet configuration for work (open source version), and my goal is to create a sort of standard class that most of our servers could just use with a simple hiera_include in the manifest. I'm trying some apache puppet modules…
Ulrar
  • 387
  • 6
  • 23
0
votes
1 answer

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 can sign the key on the master and begin to run the…
BnMcG
  • 500
  • 2
  • 5
  • 12
0
votes
2 answers

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. Ran yum update Next, I've made sure the relevant…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
0
votes
1 answer

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 an autoscaling group with Windows Base Image I…