Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [puppetmaster]

Puppet is a configuration management tool (Unix & Windows) with its own Domain Specific Language (Puppet or Ruby DSL). Puppetmaster is the central server for this tool.

1
vote
0answers
15 views

Puppet on Azure to manage non-Azure nodes [duplicate]

I have installed a Puppet Server on Azure and is currently managing a number of Puppet Agents on Azure as well. I am using the internal azure fqdn - this means that all manifests and tasks processes ...
1
vote
0answers
19 views

Is there a better way to execute specific manifests for specific operating systems with Puppet? [on hold]

I'm using Puppet 4.10.12, and I'm currently writing a manifest for CentOS machines. I have the following way to execute it, the file is called centos.pp and the top of it is as follows: I feel there ...
0
votes
1answer
14 views

How to use custom facts with rspec Puppet

Is there a way I can use a custom fact while using rspec? My module works fine and the custom fact exists and works as intended when I do a puppet run on my agent, but when I try to use the same fact ...
0
votes
1answer
19 views

Workaround to no `puppet module generate`?

Is there a way to continue using puppet module generate? I'm using Puppet version 4.10 and earlier I was able to make one without issue, but today when I tried to make one I got the following error: ...
1
vote
0answers
18 views

Puppet server - Is it OK to delete files inside /var/lib/pgsql/data/base/?

We have a puppet server running 3.8.7 on RHEL 6.10. It experienced an OOM event this morning then the server recovered without intervention. While looking into this I noticed the server became very ...
0
votes
0answers
25 views

'puppet facts' returns almost nothing on master node but works fine on all other nodes

I have a lab setup consisting of 4 nodes, puppet master puppetdb server (puppetdb process & PostgreSQL on same node) 2 'member' servers # puppet facts on the master returns the following { "...
1
vote
2answers
23 views

Puppet: Run in noop mode except for the first time

I am trying to figure out how to run a Puppet configuration on a newly bootstrapped node, and then, from then onwards, only run as noop in order to collect reports on infrastructure changes / drifts. ...
0
votes
2answers
37 views

Puppet - how to use different file source

I create configuration in Puppet for Nagios agent (NRPE). Now I'm trying to set different file source depending on existence of dirs.First I check if specific directory exists and then set specific ...
0
votes
0answers
91 views

Puppet installation error

I am trying to install puppet enterprise for the first time, and following this documentation: https://puppet.com/docs/pe/2019.0/installing_pe.html I have downloaded the file and executed it locally ...
0
votes
1answer
35 views

Puppet 6: PuppetDB won't start because of clojure/java errors

I've searched far and wide, and I just simply can't get it to work. I've searched everything I could find which contained "puppetdb", but without success. I have followed the documentation, and I ...
0
votes
1answer
50 views

Puppet - importing a locally written (non-installed) module's functions

Say I have two locally extant modules that don't exist on Forge or in a custom Forge-like repo. These repos will never be installed via command line as they are part of a bigger deployment that cannot ...
1
vote
1answer
40 views

puppet server puppet apply node definitions remotely from server

i have setup puppet server agent setup. I am using puppet version 4 for both server and agent. I have my node definitions. I can run puppet agent -t to retrieve the node definitions from puppet server....
0
votes
1answer
38 views

puppet syntax multiple node includes different roles

Is it possible to set multiple nodes to includes different roles? Like this node_modules.pp: node 'puppet-appserver.dev' { include role::app_server } node 'puppet-dbserver.dev' { include role::...
0
votes
1answer
134 views

Error on Puppet Enterprise text mode install - pe.conf contains errors

I started puppet enterprise installation on CentOS image and it worked fine with guided install. Now, I am trying with text mode install with similar CentOS image and I get error to check pe.conf file....
1
vote
1answer
145 views

Puppet caching resources

I'm trying to debug a caching issue with Puppet on RedHat 7. My versions are at the bottom of this question. Below is an excerpt from my site.pp manifest. This is all fine and the Nagios check is ...
0
votes
1answer
539 views

Puppet Master Could not request certificate Permission Denied

I have been all over the internet and tried different fixes to which none have worked. Issue: When setting up a new agent to connect to the Puppet Master I run: sudo /opt/puppetlabs/bin/puppet ...
0
votes
0answers
165 views

Puppet Master not pulling changes to agents

I have added following code in site.pp node default { file {'/etc/motd': ensure => present, content => "Motd Updated.\n", } } But when running following command in one agent it is not updating ...
0
votes
1answer
280 views

Puppet file resource not resolving the source attribute

I have started to play with puppet 5 and for some reason the source attribute in the puppet file resource is not working. I have a simple manifest file in my puppet server which is as follows: file {'...
1
vote
1answer
553 views

Generating and signing certificates in puppet version 5

I am trying to install and configure puppet 5.3.2 on two identical Linux machines running Centos 7 (one being a master and the other being an agent). I have managed to install the puppet from the ...
0
votes
1answer
105 views

Puppet Invalid parameter string on Firewall

Using the Firewall module version 1.9 in puppet 3.8.7, I am getting the following error: Error 400 on SERVER: Invalid parameter string on Firewall Here is my Puppet Firewall rule. firewall { "051 ...
-1
votes
3answers
411 views

Disable Puppet automatic scheduled runs

Is it possible to disable puppet runs (every 30 minutes) but it should be still listening? I'm setting up puppetkick or mcollective. So the agents should be still running and listening so I can push ...
1
vote
1answer
279 views

Connect several puppet masters to one puppetdb

I have installed a puppetdb on one of my puppetmaster and it works. But I'm not able to connect a second one to the puppet master. The command "puppet agent -t" works on my 2nd master. Each master ...
1
vote
1answer
90 views

puppet saz/sudo module implmentation

I'm trying to deploy the saz/sudo module to manage our sudo configs (I'm pretty new to puppet (~3days), so please excuse my potential ignorance). Our current sudo config all contained in a single (...
0
votes
2answers
187 views

Unable to pull Puppet Forge modules with r10k

I have what appears to be a functioning r10k setup with respect to publishing branches as environments, but when I run the command to pull modules via sudo /opt/puppetlabs/puppet/bin/r10k deploy ...
0
votes
1answer
332 views

Puppet::Environments::EnvironmentNotFound when folder exists

I have file structures for 2 environments on my puppet master server. Running ls /etc/puppetlabs/code/environments/ on my master server returns two folders beta and production. Yet when I go on my ...
1
vote
1answer
1k views

Puppet assign nodes to environments from master?

I'm learning to use Puppet and have successfully setup and connected a master server with 2 nodes. I've created files for the default production environment which is working. I also have a second set ...
1
vote
1answer
3k views

puppet: Could not evaluate: Could not retrieve information from environment production

I have seen the similar post here, but that does not solve Intent is to copy the bash script on agent node and execute. SLES11SP4-118:~ # cat /etc/puppet/manifests/site.pp node default { include ...
0
votes
1answer
61 views

Manifests apply failing: using same hostnames in two different manifests file

have written the following manifests using tidy resource to delete old war files $ cat /home/kar/cleanwars.pp node 'node-010.example.com' { tidy { '/home/kar/temp/': path=> '/...
0
votes
1answer
87 views

Sending more than a file to a puppet client

How I must configure a "init.pp" file for sending more than a file in the same class? What I have done is this: class nagios { file { ['/usr/lib64/nagios/plugins/']: path =>...
0
votes
1answer
481 views

Puppet master with different hostname/fqdn

I'm trying to use a puppetmaster for servers being both on an LAN and outside of a LAN. Here's the setup : I have 3 servers behind a router and a VM on Google Cloud. The puppet agents connect to the ...
1
vote
1answer
461 views

how to apply fstab setting in puppet

I am learning puppet, and I was supposed to enact this security measure on mount point /tmp: /tmp /var/tmp none rw,noexec,nosuid,nodev,bind 0 0 I looked at fstab, and I see this: /tmp /var/tmp none ...
0
votes
2answers
485 views

Puppet/hiera : generate sereval files from one template

I'm running puppet 4 and I would like to generate several config files from the same template with different configurations for each one. for example : # cat /tmp/a.conf test1 # cat /tmp/b.conf ...
1
vote
2answers
331 views

r10k on CEntOS 6.7, has anyone achieved this feat?

Do you guys know how one might run r10k properly on a CEntOS 6.7 server with Puppet 3.6? Is that a contradiction in terms? I checked the r10k source code's list of requirements: https://github.com/...
0
votes
0answers
111 views

How do I add third party puppet modules without committing them to source control?

tl;dr: How do I manage modules for a Puppet Master, like I do using requirements.txt for Python or using Bower for JavaScript? Here's an example. Say I want to install the puppetlabs/firewall ...
0
votes
1answer
227 views

foreman puppet manage 100's of servers without logging in each device

I want to know is there a way to manage hundreds of servers in foreman. Let's say I have 100 machines. In each machine, OS is already installed and ssh is accessible. Now I want to install a ...
1
vote
0answers
150 views

Puppet Server Scaling CA

With Puppet 3.x it was possible to split out the CA into a seperate server and then have each of the other Puppet masters proxy certificate requests to the CA. Is this approach still possible with ...
1
vote
2answers
576 views

Puppet 4 - get a list of all the slaves connected

How can I get a list of all the slaves that connect to the puppet master in Puppet 4? I used to be able to get a look at the /var/lib/puppet/reports folder but with Puppet 4; I'm unable to find it ...
3
votes
2answers
3k views

How do you use a variable in a Puppet Manifest?

I am using the WSUS Module with Puppet Master on Centos 7.2. My Puppet Agent servers are running Windows Server 2012. I want to use a manifest with a variable. However, when the Puppet Agent server ...
0
votes
1answer
2k views

Puppet agent run errors with `Could not run stack level too deep`

I have configured Puppet Server to use an external CA, and generated the necessary keys. My puppet.conf looks like the following: [master] vardir = /opt/puppetlabs/server/data/puppetserver logdir = /...
1
vote
1answer
283 views

File Copy failing using Puppet File resource

I am trying to copy files using file resource . My code is as follows: node 'Node-002' { file { "/root/helloworld.txt": ensure => file, owner => "root", group => "root", mode => "...
0
votes
1answer
42 views

Migrating Puppet Code to Puppet 4: Issue with Classes

We are migrating our Puppet Code from 3.5.7 to 4.5.2 While applying manifests I am getting following error Error: Failed to apply catalog: Parameter unless failed on Exec[sh /home/agile/...
0
votes
1answer
43 views

Puppet failed to copy exec catalog

Seeing the following error in Puppet 4 # /opt/puppetlabs/bin/puppet agent --verbose --no-daemonize --onetime Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: ...
2
votes
2answers
2k views

How to identify which Puppet master was used in an agent run?

I'm currently running multiple load-balanced masters and need to debug some differences between them. Is there a good way to include the hostname or some other ID of the puppet master in the agent ...
1
vote
1answer
309 views

Different manifest location on Puppet Server/Agent

My Puppet Server Environment setting is as follows [master] vardir = /opt/puppetlabs/server/data/puppetserver logdir = /data/log/puppetlabs/puppetserver rundir = /var/run/puppetlabs/puppetserver ...
1
vote
1answer
2k views

Creating new environments in Puppet Server

We are using a shared Puppet Server to manage both QA and DEV environments . The default configurations Puppet Server uses is Production environment # puppet master --configprint all | grep ...
1
vote
1answer
266 views

Puppet Server not applying manifests

I did a Puppet/MCollective setup using four nodes. # mco ping Node-010.test.com time=107.58 ms Node-003.test.com time=110.68 ms Node-009.test.com ...
1
vote
1answer
56 views

mcp puppet runonce not executing manifests

I am using mcollective with puppet . The setup is successful . But when I apply manifests , the manifests is not getting executed . My manifests is as follows: node default{ } node 'Node-009....
0
votes
1answer
129 views

puppet4 .erb nilClass on .each

erb $names = ['foo','boo','wee','haa'] <% @names.each do |name| %> Hello <%= name %> he is here <% end %> config.pp file {'/tmp/tester': ensure=>'present', content=>...
0
votes
1answer
456 views

Error 400 on server: Could not find class docsf

I try to include the module docsf on my Foreman/Puppet-System. I cloned the git and moved the content to the modules-path /etc/puppet/environments/production/modules. If I assign the module to a host,...
0
votes
1answer
478 views

Recurring Ansible Tasks

I've been familiarizing myself with Ansible and Puppet for use as a provisioning and configuration management tool. I may not be misunderstanding something about the way Anisble is used, but the only ...