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
3answers
21 views

Puppet include firewalld module not working

I have cloned this module onto my puppet server. I cannot seem to understand how I should be including this into a node. I am doing: nodetest1 { include firewalld } But this does not apply all ...
0
votes
0answers
16 views

Configuration-based web application deployment [on hold]

I would like to automate the deployment of a web application as close to “one-click” as possible, given a set of predefined configuration files and an OS image. By automating the deployment, I hope ...
-1
votes
2answers
30 views

Puppet file resource on windows agent don't work, what did i do wrong?

Background This is the first time i work on puppet The puppet master is Linux version... The puppet master host also install Puppet Foreman Server version 1.8.2 The puppet agent is Window ...
0
votes
0answers
22 views

Facter does not show custom Puppet facts

facter does not show the custom facts while Puppetboard does. According to this source the paramater -p is required to show all facts including the custom once. I have tried it but the outcome seems ...
1
vote
1answer
24 views

Puppet manifest isn't working. The error message is inexplicable and unhelpful

I'm trying to compile (into a catalog) a manifest to be ran on a specific puppet agent node. I am using Puppet 3.4 on the puppet master and agent servers. I am using Ubuntu on AWS. Here is the ...
-1
votes
0answers
22 views

Using external variable in rspec-puppet test

Have some stuck with using variable in rspec. Here is my params.pp case $::osfamily{ Debian: { $ssh_daemon = "ssh" } Redhat: { $ssh_daemon = ...
-1
votes
1answer
47 views

Error 400 on SERVER: The environment must be purely alphanumeric, not 'puppet-ca'

I would like to share this mistake as i have waste for one day on this. So I think i might be useful for other There is a puppet server setup by my colleague in infrastructure team. They provide me ...
3
votes
0answers
36 views

Best Foundation for Mesos Deployment

We are currently in the process of designing the architecture of our new Apache Mesos cloud setup. The goal is to unify our systems by moving different stacks onto the same architecture. The main ...
0
votes
1answer
23 views

How to execute/run puppet class

I am new to puppet. I want to know how to execute/run a simple puppet class. Below is the class I am trying to execute using puppet apply classExample.pp classExample.pp is the file in which class ...
1
vote
1answer
46 views

Puppet change mysql datadir only if it is installed first time

I want to use puppet to install Percona server with YUM repository. The default datadir directory should be /mysql. This is required to be consistent with existing directory structure.
1
vote
0answers
26 views

Puppet 3.8.1 hanging on windows

I am using puppet 3.8.1 and running command line as a administrator but puppet is hanging. With debug turned on I get too Debug: Runtime environment: puppet_version=3.8.1, ruby_version=2.0.0, ...
0
votes
1answer
19 views

How to get variables in one define from another?

Suppose, the following Puppet code: define apache::base($pkgver = '2.4.10') { $apache_ver = $pkgver ... } define apache::vhost($instance) { ... $apache_ver = getvar(......) } ...
0
votes
1answer
26 views

Recovering puppet config

Anyone know if you can recover puppet configuration from a host running an agent? We've found the reformatted yaml file that applied to the host, but not the actual puppet code. With CFengine the ...
-1
votes
0answers
35 views

Puppet agent Error

I am getting following error when I run agent for the first time, puppet agent -t info: Creating a new SSL key for 743108061500.default.php.puppet.stratos.com info: Creating a new SSL certificate ...
1
vote
1answer
24 views

Complex puppet schedule attribute for package resource

So I have see the resource schedule in puppet. But it's not clear if I can have a complex schedule. If I want to install packages only Monday 10PM-3AM or Tuesday 10AM-Noon, unless a (external fact ...
1
vote
1answer
58 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
vote
1answer
84 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: > ...
0
votes
1answer
49 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 ...
1
vote
2answers
54 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 ...
1
vote
2answers
41 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 ...
-5
votes
1answer
40 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 ...
1
vote
1answer
36 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
26 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 ...
2
votes
1answer
46 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
2answers
48 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 ...
0
votes
1answer
30 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 ...
3
votes
1answer
64 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 ...
0
votes
1answer
79 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
2answers
31 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 => ...
1
vote
1answer
41 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
47 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
121 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 ...
2
votes
1answer
61 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 ...
0
votes
1answer
118 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: ...
0
votes
1answer
39 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
99 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
49 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, ...
0
votes
0answers
24 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
vote
0answers
169 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 ...
0
votes
1answer
26 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
37 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, ...
0
votes
2answers
23 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
31 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 ...
2
votes
1answer
61 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
1answer
50 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 ...
1
vote
1answer
135 views

How to install puppet module from GitHub?

I've installed camptocamp/nagios from Puppet Forge, but seems it has dependencies to puppet-apache_c2c which is published on GitHub. I've installed nagios module as suggested: puppet module install ...
0
votes
1answer
52 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 ...
0
votes
1answer
52 views

What to use instead of import keyword?

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

Do I need to set rules for source and destination ports for outgoing rules on iptables?

I'm using puppetlabs firewall module and I'm having troubles setting up iptables for a simple web host. I'm following this guide and want to set up additional rules. ...
3
votes
3answers
50 views

Checking puppet-generated exim config before deploying

I use Puppet to generate /etc/exim4.conf and I want to make sure that the configuration is valid before I install the file on production systems. I've considered— using a git hook to call ...