Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
303 views

Puppet Error: Could not retrieve catalog from remote server ... Unknown variable: 'operatingsystem'

I am new to puppet and I am trying to understand the following. In all manifests i see using top scope variables used like $::operatingsystem, $::operatingsystemrelease, $::hostname etc. but when i ...
Bog's user avatar
  • 31
0 votes
0 answers
138 views

Puppetserver unable to retrieve facts from nodes

When I perform puppet lookup fqdn --node <AGENT-CERT-NAME> --explain, I get the following error: Error: Could not run: No facts available for target node: agent.foo.lan My puppet agent already ...
cd4user's user avatar
0 votes
0 answers
175 views

Unable to autosign certificates for Puppet

I have a new Puppet server set up and am unable to currently get autosigning of certificates to work. I've followed the setup instructions on https://www.puppet.com/docs/puppet/7/config_file_autosign ...
Joseph Quinn's user avatar
0 votes
1 answer
250 views

Puppet install: timeout when retrieving certificate

Trying to install the latest puppet enterprise (2023.0.0) per their guide on an Unbuntu 20.04 VM in Azure. I started with the out-of-the-box pe.conf. Install proceeds for awhile until I get some ...
Chris's user avatar
  • 101
0 votes
2 answers
1k views

puppet server failing to install on centos 9 stream

I tried installing puppetserver on my centos 9 stream but it gives me the following error: Last metadata expiration check: 0:15:42 ago on Thu 23 Feb 2023 01:06:09 AM EST. No match for argument: ...
Pastor Munashe Zimondi's user avatar
1 vote
1 answer
387 views

Puppet manifest configuration for docker image verification

I’m quite new to devops/ci/cd, so bear with me. Currently, I’m getting a puppet manifest configuration set up for docker image verification. Let me try to layout it out: I have a puppet master server ...
Jorge Mauricio's user avatar
0 votes
0 answers
218 views

Command to completely uninstall puppet in the master server

I want to remove puppetmaster from master server including certificate. I am using puppet open source.
Majedur's user avatar
  • 101
0 votes
1 answer
2k views

How to generate certificates for (secondary) compile puppetserver?

I'm trying to scale puppetserver, in order to have redundancy, using round robin DNS. The secondary puppetserver (version 7.4.0) is configured to use the CA authority from primary puppetserver: /etc/...
Tombart's user avatar
  • 2,433
0 votes
1 answer
366 views

Plan lookup: Could not find class

When running a Puppet plan that uses lookup{} function against Hiera I get the error: The target node: 'computer1.domain.com' errored with a message: Internal Server Error: org.jruby.exceptions....
woter324's user avatar
  • 253
0 votes
1 answer
605 views

How to configure Zabbix to monitor Puppet Server via JMX?

Zabbix allows monitoring of metrics via JMX. The Puppet Server provides JMX metrics via jolokia on https://puppetserver:8140/metrics/v2, using its own CA for the certificate. I have my Puppetserver ...
Steve Shipway's user avatar
2 votes
2 answers
4k views

Puppetserver ca list fails with OpenSSL::X509::StoreError; agent unable to connect

On Puppet master: puppetserver ca list Traceback (most recent call last): 9: from /opt/puppetlabs/server/apps/puppetserver/cli/apps/ca:5:in '<main>' 8: from /opt/puppetlabs/puppet/lib/ruby/...
Uday Kiran Reddy's user avatar
0 votes
1 answer
140 views

How to manage puppet master and agent connectivity

As it is lab, we can add Ip address of agent to master hosts file.But if I have 1000 agents(partly windows and Linux machines), we can't add each and every agent to hosts file of master.How to manage ...
Uday Kiran Reddy's user avatar
0 votes
0 answers
38 views

How to implement puppet proxys for nodes on different network location

we are using puppet but we have some problems with different nodes on different networks, I would like to know if we can use some kind of proxys/satellites in order to connect the nodes from different ...
Flechoide's user avatar
0 votes
1 answer
606 views

Issues connecting puppet agent to master

Trying to build an infrastructure based on the most recent puppet/agents available for testing purposes. So I've been trying to run puppet agent on a node, and I'm currently getting the errors bellow,...
macosta's user avatar
1 vote
0 answers
275 views

Puppet master wont allow sign puppet agent certificate request, saying "Could not resolve x.x.x.x: no name for x.x.x.x

I have a puppet-master puppet agent setup in AWS VPC. The system has been running for the last 2 years without too many issues, but today the master will not accept a certificate request from any of ...
Tiaan Stals's user avatar
1 vote
1 answer
321 views

How to Install Visual Studio 2017-2019 with puppet/chocolatey

I have use Puppet/Chocolatey to configure visual studio 2010-2015. The last release of VS 2017-2019 has change a bit because of the new online installer method and I am still searching for a solution ...
Nicolas Boucher's user avatar
1 vote
1 answer
462 views

Puppet - disable a user

I'm taking over an old puppet master, and I need to disable a user. I'm aware of "present", "absent", and "role", and they seem to be the only ones available. I've been searching and honestly can't ...
Angus's user avatar
  • 37
1 vote
1 answer
6k views

Puppet Windows Agent unable to connect - certificate verify failed: unable to get issuer certificate for /CN=Puppet

I have installed puppet server and the agent, accept the intial agent request with sudo /opt/puppetlabs/bin/puppetserver ca sign --certname mywindowshost on the server. I can see the certificates are ...
morleyc's user avatar
  • 1,130
1 vote
0 answers
20 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 ...
James's user avatar
  • 123
0 votes
2 answers
2k 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 ...
AndreasKralj's user avatar
0 votes
1 answer
569 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: ...
AndreasKralj's user avatar
1 vote
0 answers
335 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 ...
user53029's user avatar
  • 649
1 vote
2 answers
2k 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. ...
James's user avatar
  • 123
0 votes
2 answers
326 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 ...
Łukasz Pecyna's user avatar
0 votes
1 answer
749 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 ...
Miguel Mesquita Alfaiate's user avatar
0 votes
1 answer
1k 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 ...
Angus's user avatar
  • 37
0 votes
1 answer
179 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 ...
AndrewL's user avatar
  • 191
1 vote
1 answer
164 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....
Rehan Miah's user avatar
0 votes
1 answer
122 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::...
johnsnow's user avatar
  • 171
0 votes
1 answer
450 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....
anuj tyagi's user avatar
1 vote
1 answer
2k 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 ...
wsams's user avatar
  • 161
0 votes
1 answer
4k 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 ...
scalderoni's user avatar
0 votes
0 answers
523 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 ...
Tom's user avatar
  • 141
0 votes
1 answer
1k 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 {'...
hypersonics's user avatar
1 vote
1 answer
3k 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 ...
hypersonics's user avatar
0 votes
1 answer
149 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 ...
markhorrocks's user avatar
-1 votes
3 answers
1k 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 ...
anon's user avatar
  • 9
1 vote
1 answer
864 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 ...
Skullone's user avatar
  • 195
1 vote
1 answer
280 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 (...
Mark V's user avatar
  • 121
1 vote
2 answers
598 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 ...
Geoff Johnson's user avatar
1 vote
2 answers
2k 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 ...
Philip Kirkbride's user avatar
2 votes
1 answer
6k 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 ...
Philip Kirkbride's user avatar
3 votes
1 answer
15k 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 ...
RajSanpui's user avatar
  • 163
0 votes
1 answer
82 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=> '/...
Zama Ques's user avatar
  • 523
0 votes
1 answer
242 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 =>...
Daniel Ruiz Molina's user avatar
1 vote
1 answer
2k 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 ...
J.F.Gratton's user avatar
1 vote
1 answer
899 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 ...
arcee123's user avatar
0 votes
2 answers
996 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 ...
Skullone's user avatar
  • 195
1 vote
2 answers
614 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/...
Nathan Basanese's user avatar
0 votes
0 answers
159 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 ...
Nathan Basanese's user avatar

1
2 3 4 5 6