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: How to fix "Unknown function hiera_include"?

I've installed Puppet using the foreman-installer and it installed successfully. Then, I wanted to install Hiera as I have some modules which use hiera functions so I've installed hiera and created a relevant hiera.yaml file in /etc/puppet which…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
0
votes
2 answers

Puppet - Automatic provisioning with Vagrant VMs

I have three virtual machine that I have created using Vagrant. This virtual machine have as box ubuntu/trusty64. I have created all VMs in the same Vagrantfile as single project. To provision it, I have used Puppet. For now, the three vms use…
Juan Garcia
  • 181
  • 4
  • 8
0
votes
1 answer

Puppet Postgresql Module ERROR 400 Invalid parameter onlyif

I have a module named oss_puppetserver that has an init.pp and a database.pp. The database.pp class is enabled/included/assigned via hiera for a host, the module itself makes use of the existing puppetlabs-postgresql module that is deployed to…
Orbital
  • 191
  • 1
  • 1
  • 8
0
votes
0 answers

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, } service { 'apache2': ensure => running, …
Garreth McDaid
  • 3,449
  • 1
  • 27
  • 42
0
votes
1 answer

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 scheme is similar to: bldg-50zx022-1.domain.tld.…
AWippler
  • 1,065
  • 1
  • 12
  • 32
0
votes
1 answer

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 master? When I try service pe-puppet restart It says…
Sam Hammamy
  • 189
  • 5
  • 17
0
votes
1 answer

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 that? As to the why: my boss wants it like…
0
votes
0 answers

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 usually prefer to use the hiera autolookup…
sinned
  • 473
  • 2
  • 6
  • 15
0
votes
1 answer

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 => '"akka.tcp://ActorSystem@host1:2551","akka.tcp://ActorSystem@host2:2551","akka.tcp://ActorSystem@host3:2551"' Now in my erb file min-nr-of-members…
danny.lesnik
  • 135
  • 1
  • 5
0
votes
3 answers

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 the configuration I have set, e.g. I have taken the…
W Khan
  • 58
  • 7
0
votes
1 answer

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(......) } apache::base{ "static-files":} apache::base{ "dynamic":…
Mikhail T.
  • 2,338
  • 1
  • 24
  • 55
0
votes
1 answer

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 client creates a local copy of the config files in…
cachonfinga
  • 230
  • 1
  • 6
0
votes
1 answer

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 manifest: node default {} node "subscriber" { …
Balas
  • 11
  • 2
0
votes
1 answer

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 updates, tarball updates, zypper updates, apt-get…
Mugambo
  • 41
  • 5
0
votes
1 answer

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 workbench mySQL client tool from workstation…