Puppet is a configuration management tool (Unix & Windows) with its own Domain Specific Language (Puppet or Ruby DSL)
2
votes
2answers
45 views
How can I use Puppet to maintain SSH host keys across system rebuilds?
I have a few lab environments where the computers get rebuilt on a periodic basis but need to keep the same ssh host keys so that the people who connect to the lab computers (often from their own ...
1
vote
1answer
13 views
How to optionally include a parameter in a Puppet class instance
I'm trying to optionally include a parameter in a puppet class instance. If a value is provided, the parameter should be passed to the class, and if it's empty it shouldn't be.
This the code I have ...
1
vote
1answer
32 views
Puppet generates errors every time a module changes
I have a trivial puppet 2.7.18 installation as follows:
=== manifests/site.pp ===
node build-1 {
include mod1
include mod2
include mod3
}
=== modules/mod1/manifests/init.pp ===
import "*"
=== ...
0
votes
0answers
12 views
Are there additional wildcard escaping rules with Puppet and Augeas (setm)?
I'm trying to perform a setm operation with Augeas via Puppet. This works in augtool:
augeas { 'disable ntp from dhcp':
changes => 'setm /files/etc/sysconfig/network-scripts/*[label() =~ ...
0
votes
1answer
29 views
Puppet won't detect augeas
Puppet version: 3.1.1
When attempting to use activemq module:
package {'openjdk-6-jre-headless':
ensure => present,
}
class {'activemq':
version => '5.8.0',
user => ...
0
votes
0answers
15 views
How to delete “ad hoc” resources created with “puppet resource” from state.yaml?
I can use puppet resource from my puppetmaster host to execute arbitrary commands in my puppet clients, like this:
puppet resource --host my.host.name \
exec random_name command="/usr/bin/touch ...
7
votes
6answers
221 views
Is Puppet or Chef suitable for managing very basic server config in a multi tenant environment?
This relates to multi-tenant environments such as a small hosting company.
Is Puppet (or similar) a suitable technology for taking care of basic but critical mass changes? For example:
Updating DNS ...
1
vote
1answer
27 views
puppet parameterized classes and hiera
I'm running puppet open source 3.1.0 from the puppetlabs repos on RedHat Enterprise Linux 6 and using hiera 1.1.2. I'm running into what seems like either a bug or a fundamental misunderstanding on my ...
0
votes
1answer
31 views
Puppet File and Service Comands Not Running on Client
Solved!!
So here is the answer - I had sites.pp not site.pp Thanks @Shane Madden
debug: importing '/etc/puppet/manifests/nodes.pp' in environment production
If you are including nodes.pp in your ...
0
votes
1answer
32 views
Puppet - Ensure cent base repo is present
Using a puppet manifest, how do you ensure the official cent 'base' repo is present.
Example to add an internal cent repo
http://seriousbirder.com/blogs/how-to-create-a-puppet-yum-repo-module/
...
1
vote
2answers
33 views
How do I manage puppet nodes with different module versions?
I have a setup where we would like to have puppet manage installation and configuration of our software across several servers, but be able to install different versions of the software on different ...
1
vote
2answers
31 views
Puppet generating variables inside script
I'm migrating a set of bash scripts that deploy a server to Puppet. Almost all of the functionality has been moved into Puppet, but I can't see how to migrate one bit of the bash script that does the ...
1
vote
0answers
31 views
Puppet agent (v3.0.1) hangs connecting to master (v3.1.1) in VM behind firewall (with NAT based access) - SOLVED
I am using puppet agent v3.0.1 (On FreeBSD), trying to connect to a puppet master v3.1.1 (On Ubuntu) and the puppet agent hangs with the following debug output:
puppet agent --debug --no-daemonize
...
1
vote
0answers
21 views
Puppet Error - Must pass puppet_server to Class[Puppet::Agent]
I am receiving the following error using a puppet module on my Puppet master to manage both master (Apache / Passenger) and agent
[ashinn@puppet1 ~]$ sudo puppet agent --test
Info: Retrieving plugin
...
0
votes
1answer
27 views
Puppet make parameters optional and assign default if null
You can pass in parameters into puppet like so.....
class foo ($install_version) }
#checkout git branch depending on $install_version
}
How do you set a default value of $install_version if no ...
1
vote
1answer
51 views
Can't generate certificate for puppet-dashboard
I can't generate the cert for use with puppet-dashboard. The dashboard is running on the same host as the puppet-master, both of which are running under apache/passenger. The servername is "mon1", but ...
1
vote
1answer
21 views
Change config file by puppet - depend hostname
I want to push some config file to my all servers by puppet. File is almost the same for all servers, but there is one change - hostname.
I've created module in puppet with manifest and ...
0
votes
1answer
27 views
Puppet error on already installed package on centos
I am using puppet on CentOS for the first time.
I have the following in one of my .pp files:
package {"openjdk-6-jdk":
ensure => installed,
}
Which generates the following error when ...
0
votes
3answers
29 views
Puppet include/require a puppet lab's module
How do you create a puppet manifest that 'uses' one of the modules on the puppet forge?
class foo {
include puppetlabs-git (<- this doesn't work)
...
1
vote
1answer
51 views
puppet ignores ENC classes
I am using a ruby script to retrieve the class parameters and my YAML output is as below:
classes:
tomcat_install:
tmp_dir: /tmp
tomcat_home: /tmp/tomcat6
puppet.conf is as below:
...
1
vote
1answer
37 views
Install a New Package Using Puppet 3.1.1 on Solaris 10?
I'm pretty new to Puppet and Solaris, and I'm running into an issue installing a package on a Solaris 10 VM using Puppet. As part of my testing, I wanted to see if I could install Java 6 update 43 on ...
1
vote
2answers
57 views
Puppet Master in VIrtual Machine with Port Forwarding (SSL certificate error?) - SOLVED
I am trying to run a puppet master on a virtual machine, and connect from a client machine, via port forwarding on the virtual machine's host.
The details
I have a virtual machine running Ubunto ...
1
vote
1answer
41 views
Puppet agent on FreeBSD skipping runs
I am experimenting with puppet and we are using FreeBSD on some servers. I noticed that the agent on the FreeBSD is for some reason skipping runs, i.e.:
May 6 09:19:15 eagle puppet-agent[66970]: ...
0
votes
1answer
66 views
Puppet(-master) 3.1 after wheezy upgrade
Today I've updated a Puppet client and a Puppet master to Wheezy.
For some reason, Puppet client was updated to version 3.1 but the master stayed at 2.7. So I've installed the latest stable version ...
1
vote
0answers
28 views
Make nginx stop accepting incoming connections when upstream is not available
I am running the following Puppet setup:
Two puppet masters,each running nginx and uwsgi as a backend. Load balancing and HA between the two puppet masters is done via simple DNS round robin. The ...
0
votes
1answer
35 views
How to have Puppet enforce enabled reporting?
For Puppet clients to report results back to the master server, "report = true" needs to be in the "[agent]" section of the client's puppet.conf. But how can I get Puppet to enforce that?
It's ...
1
vote
2answers
78 views
Extending Puppet (probably with augeas) for custom configuration format
I have a custom firewall system with our own simple configuration file. Its basically bash source defining a well known variables:
SUPERACCESS="127.0.0.1 192.168.11.0/24"
SERVICES="ping 80/tcp ...
20
votes
5answers
946 views
Why use Chef/Puppet over shell scripts?
New to Puppet and Chef tools. Seems like the job that they are doing can be done with shell scripting. Maybe it was done in shell scripts until these came along.
I would agree they are more readable. ...
0
votes
2answers
58 views
Using hiera to access facts of another node
What we're trying to do is generate firewall rules (puppetlabs/firewall) for iptables. Our nodes are grouped like so conceptually:
-- site1
---- shared1
------ specific1
------ specific2
---- shared2
...
1
vote
0answers
75 views
Puppet + HAProxy Configuration
I am trying to get HAProxy running. I have the puppet master setup serving configurations to two agents. One is the HAproxy server and the other is a simple web server (certname=webserver2). HAproxy ...
0
votes
1answer
52 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 ...
1
vote
1answer
33 views
Puppet - Split - Get last element of variable size array
Anyone know a clever way to get the last element of an array within a puppet manifest?
Existing code looks like:
class nginx {
define vhost {
#-----
# Init vars
#-----
...
0
votes
1answer
32 views
Puppet-Labs Apache Module Set Operating System type
I'm new to Puppet and having some trouble with the Puppet-Labs Apache Module http://forge.puppetlabs.com/puppetlabs/apache. I'm using it in conjunction with Vagrant as a serverless setup (if that ...
0
votes
1answer
46 views
Puppet Packages in one go but without a repository
I am trying to get puppet going for a couple of VMs, my intention is to install jdk6 and tomcat 6 using puppet but i cannot use yum as the machines are not connected to the internet, if it was a ...
1
vote
1answer
30 views
How can I use Puppet/Augeas to manage exim dc_local_interfaces configuration?
I need to set the value for "dc_local_interfaces" to "127.0.0.1;::1", but the semi-colon prevents this.
This is my definition in Puppet:
augeas { "/etc/exim4/update-exim4.conf.conf":
lens => ...
6
votes
3answers
142 views
Puppet & Puppetmaster for development on VMs
I'm in the situation where I am constantly spinning up new vms for development. I've got a base image that i can clone but it quickly gets out of date and you have no method of adding a change across ...
0
votes
0answers
13 views
How to get/ test variable datatype in puppet
Given a variable, I'd like to do different things depending on whether it is a string or an array.
Is there any way to get or test a variable's datatype in puppet?
0
votes
2answers
68 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 ...
1
vote
2answers
113 views
Some puppet modules are not found when running master/agent but work with puppet apply
I have installed puppet 3.1.1 from the Puppet Labs APT repository on Ubuntu 12.04. I installed the ploperations-puppet module from Puppet Forge to manage the puppet agent config and package ...
3
votes
1answer
58 views
Puppet: Service must be down to change config files
I have an issue with puppet.
I need to define a service with "ensure=>running" but its config files can only be changed while the service is stopped. The default behaviour seems to be that the ...
1
vote
1answer
48 views
Puppet uses the hostname as a variable value
I have this simple function:
define e::x($x = $title) {
file {$x:
path => "/tmp/${x}",
ensure => present,
}
}
I use it like this:
e::x {"xxxx":}
And yet the file created is ...
0
votes
3answers
47 views
How to automate deploying to a local vm? [closed]
We've got a large number of RPMs in RHEL 6.2. Each RPM is a part of the product written using a combination of python, ruby, and (mostly) c++. For example:
foo.x86_64 1.0.0
bar.x86_64 1.2.0
...
0
votes
1answer
29 views
Is there a way to specify versions for programs using Vagrant and Hosted Chef?
I am trying to improve my development workflow but am running into some major roadblocks. Currently, we develop on local Windows machines running XAMPP then after tested on an individual machine, push ...
0
votes
1answer
90 views
Puppet provider does not install prerequisites
I have cloned a module for virtual machines, but when I try to apply a virtual machine to a node, I get Error: Could not find a suitable provider for virt, which is understandable given that the ...
2
votes
2answers
66 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 ...
0
votes
1answer
70 views
Why does puppet check for some packages every time I run it?
Every time I run puppet on my ubuntu server, I get this:
notice: /Stage[main]/MyCompany::Role::MyApp/Package[ncurses-dev]/ensure: ensure changed 'purged' to 'present'
Every. Single. Time. Why ...
0
votes
1answer
78 views
Could not call sign: Could not find certificate request for puppet
I'm getting started with puppet on ec2 using the following guide.
https://help.ubuntu.com/12.04/serverguide/puppet.html
In the very last step when I try to sign the puppet client from the puppet ...
3
votes
1answer
50 views
Puppet: Create directory on nfs share with root_squash set
I have an NFS share on a server, that belongs to user barack. barack can write in this share, and root can't, because of the root squash feature
I tried creating a directory for barack on the share ...
1
vote
1answer
62 views
Puppet: build DNS file from node config (or: how do I iterate over node variables globally)
I also use puppet for my nodes. I am also running a (BIND) dns server.
Would it be possible to use the $aliases variable I have for each node in a template for the DNS module?
My nodes look like ...
0
votes
2answers
26 views
directory not created from puppetmaster
I am struggling to create a directory on the client from the puppetmaster.
I am using a mine module called push_file and got this structure
/etc/puppet/modules/create_dir/
└── manifests
├── ...
