Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [puppet]

Puppet is a configuration management tool (Unix & Windows) with its own Domain Specific Language.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 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": ...
user avatar
0 votes
1 answer
31 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....
user avatar
1 vote
1 answer
32 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 ...
user avatar
  • 11
0 votes
0 answers
20 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 ...
user avatar
1 vote
1 answer
36 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 ...
user avatar
2 votes
2 answers
56 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 ...
user avatar
1 vote
1 answer
98 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 ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
  • 1,203
0 votes
1 answer
40 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", ...
user avatar
  • 424
0 votes
1 answer
180 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/...
user avatar
  • 1,915
0 votes
0 answers
26 views

How to activate the Puppet.debug output in external modules

I'm trying this Puppet module https://github.com/voxpupuli/puppet-ldapquery, and can't make it work. It's like my LDAP query does not return anything ( I tried it with ldapsearch and it works ). No ...
user avatar
0 votes
0 answers
16 views

puppet: collect an exported resource matching certname?

Is it possible to collect resources which match a certname? E.g. @@notify{"get this with certname compared to a variable" : } Notify <<| certname == $::fqdn |>> @@notify{"...
user avatar
2 votes
1 answer
97 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 ...
user avatar
  • 51
0 votes
1 answer
161 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 ...
user avatar
0 votes
0 answers
31 views

Is there a way to retrieve the config_version value as a variable?

I use Puppet with r10k and a custom External Node Classifier. The need is to write the commit hash value into a templated ERB file on each managed node. I added a script (https://github.com/puppetlabs/...
user avatar
1 vote
1 answer
203 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 ...
user avatar
  • 1,037
2 votes
0 answers
70 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 ...
user avatar
1 vote
0 answers
93 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 ...
user avatar
  • 11
0 votes
1 answer
80 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....
user avatar
  • 203
0 votes
0 answers
35 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 : ...
user avatar
  • 3,148
1 vote
1 answer
90 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 ...
user avatar
  • 111
0 votes
1 answer
35 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 ...
user avatar
  • 2,571
0 votes
1 answer
42 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 ...
user avatar
0 votes
0 answers
43 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 ...
user avatar
1 vote
1 answer
38 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-...
user avatar
  • 20.9k
0 votes
1 answer
93 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 ...
user avatar
0 votes
2 answers
74 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 / ...
user avatar
  • 75
1 vote
1 answer
918 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/...
user avatar
0 votes
1 answer
34 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 ...
user avatar
2 votes
0 answers
398 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':...
user avatar
  • 1,203
2 votes
1 answer
272 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 ...
user avatar
  • 146
1 vote
2 answers
94 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....
user avatar
0 votes
1 answer
81 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 ...
user avatar
1 vote
0 answers
50 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 ...
user avatar
  • 11
0 votes
1 answer
55 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 ...
user avatar
  • 3
0 votes
1 answer
546 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-...
user avatar
0 votes
0 answers
515 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 ...
user avatar
0 votes
1 answer
48 views

Which server configuration management tool to use for my personal nextcloud deployment [closed]

I want to deploy a personal nextcloud application. I already have setup nextcloud using docker-compose, which tool should I use for server configuration management? I have the following things to ...
user avatar
0 votes
1 answer
120 views

Puppetserver 1.1.3 cannot contact LDAP

I have a horribly out-of-date puppet installation that's using the Rack puppetmaster service. I'm attempting to bring it slightly more up-to-date, and my first step is moving to puppetserver instead. ...
user avatar
1 vote
1 answer
175 views

Puppet Class Lookup from Hiera with Automated Chaining

I am using hiera with puppet and have a puppet role/profile setup, where 1 role includes multiple profiles (as shown below). My build role includes hardcoded profiles with a number of chains at the ...
user avatar
  • 11
1 vote
0 answers
43 views

Puppet keeps pushing .swp files

Our current setup has a manifest/site.pp that include the following for all of our modules File { ignore => ['.swp'], } However when running puppet on the client side, it still tries to push ...
user avatar
  • 1,103
0 votes
0 answers
31 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 ...
user avatar
0 votes
1 answer
332 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,...
user avatar
0 votes
1 answer
34 views

Ensure Puppet performs procedural steps as part of deployment

I know using procedural steps in Puppet is generally frowned upon, but since we are using it to deploy Veritas-managed clustered applications, there is a specific set of steps that must happen before ...
user avatar
1 vote
0 answers
91 views

Puppet 4.10 Regex

I'm trying to add a 'type' layer to our hiera backend so webservers can get common configuration, databases get some common configuration, etc. Our hostname scheme is [env][number].domain.tld where [...
user avatar
2 votes
0 answers
77 views

how changing the default editor via puppet

I'm trying to find the best way with Puppet to change the default editor on all machines(Ubuntu & RedHat) so that any user is constrained to use a type of editor. And to keep it possible to change ...
user avatar
  • 21
1 vote
1 answer
188 views

Puppet parse hiera in inline_template

I have got some .yaml hiera file with: iptables::test: ip: 1.1.1.1 : 'adm-1' 2.2.2.2 : 'adm-2' 3.3.3.3 : 'adm-3' And i want to parse this file in inline_template. I write: $...
user avatar
1 vote
2 answers
266 views

Puppet: Change file on readonly filesystem

I'd like to use puppet to manage files on read-only filesystems. So I need to remount the filesystem read-write before modification, and read only afterwards. I made two exec resources : exec { '...
user avatar
  • 43
2 votes
2 answers
326 views

Puppet Package class can't detect installed package when multiple versions are present

I am trying to install the kernel-devel package matching the running kernel version. My guess was: package { 'kernel-devel': ensure => "${facts['kernelrelease']}", } but it doesn't work ...
user avatar
  • 25
2 votes
1 answer
199 views

How do I conditionally enable a managed repo using puppet-yum?

The puppet-yum documentation is very straightforward, and explains how to add your own managed repo via hiera data. However, in addition to our 'release' repo, I want to conditionally add our 'build' ...
user avatar

1
2 3 4 5
36