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
0answers
46 views

Puppet - Set defined types in Nodes.pp

How to overwrite defined type in nodes.pp? I want to able to set custom domain using nodes.pp. Case Default isn't an option. I'm using puppet 6.0. The following method doesn't work. It says Could ...
1
vote
0answers
7 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
1answer
24 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
1answer
27 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
0answers
25 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 ...
0
votes
0answers
21 views

Error deleting CSR request through HTTP API Puppet

I can get the CSR information through the API from client curl -X GET \ --tlsv1 \ -H "Accept: application/json" \ --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem \ https://$PUPMASTER:...
0
votes
1answer
35 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 ...
0
votes
1answer
97 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. ...
1
vote
1answer
37 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 ...
1
vote
0answers
24 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 ...
0
votes
0answers
44 views

PuppetLabs postgresql module error: parameter 'path' expects a Resource value, got String

I'm running a Vagrant box elastic/centos-7-x86_64 with provisioning set up to install puppetlabs-firewall and puppetlabs-postgresql modules, then process manifest which is setting up postgresql 10 ...
0
votes
0answers
25 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 ...
0
votes
1answer
38 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,...
0
votes
1answer
27 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 ...
1
vote
0answers
35 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 [...
2
votes
0answers
36 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 ...
1
vote
1answer
44 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: $...
1
vote
2answers
96 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 { '...
2
votes
2answers
53 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 ...
2
votes
1answer
45 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' ...
1
vote
1answer
21 views

How to create a common directory in a puppet defined resource

I am implementing a defined resource in puppet to create a number of websites. One of the steps is creating the documentroot directory for the website. My problem is that some websites can share a ...
1
vote
1answer
56 views

Trying to use sshfs to mount directory from a puppet exec

Ununtu 16.04 and 18.04 (same problem on both) I am trying to use sshfs to mount a directory on another system, it works fine from the command line but when I execute the same command from a puppet "...
2
votes
0answers
31 views

Check if class has been included

We have Puppet set specific firewall rules on our system administrator's workstations. We discovered recently that some systems were connected to the wrong network ports and were able to get admin ...
0
votes
1answer
154 views

Puppet : call define type in class from hiera

I would like to create install_package module which can be called multi times, where packages are defined in hiera. I know class is skelton (can be called one time), and define type is designed for my ...
0
votes
0answers
28 views

How to remove a repo from yum.conf exclude list managed by puppet

We have a RHEL 7 server where we installed GitLab. I was having issues updating our instance and found out that the GitLab repo has been added to the exclude list in /etc/yum.conf. [root@oskar ~]# ...
0
votes
2answers
91 views

Puppet, server migration, restore existing persistent data

Thing that confuses me about configuration management tools such as Puppet is that they're great and straightforward for setting up server from scratch, but what every documentation neglects is the ...
2
votes
0answers
22 views

Deploying a c-compiled ruby gem with puppet module

I have a type/provider module that depends on a c-compiled gem. What is the best way to package this up and deploy to the users? Is the SOP to install the gem as a package (using gem provider) first, ...
3
votes
2answers
565 views

Puppet cert clean not working

So, I am standing up a new server to replace an existing one. Should be easy, right? Revoke the old cert, create a new one and off you go. Here's the loop I am stuck in: I've redacted the server ...
1
vote
0answers
105 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 ...
0
votes
0answers
65 views

2-Factor Authentication Using Puppet

I applied 2 factor authentication using google-authenticator by applying a puppet manifest to a centos server. I have made all the changes that are required to sshd_config and pam.d/sshd files. But ...
0
votes
1answer
172 views

Add multiple IPs for one host into /etc/hosts with puppet

I manage my hosts with puppet. Hosts run dual stack IPv4 and IPv6. I want to add both addresses to /etc/hosts. When I would add it by hand my /etc/hosts file would look like this: 192.0.2.1 hostname....
0
votes
1answer
139 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 ...
1
vote
1answer
83 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 ...
0
votes
1answer
850 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 ...
1
vote
1answer
179 views

Puppet user creation with condition

How to create user with same UID(only if it doesn't exists) without affecting the servers having the same user with random UIDs. To give more insight: 1. Maintain a user, "user1" all across the fleet ...
1
vote
0answers
69 views

Install Puppet 5.5.x on Ubuntu 2018

We have Ubuntu 2018 and would like to use puppet-letsencrypt. However Ubuntu 2018 comes with Puppet 5.4, while puppet-letsencrypt requires Puppet version 5.5.8. How am I supposed to upgrade to 5.5.x?...
1
vote
1answer
39 views

How to define a Puppet resource that aggregates values into another resource's array?

I want to have a resource (or something) that I can use in several Puppet classes to cause a different resource to receive a list of the values defined in the source classes. I'm not sure how best to ...
2
votes
0answers
103 views

puppet generated systemd unit files using ERB templates?

I don't know how to structure my puppet code for systemd, for init.d I could easily configure multiple processes into a single file. But with unit file I don't have a clue on how do I do that as I ...
1
vote
0answers
331 views

How to pass multiple arrays in exec command resource in puppet?

I want to deploy certs in default keystore using puppet I have two files root.crt and intermediateca.crt managed by puppet $alias=[rootca, intermediateca] $filecert= ["/var/lib/certs/rootca", "/...
0
votes
1answer
401 views

Puppet: Copy folder recursively - preserving mode?

With puppet I realize I can copy folders recursively and set permissions on individual files recursively. But I have a source folder with (many, many) files each with carefully configured permissions. ...
2
votes
1answer
64 views

puppet code design: how to collect arguments into a string (avoiding possible duplicate declaration errros)

I'm having trouble with puppet (version 5.5) code design. I've written a component module to deal with ucarp. It make use of the module eyp-systemd to register an ucarp service within systemd. Now I ...
-2
votes
1answer
43 views

Can I specify operating system with a node definition in Puppet?

I want to do something along the lines of: Is this possible with Puppet? If not, what's the best way I can distinguish modules by operating system?
1
vote
2answers
65 views

Wrong Localtime distributed by Puppet 4.8

I've encouter some problems with my module Timezone in Puppet. So to make it short and clear, I'm in an internship and my boss gave me an assignement : Fix the automated creation of a VM. The ...
1
vote
0answers
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 ...
1
vote
2answers
313 views

puppet no longer able to manage services on ubuntu 18

I've tried to set up a new server via our puppet-master. It was supposed to be a quick affair, everything in there has been running pretty reliably, and still is on the older servers. Just that the ...
0
votes
2answers
572 views

Puppet ssh_authorized_key type not available

I am using Puppet to manage SSH keys on all my devices including a bunch of Raspberry Pi's but only the Raspberry Pi's are complaining about the ssh_authorized_key type missing. Warning: /Stage[main]/...
0
votes
1answer
64 views

How would I modify an existing line in the sssd.conf file with puppet?

Very new to puppet here. I want to be able to modify group members that are allowed to authenticate via LDAP to our servers. This is done by modifying the "simple_allow_groups" line in the "sssd....
0
votes
2answers
367 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
168 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: ...
0
votes
1answer
51 views

Puppet — if condition according to current status of machine

I am trying to write an if clause to do something according to the current status of a machine. I understand according to puppet's philosophy catalogs evaluate and push to the machines before they run ...

1
2 3 4 5
36