Questions tagged [puppet]

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

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: * http://www.puppetlabs.com/puppet/introduction/

119 questions
38
votes
2 answers

Verifying a SSL certificate's fingerprint?

I'm toying around with a Puppet agent and a Puppet master and I've noticed that the Puppet cert utility provides a fingerprint for my agent's public key as it has requested to be signed: $ puppet cert list "dockerduck" (SHA256)…
Naftuli Kay
  • 38,686
  • 85
  • 220
  • 311
11
votes
2 answers

How can I manage puppet.conf with Puppet?

I use puppet to manage linux servers and various services. It works well, except for the puppet service itself. My puppet class is like this : class puppet { file { "/etc/puppet/puppet.conf": owner => 0, group => 0, mode => 0644, …
Coren
  • 4,970
  • 1
  • 24
  • 43
8
votes
2 answers

Determine FQDN when hostname doesn't give it?

In another question, I found that Puppet was generating certificates for my machine's FQDN but not the simple host name. In that example, kungfumaster was the hostname and was the value retrieved by running hostname. Puppet was generating…
Naftuli Kay
  • 38,686
  • 85
  • 220
  • 311
7
votes
8 answers

awk or sed command to match regex at specific line, exit true if success, false otherwise

I need to determine if a file contains a certain regex at a certain line and to return true (exit 0) if found, and otherwise false. Maybe I'm overthinking this, but my attempts proved a tad unwieldy. I have a solution, but I'm looking for maybe…
Otheus
  • 5,945
  • 1
  • 22
  • 53
6
votes
1 answer

dpkg: warning: 'ldconfig' not found in PATH or not executable - Ubuntu 12 - Vagrant

I am working on setting up a Vagrant / Puppet install so that new developers can have a clean development environment for our Rails project. The basic Vagrant configure commands are: config.vm.box = 'precise32' config.vm.box_url =…
Dave Collins
  • 163
  • 1
  • 1
  • 5
6
votes
4 answers

Manage only a section of a config file with Puppet (multiline file_line)

There is a config file e.g. /etc/network/interfaces. I want to manage only a certain section of that file using Puppet. Example: # At the beginning at least is some dynamic content that can be different # from machine to machine and changed by an…
Alex
  • 321
  • 1
  • 4
  • 10
5
votes
6 answers

Can we install puppet without touching the servers?

I heard that puppet need to be installed on server side, not just desktop side, from where we want to launch commands on the servers. My question: Are there any other methods for using puppet? I mean we don't want to install it on server side, just…
evachristine
  • 2,603
  • 10
  • 39
  • 55
4
votes
2 answers

Authconfig contiously rewriting the /etc/sysconfig/authconfig file, messing up Puppet run

I have been using this LDAP module for a long time in my Puppet environment. The module uploads these files to the…
ujjain
  • 348
  • 1
  • 6
  • 14
4
votes
1 answer

Are any large-scale services based on NixOS or Guix System?

Following the permeation of virtualization and containerization through world of network services, various tools and systems have emerged for provisioning and orchestrating such systems from templates with applied custom overlays. However, most…
brainchild
  • 330
  • 2
  • 16
4
votes
1 answer

Should I add certificates to /usr/share/ca-certificates?

I try to automate to adding a certificate on an Ubuntu server 14.04 with puppet or a one liner command. I added certificates manually with these commands : mkdir /usr/share/ca-certificates/extra cp toto.crt…
3
votes
2 answers

Python-friendly machine configuration management systems

Are there machine configuration management systems akin to: Puppet Chef which are natively, or at least intimately, Python-friendly? Any recommendations with supporting evidence and/or backing reasoning as to why? (The two systems above have a…
Maroloccio
  • 145
  • 6
3
votes
1 answer

Command not found when run as sudo

I'm running centos7. I installed puppet. if I write puppet as a user, I get a proper output. If I write sudo puppet I get command not found. The really weird thing is, if I do sudo su - and become root, then write puppet, I get the normal output…
iamAguest
  • 483
  • 1
  • 6
  • 17
3
votes
1 answer

Why is a variable in a `require`d module not always available?

I've got three module manifests in separate files (stripped down to bare essentials): class users { $user = 'foo' user { $user: ensure => present; } } class dvcs_cli { require users file { "/home/${::users::user}/.gitconfig": …
l0b0
  • 50,672
  • 41
  • 197
  • 360
3
votes
2 answers

How to check and run a script if it's not running?

I created a pretty simple script called main_start_script that will run 2 python programs in background, code is: python /opt/cuckoo/cuckoo-2/cuckoo.py 1>cuckoo_script/cuckoo_start.txt 2>&1 & python /opt/cuckoo/cuckoo-2/utils/web.py…
Xiechen
  • 31
  • 1
  • 1
  • 4
3
votes
1 answer

How do I manage resolv.conf with Puppet and NetworkManager?

I have some hosts that have explicitly managed resolv.conf files. I have others that rely on NetworkManager, which does many things including writing the resolv.conf file. Is there a consistent way to manage this information with Puppet, such as…
1
2 3 4 5 6 7 8