3
votes
1answer
30 views

Puppet: how to run an exec only if puppet has made changes

We are doing basic management of some servers via puppet - The servers themselves run as part of a clustered system that handles other aspects like user accounts etc and includes a monitoring script ...
0
votes
2answers
26 views

Puppet node does not pull changes from master

I have followed the following three How-To's http://terokarvinen.com/2012/puppetmaster-on-ubuntu-12-04 https://help.ubuntu.com/12.04/serverguide/puppet.html#puppet-installation ...
0
votes
1answer
32 views

Management of system directory in linux using git

I'm using puppet to manage my linux systems. I have to use /etc/puppet directory to keep manifest files instead of user home directory, and I want to manage them by git. But because /etc/puppet's ...
0
votes
1answer
35 views

Manage workstations with Puppet and TheForeman

I'm building an IT infrastructure for managing all the workstations in my company. I am interested in Puppet and a external node classifier as The Foreman, but I see all the time that Puppet and The ...
0
votes
1answer
54 views

Install php 5.5 on centos with puppet

I am trying to get a more recent version of php and mysql on a centos 6.5 x64 box. I added the yum repos epel and remi and have the remi as a dependency for php but it will not install. The error I ...
2
votes
0answers
33 views

A testing framework for Linux server configuration management

We are a medium sized shop that uses Puppet for Linux configuration management. Since we are a small shop, it's difficult to deploy and maintain DTAP environment. We normally perform manual testing ...
3
votes
1answer
82 views

“net ads join” fails in puppet exec but runs OK directly from command line

I have the following exec that joins a Linux (CentOS 6) host to an Active Directory domain. When run as root from the bash terminal, it runs successfully and the host is joined to the AD domain ...
2
votes
1answer
16k views

How to disable user's password via puppet securely?

I have my SSH servers setup to use only Public Key authentication with password authentication disabled. When adding users through puppet I would like to disable user passwords. So far I have came ...
1
vote
1answer
38 views

puppet apply and extlookup

I still use extlookup (Yes, I know that it's deprecated :-( But I can't find time to move to hiera). My problem - I need to move from puppet master/puppet agent setup, to puppet apply that is run ...
0
votes
2answers
83 views

Finding a user's home from bash

I'm trying to get the value of a user's home from a puppet script. This particular user is a Samba user, not a local one, with the username of the form DOMAIN\user. I've tried the following, with no ...
2
votes
0answers
83 views

Need a PHP version manager to deploy multiple versions of PHP on production servers [closed]

I'm currently running a few LAMP stacks, where I've setup PHP 5.2, 5.3 and 5.4 by hand. All servers are running Ubuntu 12.04 LTS. 5.3 is currently installed via apt-get but all other PHP versions are ...
3
votes
1answer
119 views

puppet doesn't remove old mount entry in /etc/fstab

I defined a simple class for mount a nfs share on host as follow(current) class mounts { file { [ "/mnt/share", "/mnt/share/share1" ]: ensure => 'directory', } mount { ...
1
vote
2answers
75 views

Puppet - 2.7.x - Set SGID

Im trying to puppetize a module which will ensure I have the same path on servers for storing local log files for custom web applications. As such I would like to set the SGID to ensure that even if ...
0
votes
1answer
140 views

Recreating CentOS environment with Vagrant

I have a Vagrant and CentOS related question. I'm trying to replicate a CentOS server which uses WHM/cPanel for hosting. Each site on the server is hosted in /home/$user/. This means with Vagrant I ...
2
votes
0answers
58 views

puppet node keeps adding itself to the master

Im at the start of learning puppet. So far I successfully setup my master with dashboard and a couple of agents. But on one of my testing nodes I made a mistake when adding the node. I added it twice ...
3
votes
2answers
169 views

Best way to exclude node from puppet manifest

I would like to exclude a few nodes from a manifest. I've read "How to exclude Puppet modules for a few nodes?", but I would like to achieve something similar to ...
4
votes
1answer
100 views

Why would Puppet exclude a file resource without error?

The oddest thing is happening during this Puppet run (using Puppet Apply) and it has me perplexed. I've tried my usual channels to find solutions but I cannot find anything on the topic. I apologize ...
0
votes
1answer
100 views

Puppet agent not following `server` setting

I have a very strange issue with Puppet 2.7.18 (on a Raspberry Pi) that started all of the sudden. In simple terms, the agent only partially follows the 'server' directive in puppet.conf. The ...
0
votes
2answers
100 views

How to add multiple checks of OS for a package in puppet

I have mixture of CentOS , 5.8, 5.7, 6.1, 6.3 , 4.7 Ubuntu, Debian, servers with me. I want all of them to have nrpe installed on them. the problem i am facing is that when i write puppet code to ...
1
vote
1answer
140 views

puppet onlyif with pgrep does not work

I want to use an exec in puppet onlyif its process is NOT running exec { "execute me": onlyif => "pgrep -fc 'ruby execute.rb'", command => "execute me", } So on the above case, if ...
0
votes
1answer
36 views

How Puppet handles manifests in terms of processes?

I want to find out how Puppet handles manifests: in master process or Puppet forks it to execute in child process? It necessary for me to know what exactly do puppet master while handling manifests, ...
-3
votes
1answer
48 views

What is best way to convert existing installation of linux to puppet

I have centos 6.4 running on aws on ec2. I has installed all moudles , plugins , libraries etc myself manually. Bow i want to convert that configuration into puupet. But i don't know how to do ...
2
votes
1answer
149 views

How to manage Linux servers and tasks?

As a developer who is managing more and more Linux servers for my various projects and tasks, I'm starting to seriously think about how to manage these servers efficiently. I have come up with such a ...
1
vote
1answer
23 views

Compact Node Definition

I created a new module for my autofs mounts using defined types so I can specify as many new mounts in my node definitions as needed. So for example my node definition looks like the following: node ...
0
votes
2answers
146 views

Using case statements with notify in Puppet

class mymodule::scripts::os_check { case $operatingsystem { /(?i-mx:centos)/: { notify("You are using CentOS")} /(?i-mx:.*)/: { notify("You are using non-CentOS OS") } } } Why does this ...
0
votes
1answer
76 views

foreman undefined method active_record

i am trying to install foreman manually on centos 6 database.yml production: adapter: mysql database: foreman username: foreman1 password: foreman host: localhost socket: ...
2
votes
1answer
104 views

Reporting tools for auditd [closed]

I need to set up auditing in my environment, specifically file integrity monitoring. I've tried OSSEC, but found it cumbersome. I've since discovered auditd (already installed on my CentOS 6 system) ...
27
votes
5answers
1k views

How can a Linux Administrator improve their shell scripting and automation skills?

In my organization, I work with a group of NOC staff, budding junior engineers and a handful of senior engineers; all with a focus on Linux. One interesting step in the way the company grows talent is ...
0
votes
1answer
169 views

Automating Unbreakable Linux Network (ULN) registration

To register a RHEL 6.4 machine to the Unbreakable Linux Network (ULN), it is required to launch the uln_register command. This command opens a textual interface, where the user has to input the ULN ...
0
votes
1answer
132 views

When should Passenger, Unicorn, and Rack be used? [closed]

Reading about Puppet often Passenger, Unicorn, and Rack are mentioned, but I can't figure out what the purpose of these are. The website for Passenger says: Phusion Passenger is a web server and ...
1
vote
2answers
377 views

puppet create certificate with fqdn

hostname on the client is dns01.srv.acentauri.net.uk, however when I run puppet agent -t Info: Creating a new SSL key for dns01 Info: Caching certificate for ca Info: Caching certificate_request ...
3
votes
1answer
79 views

puppet inserts two lines as one into a configuration file

I've created the next Puppet manifest file: node 'puppetmaster' { package { "screen": ensure => "installed"} $enhancers = [ "pixman","pixman-devel","libXfont","tigervnc-server" ] ...
2
votes
3answers
208 views

Can I use puppet on an existing Linux server?

I want to learn puppet but I am confused with one thing. I have already installed many python modules, apache modules, PHP plugins etc. Can I convert all that into puppet so that in my new server the ...
0
votes
2answers
323 views

Puppet client not connection to master - SSL connect Error

I installed the puppet master and agent on the same machine. When the client is started, I got the following error message. puppet agent --server=agent.com --no-daemonize --debug err: Could not ...
1
vote
1answer
148 views

How auto configure or mirror my dev Ubuntu installation onto other dev machines?

I have a lot of packages and configurations done to setup my dev machine. I have other developers in my team and want them to have the same setup to start with to ensure compatibility and availability ...
0
votes
2answers
158 views

Using Puppet to manage shell commands

For example lets attempt to let Puppet install the opengeo-suite. To do something like wget -qO- http://apt.opengeo.org/gpg.key | apt-key add - echo "deb http://apt.opengeo.org/suite/v3/ubuntu lucid ...
2
votes
2answers
142 views

What is the lowest udp source port for puppet dns queries?

On CentOS 6.4 and 6.3 I have seen puppet regularly use ports below 32768. This is contrary to the setting for kernel-assigned ports according to: cat /proc/sys/net/ipv4/ip_local_port_range 32768 ...
2
votes
2answers
512 views

Puppet “file” resource emptied a directory

I'm in the somewhat embarrassing position of having unintentionally deleted multiple TB of important data via Puppet, and I'm just trying to understand why this might have happened. Firstly, I'm ...
1
vote
4answers
992 views

Randomizing minute for crontab entries between servers

I have a common puppet recipe for a set of our servers. One of the puppet-managed files is /etc/crontab that contains the original cron.daily, cron.weekly and cron.monthly entries. The problem of the ...
0
votes
1answer
162 views

puppet user module not updating /etc/group on servers

i am using the puppet user module, its able to create the users and add them to the correct group, however i have moved one user to another group and puppet moved the user to that group on the remote ...
2
votes
2answers
3k views

Puppet Enterprise 2.7 - Error 400 on Server - Error 403 on Server - Can't puppet agent -t without the following error?

Running into an issue using two VM's running REL6. I set up the master and agent correctly and was able to cert the agent. When I go to run: puppet agent -t On the agent, I receive the following ...
1
vote
1answer
3k views

Force to apply changes through puppet on a puppet agent, through master?

Is it possible that i can issue a command from master pupet, to a node, to run agent and apply the latest configuration to it? Like,i have lost password for a user and i am not able to login, but ...
1
vote
2answers
814 views

How to maintain site.pp with many nodes?

I keep all my nodes in one file, site.pp - but as I add more and more nodes, it's very difficult to maintain them. Import directive looks very promising, but as I understand docs, it's necessary to ...
2
votes
2answers
1k views

how to pass parameters to puppet modules?

What is the best practice for configuration of puppet modules? I have puppet 2.7.11. I find this way quite messy, it looks like using global variables. node default { $always_apt_update = true ...
0
votes
1answer
180 views

Cloning and deploying existing Linux builds via Chef, Puppet, etc

Is Chef, Puppet, etc able to be pointed at an existing Linux server and suck down 100% of the 'stuff' that would be required to build the server OS/package-versions/custom-files/etc including the ...
0
votes
1answer
404 views

puppet environment variable $PATH is not set

I'm trying to install a module with puppet 2.7 on Debian 6.0 and I keep getting this error: returns: change from notrun to 0 failed: Could not find command 'tar' this is the relevant code: file ...
4
votes
1answer
69 views

Easily recreate a server's “state” [closed]

I want the ability to setup new servers for dev/testing/prod very easily. The reasons for being able to setup a new dev VM is obvious, but for prod my concern is adding a new production ...
5
votes
2answers
427 views

Puppet sometimes can't find standard facts like osfamily

Quick brief - for testing purpose, I installed puppet agent on 5 nodes (Debian Squeeze + puppet 2.7.20-1puppetlabs1), and puppet master on 1 server (same version). On puppetmaster side in every ...
4
votes
6answers
249 views

Monitor servers for changes made outside of automation software

The company I work for is currently investigating the deployment of an centralized automation system (like Salt or Puppet) for our servers (all Ubuntu/FreeBSD). We will probably go along with Salt, ...
1
vote
3answers
3k views

Puppet error when testing manifest

Prefix: I searched this out, but the fact that there are any number of things that can cause this problem, I have been unable to find a solution to this particular case. I have a puppet master ...