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
187 views

Making logrotate remove old logs after reducing 'rotate' value

I'm trying to reduce the number of log files kept for Apache by reducing 'rotate 52' in /etc/logrotate.d/apache2 to 'rotate 8'. With weekly rotation this should keep 2 months of logs instead of a full ...
-1
votes
1answer
30 views

Duplicate declaration on Puppet server

I can't override parameters of a class in my manifest. Puppet version on both machines is 3.7.5. I use thias-postfix. I even can't execute the example from the Readme.MD file. Below is my site.pp ...
4
votes
3answers
4k 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
1k views

How to add a puppet module to Gepetto, when using git?

I followed some "best practices" from Puppet 2.7 Cookbook and created agent - puppet master framework, with git cvs. Unfortunately, the book doesn't cover Gepetto, so I am forced to improvise that ...
1
vote
1answer
40 views

Puppet agent on Windows unless doesn't work how I think?

Ok, I've spent days chasing this around. Is there an issue with puppet agent 3.7.1 x64 on Windows 7 x64 where execs with "unless" don't ever NOT run the command? I've tried doing Batch example: ...
-1
votes
0answers
18 views

“Unable to connect with proxy” when connect via foreman

I have one machine (master) that has puppet and foreman installed. Everything was running OK, until I restarted foreman-proxy. Now when I try to access the proxy, refreshing features for example, I ...
1
vote
1answer
28 views

puppetserver timeout cannot find key

Fresh install on Centos (tried both 6 and 7) from the PC1 repo. Starting puppetserver munchs away at my RAM for a few minutes then fails with this error: Exception in thread "main" ...
3
votes
1answer
53 views

any sense in having multiple, distinct puppet masters?

I am wondering is whether it makes sense to have a single machine connect to multiple, distinct Puppetmaster instances. My use case is that i have different privilege level I want to grant to server ...
-1
votes
1answer
52 views

Puppet - mysql module not pulling “my.cnf” from fileserver

Trying to deploy mySQL puppet. Using "Puppetlabs-MySQL" module. My puppetmaster'd pp has node 'jira.oracle' { class {'mysql::server':} } class mysql::server { package { "mysql-server": ensure ...
1
vote
1answer
30 views

Puppet Master: Multiple agents with same hostname

I'd like to use Puppet master to configure multiple development VMs with Vagrant: eg: vagrant creates a new box and provisions it using Puppet agent. However, some testing seems to show that Puppet ...
3
votes
1answer
35 views

What's a good load balancer check for puppet master

We are running a couple of Puppet Master version 3.7 (Not PE) on AWS EC2 instances behind an Elastic Load Balancer (mainly for high availability). Currently the load balancer's check is just TCP ...
3
votes
1answer
81 views

Satellite 6's puppet is unable to find the hiera data sources

Using Satellite 6 which comes with Foreman 1.6.0.53. By default, Puppetlabs' documentation states that hiera configuration should be in $config/hiera.yaml. # puppet config print confdir hiera_config ...
1
vote
2answers
31 views

Optionally pass parameter to puppet using hiera

We're using the roles/profiles pattern. In the example below I'd like to optionally pass a parameter from hiera so that if no value is provided then the ::apache class default is used (which it gets ...
5
votes
2answers
1k views

How to manually create Puppet CA and certificates?

I am wondering how to manually (using openssl instead of puppet ca command) create CA that would be usable by Puppet? The goal would be to script creation of such CA's to deploy them on multiple ...
1
vote
1answer
26 views

Puppet unable to send facts to Foreman - “tlsv1 alert unknown ca”

I recently updated Katello to 2.2 and Foreman now to 1.8.1, and it appears somewhere in the upgrade that Puppet now cannot contact Foreman: > [root@virt5 ~]# puppet agent --test info: > ...
-1
votes
0answers
22 views

Config management for NFS root cluster [on hold]

I'm running a Linux cluster where each node PXE boots from a NFS share (read only). Configuration on system boot is done by scripts within initrd and in /etc/rc.d/ (manually created). System updates ...
14
votes
2answers
1k views

Puppet and launchd services?

We have a production environment configured with Puppet, and want to be able to set up a similar environment on our development machines: a mix of Red Hats, Ubuntus and OSX. As might be expected, OSX ...
2
votes
1answer
25 views

Puppet: How to use a set of common packages but allow exceptions?

I have about 200 more or less identical Linux VMs. There is a class for all common configuration: class my_packages { class { "::ntp": servers => [ "de.pool.ntp.org" ], } ...
1
vote
1answer
26 views

Multiple agents on one host

Is it possible two run multiple puppet agents with different user rights on one host? I have a server which should be administered by two non related users through puppet. (one user account for the ...
0
votes
1answer
29 views

Puppet master log not created in configured location

Below is my puppet master puppet.conf file [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter certname = puppet ...
-1
votes
0answers
90 views

new pp for JIRA<>mySQL

Getting "Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find template 'jira/etc/rc.d/init.d/jira.erb' at ...
0
votes
0answers
18 views

writing module for fisheye/crucible

I'm in the process of writing a init.pp file to automate installation of Atlassian fisheye/crucible. But I'm keep running into "Error: Could not retrieve catalog from remote server: Error 400 ...
-5
votes
1answer
32 views

init system vs configuration management [closed]

Best practice: What tasks would you give to an init system like systemd vs a configuration management system like ansible? What I like about starting up services with a CM is portability across ...
4
votes
3answers
605 views

Update puppet master certificates automatically on new certificate

i am in process to set up a number of stateless nodes. Each node is provided with the same OS image file. It fetches the hostname from the DHCP/DNS server during boot time. Next step is to acquire ...
-1
votes
1answer
22 views

In Puppet deployment, do all agent nodes have to be connected to an Internet repository?

Or does the master cache the repository from the internet and provision for the agent nodes? In either case, how are updates deployed and managed? What pre-empts what? Edit: How are rpm updates, yum ...
0
votes
1answer
24 views

Puppet - mySQL not remotely accessible upon setup (workbench)

I used Puppet's mySQL module to bring it up like this. The workstation ip is 172.16.1.49 and JIRA(mySQL) VM is 172.16.1.47 (Puppet Master is 172.16.1.80); I'm trying to access mySQL server using ...
0
votes
1answer
26 views

ec2_metadata fact not updating

I have added a "role" value to my instance metadata (I'm running on Openstack). I see it in curl http://169.254.169.254/openstack/latest/meta_data.json, but it is not appearing in the ec2_metadata ...
3
votes
1answer
190 views

Configuring Puppet to set up Cinder with GlusterFS

I've spent quite some time now attempting to configure Puppet so that it will setup Cinder to use GlusterFS as the backend, rather than the LVMISCSI backend, but I haven't had any luck. Versions: ...
1
vote
1answer
107 views

Getting the error “Error 400 on SERVER: Invalid parameter” when defining a type for a yumrepo

I am trying to define a type to create yum repos. I want to be able to pull the data from common.yaml and have this define pull in that data and act upon it. I have not gotton that far and I am ...
1
vote
2answers
884 views

Problem getting puppet to sync custom fact

I am having trouble getting puppet to sync a custom fact. I am using puppet version 0.25.4. The fact is inside a module as described in http://docs.reductivelabs.com/guides/plugins_in_modules.html If ...
1
vote
2answers
1k views

How to get Run Puppet button working on Foreman?

First of all, I know there is already a very similar question here on serverfault, but it doesn't quite answers my problem. So, my setup is the following: I have one server, running Ubuntu 14.04 LTS ...
1
vote
2answers
20 views

How to append to the same variable with augeas run via puppet?

I have the following resource declaration to set the setenv.sh file via augeas in puppet. augeas {'test': lens => 'Properties.lns', incl => '/tmp/setenv.sh', changes => ...
4
votes
1answer
78 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 ...
0
votes
1answer
60 views

Failure trying to manage apt sources with Puppet

I'm trying to get Puppet to manage my Debian apt sources.list, however, catalog compilation fails with this error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: ...
2
votes
1answer
45 views

Transform \n to new line although input variable is single quoted in Puppet

If a variable is double quoted and it contains a \n $test="hello\nworld" file { '/tmp/hello': content => $test } then a new line is created: /tmp/hello hello world Problem What to ...
3
votes
1answer
5k views

Uninstalling/Upgrading Puppet

The questions below are all related to the topic of uninstalling/upgrading Puppet: How do I uninstall previous versions of puppet? What files do I need to delete and where are they located? Is there ...
0
votes
1answer
27 views

Puppet Agent - launching as sudo

I'm having issues getting my Puppet agent to launch. I will be using the agent with the --onetime parameter as I want to agent to pull its configuration rather than the Puppet Master pushing. I am ...
4
votes
1answer
71 views

Can puppet update package to latest minor release?

For example I have php-fpm installed: Name : php-fpm Arch : x86_64 Version : 5.4.16 Release : 23.el7_0.3 Size : 4.5 M Repo : installed From repo : updates ...
0
votes
1answer
36 views

Apache configuration resulting in recursive /index.html

I'm using puppet to configure Apache, and have a problem. I'm trying to serve a simple front page, with links to 2 subpages for Kibana and Uchiwa. I'm trying to use http://server/logging for kibana, ...
1
vote
0answers
63 views

Puppet node no picking up hiera parameter from global.yaml file

I am using Foreman, Puppet and Hiera to provide parameter data for my nodes. Each node has its own node.yaml file on the Puppet Master in /etc/puppet/hieradata. There is also a global.yaml file ...
2
votes
1answer
58 views

puppet agent failing to run automatically

I have two nodes besides the puppet master listed in my puppet master. The two are currently listed as unresponsive. It appears the puppet agents are failing to run automatically. In my logs on the ...
0
votes
0answers
19 views

Puppet: remediation handler 'Recieved API Response (404)'

What would cause a 404 when trying to run 'touch /tmp/hello' on CentOS6.5? The server has a subscription to its hostname, I don't see anything on the sensu-agent.log on the server showing it got the ...
-1
votes
0answers
12 views

puppet suse12 ruby error

I am trying to execute puppet in suse12 but I am receiving following error: puppet apply --modulepath=/tmp/puppet/modules/ /tmp/puppet/manifest/site.pp --color true ...
0
votes
1answer
18 views

On ubuntu 12.04, what file has the systemwide list of gem sources for rubygems 1.9.1

I need to deploy a gem from a custom gem source to my ubuntu 12.04 servers that are managed by puppet. In the puppet class, I will put the command that adds our custom gem server to the gem sources, ...
0
votes
1answer
27 views

Puppet: Pass facter value to class (sensu puppet module)

Trying to set a custom subscription to get remediator.rb working in the sensu module in puppet. class sensuJenkinsMasterClient { class { 'sensu': purge_config => true, ...
2
votes
4answers
5k views

How to fix Puppet fully-qualified parameter path error?

I regularly but randomly get the following error message when I run the puppet client on machines (non-daemonized): err: Could not create : Parameter path failed: File paths must be fully qualified ...
0
votes
2answers
18 views

puppet: execution ordering of classes 'instances'

I know how I can use resource ordering in Puppet to order built-in types (user, group, cron...) or classes, but I wonder how I can make it for specific instances of classes. For example, I use ...
1
vote
1answer
28 views

Windows Environment Deployment [closed]

We have run into a situation that has caused some issues. We currently are using Inno Setup Software to install are software on our client systems. The issues that we run into is we need to make a lot ...
0
votes
1answer
30 views

Grouping nodes in puppet

In my site.pp manifest, I have the following import "nodes/*.pp" This lets me nicely create separate files for different groups. However, inside each .pp file, i still have to explicitly set the ...
0
votes
1answer
32 views

How to fix error: Could not find class apache::base?

I'm using the following sample manifest from camptocamp/puppet-nagios: node 'central_monitoring_server' { import "nagios" $nagiosadmin_password = "XXXX" ... include apache::base include ...