Questions tagged [puppet]
Puppet is a configuration management tool (Unix & Windows) with its own Domain Specific Language.
1,797
questions
1
vote
0
answers
377
views
Issue with policy-based autosign in puppet
I am trying to implement policy based autosign in puppet. I have performed following steps:
On puppet master:
I have created a ruby utility to autosign the certificate if matching the extension ...
1
vote
0
answers
118
views
Debugging Puppet File Server
I'm attempting to retrieve a file from puppet using the following:
file { '/etc/shibboleth/attribute-map.xml':
ensure => 'present',
source => file(
"puppet:///private/etc/shibboleth/...
1
vote
2
answers
1k
views
Puppet HTTP 400 error With Environment Configuration
I have reconfigured my puppet (v3.6.2) server (RHEL 7.1) into supporting environments as shown below.
/etc/puppet
puppet.conf
auth.conf
environments
...
1
vote
1
answer
593
views
Can I accumulate an array of values in puppet from a collector
I need to instantiate a firewall related class which takes an array of the hosts allowed to access a database port on a db server. What's in that list depends on which of various web apps are turned ...
1
vote
2
answers
388
views
puppet directory trees creation from a variable
Im trying to create directory tree using puppet. Ex
dir => /home/any_dirname/any_dirname2/any_dirname3/
Is it possible to create above tree in puppet where dirname can be anything so im taking it as ...
1
vote
1
answer
366
views
Prevent debian package from being removed by puppet
is there a way to prevent a debian package from being removed? I want to prevent any resolution of "replaces" and "breaks" attributes that would lead to removing that package while being able to ...
1
vote
1
answer
871
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
0
answers
157
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, ...
1
vote
1
answer
377
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
0
answers
2k
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 ...
1
vote
0
answers
63
views
Is it possible to declare Exported Resources as an Attribute instead of a Type in Puppet?
Avoid to add a host manually as an attribute
class::define { 'title':
attribute3 => [
'stone',
'wood'
],
hosts => [
'host1.domain',
'host2.domain'
]
}
class::...
1
vote
1
answer
404
views
mcollective - different ruby path/environment
How do I tell the mcollective server to use a different ruby path, or otherwise control the ruby environment?
I'm running on Centos 6.5, and have installed the ruby193 collection onto the servers and ...
1
vote
1
answer
270
views
Cobbler and puppet with multiple clients - best setup?
I have setup a cobbler and puppet and they are working fine (quite). I am still in a testing phase, so all testing are performed on a single client server. However, in the real environment, this ...
1
vote
0
answers
173
views
Can not access www with puppetlabs apache module
The vhosts are managed with the puppetlabs-apache module and I can not access the website with www but I can without it. When i use www I get a blank page and there are no errors an any logs and non ...
1
vote
1
answer
1k
views
setting up suPHP with puppetlabs/apache on centos 6.5
I am trying to set up suPHP on a centos 6.5 box with the puppetlabs/apache module.
Apache Configuration
file { "/var/www/vhosts":
ensure => "directory",
owner => "root",
...
1
vote
0
answers
2k
views
Puppet Agent fails to run install.bash
I am having my CentOS 6.5 installed with Puppet Entrprise 3.3.
The dashboard is running fine.
Now I want to add a puppet agent on another CentOS 6.5 box.
Since both are same OS type, Following the ...
1
vote
1
answer
564
views
Puppet and windowsfeature - Boolean Error
I'm new to Puppet Enterprise, but trying to learn how to deploy custom class files to Windows servers. I am attempting to use the opentable/windowsfeature module, but I'm getting an error when my ...
1
vote
1
answer
1k
views
Puppet: Unable to add physical volume
I want to create a physical volume in Puppet. Below is my code
class lvm::crelvm {
physical_volume { '/dev/sdb2':
ensure => present
}
volume_group { 'vg_cas':
ensure => present,
...
1
vote
2
answers
162
views
multiple array in def
I have two file
class hadoopfile::file {
$diskname = [aaa,bbb,ccc,ddd,eee,']
$filename = [02,03,04,05,06]
hadoopfile::diskcreate_def { '$diskname:','$filename:' }
#hadoopfile::diskcreate_def { $...
1
vote
1
answer
581
views
Error: Duplicate declaration virtual defines user & group equal name
I need create a user with the name user1 & group user1.
I defined a virtual resource to create it.
Inside a class1 I create the user:
include '::class1::virtual_accounts'
realize(class::User['...
1
vote
1
answer
3k
views
Cant use npm as provider with puppet
I am attempting to do the following in puppet:
package { 'bower':
ensure => present,
provider => 'npm',
require => Class['nodejs'],
before => [ Exec['npm_install'], ...
1
vote
1
answer
192
views
change puppetdb dump location instead of /var/log/puppetdb
I have seen a few hprof dumps of puppetdb indicating crashes. While I investigate that is there a way to configure that dump location to be somewhere else.
While I do have space constraints on /var/...
1
vote
2
answers
934
views
Testing a docker instance with beaker
I have a suite of Beaker tests running against a docker host.
I dont know the intricacies of how docker handles swap files, but it seems that it doesn't like it.
The Puppet code looks like this:
...
1
vote
1
answer
2k
views
Foreman errors out when provisioning using an ms-dhcp/dns smart proxy
Im running foreman, with smart-proxy on a win2k12 r2 box running ad/dhcp/dns.
When i try to provision smart proxy dumps this to the logs:
Changed the current scope context to 192.168.20.0 scope.
...
1
vote
1
answer
116
views
configure dependency of a puppet module
I need to more finely tune the Apache vhost file being generated by the example42/kibana Puppet module. Is it possible in Puppet to 'reach through' the example42/kibana plugin and configure the ...
1
vote
1
answer
320
views
Puppet Enterprise 3.3 Not Adding Modules to Classes
I am running Amazon Linux with a stock install of Puppet Enterprise 3.3. When I launch the command:
puppet module install puppetlabs-ntp
As per the puppet labs documentation, it does not show up in ...
1
vote
2
answers
593
views
Using a configuration management tool to configure nodes without ssh
I'd like to manage the configuration of several devices running embedded Linux.
There is a web server in my environment which has a SOAP interface I can use to get/set all the parameters of each of ...
1
vote
0
answers
426
views
Puppet Enterprise 3.3 on RHEL 7 - Error: Could not find terminus console for indirection node
With a fresh install (monolithic) of PE (Puppet Enterprise) 3.3 on RHEL (Redhat Enterprise Linux) 7 I'm currently getting the following error:
...
Info: Loading facts in /var/opt/lib/pe-puppet/lib/...
1
vote
1
answer
2k
views
puppetlabs/firewall - "Could not find resource type 'firewall'"
I'm fairly new to puppet, so this might just be me not seeing the obvious.
I want to use the puppetlabs-firewall module and wrote a small module of my own. The init.pp looks like this:
class ...
1
vote
1
answer
824
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 ...
1
vote
1
answer
2k
views
external fact not available at very first puppet run
Introduction:
We are using puppet to configure the nodes via a custom fact which is then referenced in hiera. The fact can either reside in the golden image in /etc/facter/fact.d/ or via pluginsync (...
1
vote
0
answers
735
views
need help writing puppet module for sssd.conf using Hiera
I need to build a module to manage /etc/sssd/sssd.conf on our Red Hat VMs. The sssd modules published on the forge don't seem to do what I want, nor do I feel like forking any of them.
I want to keep ...
1
vote
0
answers
528
views
Renaming an OpenVPN server - how to keep from losing all clients?
I have been instructed to change the domain name on a bank of servers. One of these is for OpenVPN and I'm wondering how best to do this without cutting off all the clients.
Each client is also ...
1
vote
1
answer
88
views
Puppet on Windows failing silently
None of my newly added Windows Puppet nodes seem to work, though none give errors. My Linux nodes work fine. I tried this line below in my nodes.pp, and a puppet kick runs without error, but does ...
1
vote
1
answer
177
views
Puppet and managing .k5login with parameters and arrays
So I have Foreman set up, and would like to pass in a parameter that is basically a way to easily specify users and groups that can log in as that user. My idea is currently to have the parameter take ...
1
vote
1
answer
3k
views
Puppet 2.7 Ensure file on client updates when puppet:///file is updated on Master
I have a Perl script that I pushed out to all my Puppet Linux clients. I have since edited my script, module/modulename/files/scripts/a_script script on the Puppet master, but the clients don't get ...
1
vote
1
answer
270
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 ...
1
vote
1
answer
1k
views
Puppet 3.3.1 Certificate verify failed
I`ve trouble to setup a master/node scenario with puppet 3.3.1 (puppet opensource) on both master and slaves.
The slaves are on a windows and SLES machine. The Master is also on a SLES machine.
The ...
1
vote
0
answers
454
views
Identical Vagrant VM's install pip packages differently?
I have a vagrant VM being provisioned via Puppet. I'm testing this on two different Ubuntus, 12.04 and 13.10, both using the "standard" precise32 box. The application I'm testing is a Django ...
1
vote
1
answer
545
views
Use puppet to manage a set of files under different subdirectories
So I have a need to generate a file tree for certain users on Windows.
I need to provide a list of users, preferably from an external fact, and have puppet make sure a set of files is in a directory (...
1
vote
0
answers
834
views
Puppetlabs Apache module: Debian PHP-FPM FastCGI APC
I'm currently setting up a new web server on Debian Wheezy and use the following modules from the forge:
http://forge.puppetlabs.com/puppetlabs/apache
http://forge.puppetlabs.com/example42/php
The ...
1
vote
1
answer
188
views
How do you upgrade puppet on Apache / passenger on EL6.4?
I have a Scientific Linux 6.4 server running apache / passenger with puppet-server installed. Also installed is Foreman 1.4. When I upgraded my agents to 3.4.2, they started all logging:
Using less ...
1
vote
1
answer
2k
views
How to delete group using puppet when main group of another user
I have the following Puppet recipe:
group{'pablo':
ensure => absent,
gid => 1020,
}
user{'pablo':
ensure => absent,
gid => 1020,
managehome => false,
}
But ...
1
vote
1
answer
543
views
Problems with Exec in Puppet
i want to to run the following command with puppet:
sb2-init rasp /home/ubuntu/raspberry_pi_development/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc
In ...
1
vote
2
answers
351
views
Puppet pre-generated certificates for multiple agents
I have a requirement like below
I have generated pre-generated certificates in master for multiple agents with some name
I have to copy the pre-generated certificate to all the agents.
All the ...
1
vote
1
answer
310
views
How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) to send log files from several servers to a central server?
Summary
How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) and scheduler (cron) to send log files from several servers to a central server?
Context
Our ...
1
vote
0
answers
1k
views
Puppet agent runs as a daemon but manifests are only applied when puppet agent is run manually?
I have puppet agent daemonized
# service puppet status
* agent is running
And can confirm that it is retrieving the configurations from the master
# cat /var/lib/puppet/state/last_run_summary.yaml ...
1
vote
1
answer
585
views
How to define nodes from a Hiera file in Puppet?
I am using puppet and the puppet network device management module and I am trying to build my custom type.
In the built-in type for the routers configuration, you can specify a list of nodes and then ...
1
vote
0
answers
464
views
Puppet on windows is extremely slow
Windows 7, installed puppet via chocolatey. Running "Start Command Prompt with Puppet", and then creating an EMPTY file "tennessee.pp", and then invoking within the prompt
puppet apply -v --debug --...
1
vote
1
answer
42
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 "...