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

learn more… | top users | synonyms

0
votes
1answer
18 views

How to use puppet to format a partition with a file system

With a filesystem such as ext4 or xfs. But how can we make sure it doesn't do it again and again on each run. I want it to do just on the First Run
0
votes
0answers
13 views

Puppet Agent certificate issue

When iam trying to connect to master server from client this is what iam getting:- puppet agent -t Error: Could not request certificate: Error 400 on SERVER: The environment must be purely ...
2
votes
1answer
34 views

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

What belongs in site.pp, and what should be moved out of it? [closed]

So far I've been putting everything in site.pp. This causes the file to become long and cluttered. Should I be doing this, or should I move stuff out of site.pp and into external files, and then ...
0
votes
0answers
30 views

Puppet managed home directory

We use puppet to manage users in our production ubuntu servers and user home directory is managed by puppet. Until recently puppet was not removing the user home directory when an user is ensured ...
0
votes
3answers
96 views

Puppet doesn't ignore whitespace

I have an entry that may or may not appear in /etc/rsyslog.conf: # Added for Kiwi *.err;*.emerg;*.alert;*.warning;*.debug;*.notice;*.crit;*.info @10.19.24.50 Since some of these servers ...
0
votes
0answers
12 views

'Undefined method `map' for “pip2”:String' error when applying Puppet manifest

When trying to apply a Puppet manifest by running sudo make install I get the following error message on only one of two up-to-date Arch Linux machines: Error: Failed to apply catalog: undefined ...
1
vote
1answer
72 views

Puppet: Forcing user to change his password at next login

I am using `users' resource to create unix accounts and then set a default password. For this I have written the following manifest . node 'node2.example.com','node3.example.com'{ user { 'askar': ...
1
vote
1answer
33 views

users resource in Puppet not updating /etc/shadow

I have written a manifests using users resource as shown below node 'node2.example.com','node3.example.com'{ user { 'ash': ensure => 'present', managehome => 'true', comment => ...
1
vote
1answer
19 views

Applying hosts resource in puppet to update /etc/hosts

I am new to puppet, trying with the host resource to update /etc/hosts on node2.example.com with the below entry master.example.com 10.134.39.245 node2.example.com 10.134.39.246 For ...
1
vote
0answers
18 views

When do you have to define a class in puppet?

I noticed that whenever classes are defined in puppet, they refer to external modules. If you are doing something in site.pp and not referencing any external modules, would you ever still define a ...
0
votes
0answers
33 views

puppetlabbs/firewall on centos 7.2

I'm trying to do this (with Puppet CE 4.3.2 and the puppetlabs/firewall modules from the forge): firewall { '110 allow http/https access': dport => [80, 443], proto => tcp, ...
0
votes
0answers
44 views

augtool saving failed

I am trying to set some parameter using augtool but getting strange error Linux$ sudo augtool set /files/etc/abrt/abrt-action-save-package-data.conf/OpenGPGCheck no error: Failed to execute command ...
0
votes
0answers
42 views

How do I get a manifest to run from my Puppet Master server to a Puppet Agent node?

I am trying to run a Puppet manifest for the first time on two new servers. But I keep getting errors. I recently set up two CentOS v7 servers. They have passwordless SSH between them. Ports 22, ...
0
votes
0answers
28 views

Modifying yml file through augeas

I am trying to modify/set /etc/elasticsearch/elasticsearch.yml file in puppet manifest through augeas resource but it is not working. Can someone explain what lens file i should specify ? and ...
0
votes
1answer
24 views

Deploying a package through puppet from URL

How can i install a package through puppet by using the URL of the .tar.gz of the package on centos 6 client. Is there any native support in puppet without installing anything extra on the puppet ...
0
votes
1answer
79 views

How do I apply a manifest from a Puppet Master server to a Puppet Agent node server?

I installed Puppet Agent on a CentOS 7 server. I installed Puppet Master on a different CentOS 7 server. I'm using the free version of Puppet on both servers. The Puppet Agent server requested a ...
0
votes
1answer
184 views

using puppet to format a disk/volume

When I provision a new virtual machine with centos6, it does most of the configuration through puppet. But I have to manually run the command #mkfs.ext4 /dev/vdc to format /dev/vdc. Is there any way ...
-1
votes
1answer
39 views

Puppet agent certificate error after rebuilding openstack instance

I have an open-stack instance vm , and puppet agent was working fine on it. By running the command puppet agent -t, it was good. But for some reason i had to rebuild the instance by using the ...
0
votes
1answer
62 views

How to use Hiera data from source repository?

I've got a masterless Puppet setup and I'd like to simply add information such as package names based on $::osfamily for portability. It seems Hiera is made for this sort of thing, but I can't figure ...
0
votes
1answer
261 views

Puppet Master: TCPServer Error: Address already in use - bind(2) - WEBrick 1.3.1

I rebooted Puppet Master several times but always this error [root@puppet-master04 ~]# service httpd restart Stopping httpd: [ OK ] Starting httpd: ...
0
votes
1answer
37 views

increasing puppet storeconfigs timeout

I have a small cluster consisting of a fileserver and six nodes. The six nodes need to be 100% identical, so I'm using puppet to manage them. There's a few reasons why I want to be able to use ...
0
votes
1answer
233 views

PM2 inside bash script deployed by puppet not working

#!/bin/bash # install needed RPMS yum -y install gcc-c++ git # downlaod and compile node wget https://nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gz tar -xvzf node-v0.12.7.tar.gz cd node-v0.12.7 ...
5
votes
8answers
668 views

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. ...
0
votes
0answers
61 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
728 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
23 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
131 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
245 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
155 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
185 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
111 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
1answer
33 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
672 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
260 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
51 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 ...
2
votes
1answer
221 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 ...
2
votes
1answer
359 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 ...
2
votes
1answer
804 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
172 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
1answer
801 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
3k 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: ...
3
votes
3answers
3k 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
659 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: ...
8
votes
2answers
6k 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 ...
6
votes
2answers
4k 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
803 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
849 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
105 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
2k 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 ...