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/

121 questions
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
  • 5,010
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
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,613
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
  • 51,350
3
votes
1 answer

Instantaneous Puppet Deployments with MCollective

Note: I'm not sure where this question belongs. Perhaps it would belong better on Server Fault, but as I'm primarily asking for hacking and home-networking purposes, I'm asking here. Plus it'd probably get flame-trolled off the site in less than…
Naftuli Kay
  • 39,676
3
votes
1 answer

Name of "notified by" resource from "notified" resource in puppet

Let's say I have this manifest bit in Puppet: file { "/whatever/file": notify => Exec["some_script"] } Is there a way to get "/whatever/file" from "some_script"? Or in other words, how can I get the name of a resource that notifies another from…
rsuarez
  • 902
2
votes
1 answer

How can I enable a service only when it's installed in Puppet?

I was said to use the onlyif-parameter, but there doesn't seem to exist one for the service-type. What can I do to enable this service only if it's installed? It's installed with a binary installer, so testing if the installation directory exists…
ujjain
  • 348
2
votes
1 answer

How to ensure that a user is a member of a group using Puppet

Importantly, I want nothing more or less than this. I want to manage only a limited set of groups for a limited set of users, without ever changing any of their main groups or removing any other group memberships. Is this possible without resorting…
l0b0
  • 51,350
2
votes
1 answer

When you use puppet, how do you separate the provisioning and maintenance code?

So say you're using puppet. Initially you might use the puppet server to set it up with a puppet agent to setup your server (you might, then again you might use images, but I'm using puppet). Let's say that the initial provisioning goes well and…
leeand00
  • 4,615
2
votes
1 answer

Puppet: Could not request certificate

When I start puppet agent I get this error Could not request certificate: Could not intern from text/plain: Certname "puppet ca: localhost/localdomain" must not contain unprintable or non-ASCII characters Both puppet master and agent versions are…
MTA
  • 131
2
votes
1 answer

How to print a custom warning at the *end* of a Puppet run?

Verbose Puppet runs are verbose. To make sure the user notices a custom warning message, it would be good to print it only at the end of the run. Is this possible without major breakage of the Puppet execution model?
l0b0
  • 51,350
1
vote
0 answers

Do I only need to run command at once on puppet

I would like to run below command in puppet at one time for example if i had a one directory(/tmp/example) which contains example-releases-88.99.05-rc1.tar.gz file only coming at certain point. Only on that time need to move new…
1
vote
1 answer

Access fact of a system from another

Is it possible to access facts of one system from another system via any built-in puppet command? I tried to do that with puppet facts find "node_certificate" but its not working (instead I get facts of the same system on which I'm running the…
Rajnish Kumar Soni
  • 1,047
  • 2
  • 13
  • 20
1
vote
1 answer

How to remove old client keys in Puppet

I am trying to install puppet 6 on the agents and add them to the new puppet 6 master. As a part of this task, I a need to remove old client keys on the agent nodes: find /var/lib/puppet/ssl/ -type f | xargs rm but that throws an error so obviously…
Irina I
  • 89
1
vote
1 answer

Puppet shows a different version to the puppet-agent package version

Why puppet showing different versions in system: [root@localhost ~]# puppet --version 4.7.0 [root@localhost ~]# puppet agent --version 4.7.0 But rpm shows diff version for agent and server [root@localhost ~]# rpm -qa | grep…
Rajnish Kumar Soni
  • 1,047
  • 2
  • 13
  • 20
1
2 3