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

Puppet, server migration, restore existing persistent data

Thing that confuses me about configuration management tools such as Puppet is that they're great and straightforward for setting up server from scratch, but what every documentation neglects is the case where I have existing data (e.g. PostgreSQL…
woky
  • 245
  • 3
  • 10
0
votes
1 answer

Add multiple IPs for one host into /etc/hosts with puppet

I manage my hosts with puppet. Hosts run dual stack IPv4 and IPv6. I want to add both addresses to /etc/hosts. When I would add it by hand my /etc/hosts file would look like this: 192.0.2.1 hostname.example.com hostname 2001:db8::1…
Clemens Bergmann
  • 305
  • 1
  • 4
  • 13
0
votes
1 answer

Puppet: Copy folder recursively - preserving mode?

With puppet I realize I can copy folders recursively and set permissions on individual files recursively. But I have a source folder with (many, many) files each with carefully configured permissions. How do I do the puppet equivalent of: cp -a…
Peter V. Mørch
  • 852
  • 7
  • 15
0
votes
1 answer

How would I modify an existing line in the sssd.conf file with puppet?

Very new to puppet here. I want to be able to modify group members that are allowed to authenticate via LDAP to our servers. This is done by modifying the "simple_allow_groups" line in the "sssd.conf" file. How would I have puppet append a string…
GregH
  • 291
  • 1
  • 2
  • 15
0
votes
2 answers

How to use custom facts with rspec Puppet

Is there a way I can use a custom fact while using rspec? My module works fine and the custom fact exists and works as intended when I do a puppet run on my agent, but when I try to use the same fact in rspec I get the following…
AndreasKralj
  • 331
  • 1
  • 6
  • 16
0
votes
1 answer

Workaround to no `puppet module generate`?

Is there a way to continue using puppet module generate? I'm using Puppet version 4.10 and earlier I was able to make one without issue, but today when I tried to make one I got the following error: Error: This action has been replaced by Puppet…
AndreasKralj
  • 331
  • 1
  • 6
  • 16
0
votes
1 answer

Puppet -- if condition according to current status of machine

I am trying to write an if clause to do something according to the current status of a machine. I understand according to puppet's philosophy catalogs evaluate and push to the machines before they run in machines. To keep consistency I would like…
Ehsan
  • 1
  • 1
0
votes
1 answer

How to get the Zabbix Puppet module to work with SELinux

I'm writing a Puppet module to install Zabbix onto a Puppet agent. Everything is working as intended, but SELinux isn't playing nicely with Zabbix. I'm getting the following error from SELinux in the audit log: type=AVC msg=audit(% audit_id): avc: …
AndreasKralj
  • 331
  • 1
  • 6
  • 16
0
votes
1 answer

puppet client side set variable if file exists on client machine

novice question here. I know it is similar to others here but i am not finding i can apply those answers in my case i have 2 servers that are blades and 2 that are regular rack mount servers. a puppet script runs on all 4. i want to set a specific…
jodlgc
  • 25
  • 4
0
votes
1 answer

puppet best practices: share variables among profiles

I'm using the roles&profiles approach for my current puppet project. The puppet best practices tell me: Expose all necessary profile parameters in the main class parameter list. Perform hiera lookups to fill in those parameters (having default…
0
votes
0 answers

Delete a file if it is empty using puppet

i want to delete a file "/root/abc" after ensuring if /root/abc file is empty. file { '/root/abc' : ensure => absent, content => '', } But this is not working.. can anybody help me in this ?
vishu
  • 1
  • 2
0
votes
1 answer

Get a daily digest of Puppet state change

I am currently learning to use Puppet v.6 in a master-agent configuration (I am using the open-source version). I come from Ansible and SaltStack background, so although some concepts are familiar, there are others that are very Puppet…
James
  • 123
  • 6
0
votes
1 answer

Why manifest file is not available in my puppet master

I'm very new with puppet. For initial setup, I have configured puppet master and agent in my Ubuntu 18.04. The configuration has been completed and I can see cert has been exchanged between master and slave. But, I didn't find the puppet manifest…
sat
  • 17
  • 3
0
votes
1 answer

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 same list to automatically create a plain text…
0
votes
2 answers

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 file conntent. My current config files looks…