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

learn more… | top users | synonyms

-1
votes
0answers
25 views

How to identify where duplicate host infomation is occuring in puppet

So I'm fairly new to puppet, making my way through understanding everything and sometimes I get an issue where upon trying to run puppet agent -t it just outputs an error about a duplicate like so: ...
0
votes
0answers
18 views

DPKG error when installing puppetserver

I want to install Puppet 4.2 on a Ubuntu 14.04 Trusty and when installing puppetserver through apt-get I get the following error near the end of the installation: dpkg: error processing archive ...
0
votes
2answers
86 views

Vagrant: missing destination file operand after ‘/etc/exports’

I'm running Vagrant 1.7.3 with an Ubuntu 14.04 basebox, and I want to try out the new Puppet 4.2.0. However, when I run vagrant up on an empty VM, I get the following error: cp: missing destination ...
0
votes
0answers
17 views

A puppet configuration style for users

I want to set a configuration managment utility for users, like puppet but for users, I need to install one package or another or apply one manifest (in puppet) in order of the user that is logged in ...
1
vote
1answer
41 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
44 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
1answer
25 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
104 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
63 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
17 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
265 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
76 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
34 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
112 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
60 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
133 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 ...
1
vote
1answer
393 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
127 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
89 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
518 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: ...
2
votes
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
389 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
2answers
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
494 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
630 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
74 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
2k 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
2k 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
305 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
37 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
219 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
315 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
2answers
832 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
355 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
392 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
161 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
829 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
871 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
4k 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
168 views

Puppet. Firewall module syntax

What mean "->" in puppetlabs examples on this page
0
votes
1answer
268 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
465 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": ...