Questions tagged [puppet]
Puppet is a configuration management tool (Unix & Windows) with its own Domain Specific Language.
1,792
questions
0
votes
0
answers
19
views
regex puppet query syntax
I'm trying to learn how to use puppet query, but I'm finding it difficult to target a particular fact path using regex.
If I use the following query, I get exactly what I'm looking for:
puppet-query '...
0
votes
0
answers
8
views
How to read the central Puppet Configurations in the Dockerfile
Currently, I am working on a project we are trying to containerize our application. As our current VMs build scripts are pulling the environment and application-related parameters via puppet file ...
0
votes
0
answers
15
views
puppetdb does not start on ubuntu 16.04
puppetdb on ubuntu 16.04 does not start, i am not able to find any specific reasons, any ideas anyone?
root@pupper-master1:/etc/puppet# dpkg -l | grep puppet
ii puppet 4.8.2-...
0
votes
1
answer
38
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 ...
0
votes
0
answers
43
views
Continous delivery using Gitlab, Foreman and Puppet
We are using different tools to orchestrate our environment. On one side, we have Puppet and Foreman to deploy our different server applications, on the other side, we are using Gitlab in order to ...
0
votes
1
answer
103
views
Adding users to Unix groups only if said groups exist (puppet)
I tried using the 'group' attribute of the 'user' resource like so :
user {
"user":
group => ["docker", "www-data"]
}
If the groups 'docker' and 'www-data' exist ...
0
votes
1
answer
93
views
how to prevent puppet to override any change you made on the linux server?
i was trying to to change the timedatectl of one server from CST to EST. But everytime i made the change, puppet will override the change and bring it back to where it was after few minuite. How can i ...
1
vote
1
answer
82
views
How to use puppet-apache mod (v8.3.0) with hiera?
Queston: Using the roles & profiles method, is it possible to use 'puppetlabs-apache', '8.3.0' with a hiera lookup?
Context:
I am using mod 'puppetlabs-apache', '8.3.0' to configure an apache ...
0
votes
0
answers
91
views
Alternatives to ansible-pull
I have a number of systems that need configuration/updates, while being offline for long periods of time. They therefore need to contact a configuration system on boot, and in regular intervals and ...
0
votes
0
answers
210
views
Puppet server on an puppet agent CRL error
After installing puppet server on a puppet agent, I keep getting this error on the next puppet run.
Error: The CRL issued by 'CN=Puppet CA: puppet.aws.domain.com' is missing
Error: The CRL issued by '...
0
votes
0
answers
30
views
create a virtual host with name
I have to create api.conf in /etc/apache2/sites-available dir in a server(xyz02.software.com). The apache config is managed via apache module(apache::vhost) in role::script..so basically it is ///...
0
votes
1
answer
50
views
Puppet errors with cron resource
I have this in my manifest:
class security::sensor_apps::arkime (....) {
......
cron {
"file_maintenance":
command => "$home/db/db.pl http://secesprd01.its....
0
votes
1
answer
77
views
puppet 7: Deferred value in File.content impossible?
I'm trying to use a deferred value in puppet 7 (server 7.4.2 and agent 7.14.0) to write a file, like this:
file { "/tmp/testfile":
ensure => 'present',
content => Deferred(&...
0
votes
0
answers
92
views
apt clean apt autoremove
So i would like to remove unwanted files ( /var/cache and old kernels in /boot) to free up some space using puppet script and add this script to puppet master to automatically run once every month. I ...
0
votes
0
answers
76
views
base64 encoded sha256 sum in puppet
I have the requirement to sha265sum and then base64 encode a string and save the result in in file.
On the command line I can to the following:
echo -n 'string' | sha256sum | xxd -r -p | base64
Now I ...
1
vote
1
answer
219
views
Puppet: Issues with Vcsrepo (git) ".... exists and is not the desired repository."
I use puppet/Vcsrepo to distribute and update software to a bunch of linux servers from a Bitbucket(cloud) server. This worked fine for years but about 6 months ago Puppet started complaining about ...
1
vote
1
answer
216
views
Puppet Vcsrepo (git) : getting error "exists and is not the desired repository."
I am using vcsrepo with git to maintain a bunch of software on ubuntu systems. I use this bit of puppet code in a loop to keep the files up to date
vcsrepo { "/usr/local/tools/$repo":
...
1
vote
1
answer
513
views
How to sign an agent certificate in puppet?
I am using puppet 7.15.0 and when I try to puppet agent -vt, I get the below meesage:
Couldn't fetch certificate from CA server; you might still need to sign this agent's certificate (my-vm....
1
vote
1
answer
111
views
How to add sticky bits via puppet?
I would like to make sure the files that get added to a certain directory inherits the parent directory's permission and that permission never changes. I guess it's called sticky bit but cannot find a ...
0
votes
0
answers
173
views
Puppet: Create user account and use its UID/GID in dependent resource
I would like Puppet to do the following on the host:
Ensure a user named myuser exists.
I don't want to hardcode the UID as there are several users created this way.
Use the UID of myuser in a ...
1
vote
1
answer
178
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 ...
2
votes
2
answers
145
views
How to implement Continuous Integration with Puppet and multiple services
We're trying to implement a Continuous Integration pipeline in our environment. We have a lot of different services, each with its own Git repository. Deployment is done via Puppet, using an external ...
2
votes
2
answers
587
views
DNF Enable/Disable in Puppet
I'm trying to get PHP 7.4 installed on my RHEL 8 system with Puppet, but can't get the package declaration right to disable php and enable php:7.4 with dnf. The Puppet Package documentation doesn't ...
0
votes
1
answer
112
views
Detecting hypervisors in Puppet
Puppet provides a fact vitual which is supposed to show what virtualization method a system is using. We use Redhat 7 and 8 for guest operating systems. We have a lot of physical systems, and also use ...
0
votes
1
answer
111
views
Puppet/Augeas -- ins command worked on RH6, fails on RH7
I have this construct in my puppet module to add a line in /etc/sudoers after the last "Defaults" line:
augeas { "sudoers.ssh_auth_sock" :
lens => "Sudoers.lns",
...
0
votes
1
answer
950
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/...
2
votes
1
answer
182
views
How to set value of ipa_hostname directive in sssd.conf using Augeas
Using Puppet versions
Master: puppetserver 6.7
Client: puppet-agent 6.10
I have other Augeas code in other modules that works just fine.
Example sssd.conf
[sssd]
services = nss, sudo, pam, ssh
...
0
votes
1
answer
856
views
Puppet - can I selectively notify a Service?
I have a Puppet script that handles things differently in different environments based on an if/else block. But I have a bunch of common file resource blocks at the bottom that apply to all ...
1
vote
1
answer
391
views
Puppet 5.5.22, dnfmodule reset
I've been trying to figure out how to convert
dnf module reset php
dnf module install php:remi-7.4
to a stanza in a puppet module for several hours without any success.
Has anyone figured out how to ...
2
votes
0
answers
86
views
Puppet Module File Resource Copy From Network Mount
I'm using RHEL Satellite 6.6 with puppet 5.5.12. I have a module which, among other things, copies a file from a network mapped folder to the local drive, then executes it. When I run the module ...
1
vote
0
answers
128
views
Issue installing puppet agent on Windows Servers
I'm trying to setup a Puppet dev environment in my datacenter. I've configured the Puppet Master on Cent0S 7 along with two agents, also running RH CentOS 7. The Puppet version I am running on the ...
0
votes
1
answer
151
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....
0
votes
0
answers
83
views
Is there a way to communicate information between puppet classes/resources
Is there a way to communicate information between classes/resources?
I have a profile that I want to include on all nodes to set them up as being monitored by Icinga which uses an exported resource :
...
1
vote
1
answer
163
views
Quickly install multiple puppet modules from directory
Is there a way to install multiple puppet modules from a directory in one command?
I have a directory containing multiple puppet modules in tar.gz form downloaded from the forge, and I need to install ...
0
votes
1
answer
71
views
Run "puppetserver ca" commands on a remote server
We are running a Puppet Open Source server. To sign and revoke Puppet client certificates we logon to this Puppet server and run puppetserver ca ... commands.
We would like to be able to stand-up a ...
0
votes
1
answer
49
views
Puppet copy and install program on users
Trying to write module to install nomachine on every user how created on ubuntu deskop.
I need assist to solve two problem:
nbadmin its my user but I woluld like to write genral user
second I got ...
0
votes
0
answers
80
views
Using Puppet to configure hypervisor
I am looking to use Puppet to configure a bare-metal host to spawn VMs using Vagrant/VirtualBox, whose configurations will also be managed by Puppet.
I think this can be achieved by:
Installing ...
1
vote
1
answer
71
views
Are Puppet virtual resources auto-realized if they're auto-required?
It's documented that Puppet will auto-require certain resources, e.g. a (puppet-managed) directory that is a parent of a File resource, or a group resource referenced in a user resource.
If an auto-...
0
votes
1
answer
115
views
dependency loop : to deploy gitlab using awx ansible i need a repository
I want to deploy gitlab using awx and ansible ( or with puppet and rundeck ) and to do it i need a repository ( SCM : gitlab ) , the thing is i want to deploy gitlab but i need a gitlab , i can't find ...
0
votes
2
answers
104
views
Using Configuration management tools to synchronize large files
We are looking into using a configuration mangement tool (like Salt or Puppet) to automate what is currently a lot of manual work. One requirement is that we have to distribute rather large files / ...
1
vote
1
answer
2k
views
puppet agent not able to connect to master
on 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/vendor_gems/...
0
votes
1
answer
62
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 ...
2
votes
0
answers
614
views
Set YUM versionlock, but allow updating to specific versions
I am trying to control the version of puppet agent installed on our RedHat systems.
Our Puppet manifest has
$puppet_version = hiera('profile::puppet_agent::version', '6.12.0')
class {'::puppet_agent':...
2
votes
1
answer
378
views
Puppetserver unable to locate gems
I'm trying to use a module which adds an AWS Secrets Manager hiera backend:
https://forge.puppet.com/accenture/hiera_aws_sm
This module requires the aws-sdk-secretsmanager gem, which I installed via ...
1
vote
2
answers
127
views
How to control which version of Powershell Puppet shells out to on Windows?
Microsoft recently changed their download repository for Windows Powershell to require TLS 1.2+ which Windows Powershell 5.1 doesn't support without the runtime setting change to Net....
0
votes
1
answer
121
views
Install openldap server wth puppet - Error: Could not prefetch openldap_database provider 'olc': Command original_slapcat is missing
i am trying to install openldap server with Puppet Version 5.5.20. For the openldap installation i use camptocamp/openldap module v 2.0.0. I try it first with minimal configuration. My puppet ...
1
vote
0
answers
94
views
Puppet - Get interface name from netplan yalm config
How to get interface name which has nameservers defined?
I want to get the interface name so I can pass it to another netplan puppet module so the nameservers can be replaced. But I only want to get ...
0
votes
1
answer
74
views
DRBD Single Primary Ignore File Types
Is it possible to have an exclusion list for file types (maybe even specific files) so that they wont try to sync with the secondary nodes? I have looked at the DRBD configuration file and cannot find ...
0
votes
1
answer
912
views
Puppet server not starting
need help on small issue -
Puppet server :
# puppet --version
6.15.0
puppetserver --version
puppetserver version: 6.11.0
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-...
0
votes
0
answers
1k
views
puppet error Error: Could not request certificate: SSL_connect
I was able to sign cert created by client
1st time
opt/puppetlabs/puppet/bin/puppet agent -t
..
Exiting; no certificate found and waitforcert is disabled
Then i go to server
puppetserver ca ...