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

learn more… | top users | synonyms

1
vote
1answer
20 views

Automate to adding certificate for ca-certificate

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 ...
1
vote
1answer
25 views

Unable to run the script in cron via manifest

I am trying to deploy a script to agents and run the script using cron every hour. When I am running puppet agent -t I am getting error: Error 400 on SERVER: Invalid parameter path on ...
0
votes
0answers
15 views

best method for automated patch deployment to multiple hosts [closed]

Can someone please provide the best solution for patching multiple Debian 8 systems? I know of puppet and I have been experimenting with this. We are using Debian 8 and we would like to know if ...
0
votes
0answers
19 views

Is it easy to move an SSHFS share on machines with Puppet Agent? [closed]

My boss says that Windows drive letters make things easier because they can just be mapped to a GPO and the UNC paths updated on the mapped drives instead of updating all the shortcuts one by one. ...
0
votes
1answer
11 views

/var/lib/puppet/state/agent_catalog_run.lock exists

I'm seeing the following error on CentOS 6.4: # puppet agent --test Run of Puppet configuration client already in progress; skipping (/var/lib/puppet/state/agent_catalog_run.lock exists) What ...
1
vote
2answers
62 views

When puppet, chef or ansible are simpler solutions than package manager?

I'm new to above deployment and configuration tools. I have typical need to install and upgrade on a target machine a customized and configured webserver, maybe reverse proxy, database, required ...
1
vote
1answer
50 views

Prompting for a password on sudo?

I'm creating users using Puppet. Here's the gist of what I'm doing in Puppet: user { 'ntkay': name => 'ntkay', uid => 10000, home => '/home/ntkay', managehome => true, ...
2
votes
0answers
15 views

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 ...
1
vote
1answer
197 views

Puppet-enterprise-install fails basename: missing operand

I just downloaded the puppet enterprise installer for my OS version from the puppetlabs website and the installer seems to fail immediately. Couldn't find anything online so I would appreciate any ...
1
vote
1answer
43 views

How to delete all files in a directory except some globs using Puppet?

Spell checkers unfortunately don't come packaged for regions, so after installing English, French and German dictionaries I get this huge collection: $ find /usr/share/myspell/dicts/ -name '*.dic' | ...
1
vote
1answer
32 views

Possible to deliver centrally configured login scripts on Linux?

In Windows you can assign login scripts to users which run whenever they log into a system which allowing admins to do things like map drives/printers and generally do anything for which there isn't a ...
1
vote
0answers
23 views

Extract configuration from linux and emulate in fresh copy of same linux [closed]

I have a short project on emulating linux distros. The project involves extracting system-wide configuration i.e packages, services, configuration files of services, users informations from a linux ...
2
votes
1answer
82 views

Where does Puppet's environment come from?

Self-training on puppet and wrote the following manifest: class bratch::test { file { '/var/cache/tempFile': owner => 'root', group => 'root', mode => '0644', source ...
0
votes
0answers
48 views

Git, puppet `file` type and symlinks

I'm working on merging two puppetmasters into one. Configurations for each are kept in its own git repository. puppetmaster1 must go, and all the hosts must be handled by puppetmaster2. In ...
2
votes
1answer
104 views

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 ...
0
votes
1answer
295 views

How to get non-zero exit code from Puppet when configuration cannot be applied?

I've tried the following Puppet configuration to disable the root password: class users { user { 'root': password => '*', } } But after applying it with no warnings or error messages I ...
1
vote
1answer
110 views

“Pipe” command to new bash shell?

I want to add my private key to the ssh-agent and I'm following these instructions. According to this the command ssh-agent bash spawns a ssh-agent bash and I can add my key afterwards using ...
0
votes
0answers
74 views

Problem with NFS and Vagrant

I have two different VMs (which I configure with Puppet and run using Vagrant) and one of them is not able to mount a NFS folder from a shared network folder while the other is. The error: mount.nfs: ...
0
votes
1answer
454 views

puppet mount a loopback device

I was taking truability test to assess my skills. I got the below question. Create a puppet manifest in /root/puppet/lad.pp to mount the filesystem located in /root/files/LAD/disk.ext2 that: will ...
2
votes
2answers
2k views

How is PATH set for users in puppet?

I'm having an interesting problem which I was able to work around by manually specifying PATH. The problem is that although my root user's PATH is: ...
1
vote
3answers
1k views

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 ...
1
vote
1answer
313 views

Puppet Master not serving out/reading manifests

I have a really strange issue with my Puppet Master. I can't seem to get it to serve my manifests properly. I have installed manifests in two locations: ...
3
votes
1answer
2k views

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 ...
5
votes
2answers
2k views

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 ...
0
votes
1answer
416 views

Generating server and client certificates with multiple hostnames

When starting up my Puppet Master for the first time, it automatically generates its own server certificate, which is awesome. My server's hostname is kungfumaster and the Puppet Master generates a ...
3
votes
1answer
542 views

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 ...
2
votes
0answers
66 views

Git and Puppet Master Lifecycle

I'm looking to setup a Puppet Master which hosts its configuration in a Git repository. I assume that I'd host my Puppet Configuration in a Git repository centrally organized on a Git hosting ...
1
vote
1answer
1k views

Puppet, managing two depending file resources?

I cannot figure out, how to deal with case when I have 2 resources managed by puppet, depending on each other (one is parent of another), and both are set to be absent. Test case below. Directories ...
4
votes
6answers
1k views

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 ...
2
votes
1answer
1k views

Creating a Vagrant box with Docker installed

I'm trying create a nice playground for Docker in Vagrant based on Vagrant's precise64 box. (Code is available at GitHub: rfkrocktk/docker-vagrant-playground) Here's my Puppet provisioning ...
0
votes
1answer
261 views

enable IST timezone in puppet

I'm trying to run below Puppet manifest to set 'IST' timezone. class { 'timezone': timezone => 'IST', } When I run Puppet apply timezone.pp, it installs properly. But when I check the system ...
2
votes
1answer
35 views

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 ...
1
vote
2answers
205 views

Ensure /etc/export contains rule using bash

What's a working example of modifying /etc/export using bash? Example: I want to ensure the following rule is present and valid: /export/home 2400:123::/32(rw,no_root_squash) And it should: Add ...
2
votes
1answer
291 views

Manage LXC containers from host in puppet

Is there any puppet modules for manage nodes in LXC containers from local host? E.g.: I have host with 50 LXC containers and I want to manage all those containers from host directly, not from another ...
1
vote
3answers
2k views

apache not starting in vagrant vm

I used Puphpet.com to create a Vagrant VM to be used for web development. The problem I am having is that the VM cannot start apache on boot. $ sudo /etc/init.d/apache2 start * Starting web server ...
3
votes
1answer
765 views

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 RHEL-servers: /etc/openldap/openldap.conf /etc/pam_ldap.conf /etc/nsswitch.conf ...
1
vote
1answer
1k views

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, ...
0
votes
1answer
312 views

How can I make a Puppet module that fixes time? [duplicate]

I have written a Puppet module that corrects the time via NTP, but this only works on server with a small NTP offset. There are sometimes server with a time offset higher than 10 minutes for various ...
3
votes
2answers
376 views

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 ...
4
votes
1answer
4k views

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 ...
2
votes
0answers
151 views

Ubuntu : puppet f5 device config : Partition '' doesn't exist

This is a Puppet question that I've posted on the PuppetLabs forums with no response. I'm also posting here because I'm hoping that with a wider audience I might find someone knowledgeable re Puppet ...
2
votes
1answer
790 views

Managing (Dynamic) DNS Zone Files with Puppet (Solved)

I'm running a Debian 7.0 (Wheezy) server and I have a dynamic DNS setup wherein my clients make DHCP requests and the DHCP server updates the DNS zone files with whatever IP was assigned to each ...
1
vote
2answers
835 views

puppet certificate catching error

After installing puppet master and client, when I request for catalog, I am getting the following error: [root@INFINI-ONE puppet]# puppet agent -t warning: peer certificate won't be verified in this ...
1
vote
1answer
3k views

Installing puppet on RHEL6

While installing puppet on RHEL6 I'm getting the following errors. Though I have installed ruby gems, I'm getting problems with ruby gems dependencies. How do I solve this problem? [root@INFINI-ONE ...
0
votes
1answer
161 views

Puppet. Firewall module syntax

What mean "->" in puppetlabs examples on this page
0
votes
1answer
256 views

Generate nodes.pp using hiera in puppet

I have a environment that has several environments like production staging etc . Now what i want is that I can re-use the nodes.pp written for one environment for the other. Example - Suppose I ...
1
vote
1answer
451 views

Customize Emacs Ruby Mode for PuppetLabs conifguration

I predominantly use emacs for editing my Puppet configuration files. I use the following settings in my .emacs to load Ruby mode and use it for Puppet config files (*.pp): (autoload 'ruby-mode ...
11
votes
2answers
4k views

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": ...
0
votes
1answer
96 views

Finding Stalled or Failed Updates on System

I was wondering if there is a way to grep through systems to find old updates that have stalled or failed. I am using RHEL 6.