Questions tagged [puppet]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

How to deploy SSH keys dynamically using puppet?

Currently don't have encrypted keys for authorized_keys and id_rsa. I need to generate new key in current machine and the same key to deploy other nodes on every puppet apply. Please let me know any ...
0
votes
0answers
5 views

how to run a module(manifest) in a puppet agent node in client server architecture

description I was new to puppet, but i was assigned a task of changing some modules in an existed environment that used by puppet master. The whole environment is using an agent and server ...
0
votes
1answer
37 views

Puppet Bolt not Passing Parameters into Bash Script Running as Task

When trying to use Puppet Bolt to run Bash scripts on remote machines, I kept having scripts fail to work properly because they weren't receiving the parameters passed by the Bolt command. If a ran a ...
0
votes
0answers
3 views

query regarding puppet stdlib module

I am reading puppet and got to know that puppet modules uses stdlib module. My question is, does is mandatory to include stdlib in modules and if i dont include what wil be the impact.
0
votes
0answers
51 views

Unexpected Bash Output [duplicate]

Can someone explain why I got error messages related to puppet when I type foo at the bash prompt as shown below: [root@centos8 ~]# foo bash: foo: command not found... Failed to search for file: ...
0
votes
0answers
8 views

Security permissions on implementing mcollective with activemq

I'm having issues understanding the default permissions assigned in an mcollective/activemq implementation. For context, I'm working an infrastructure pentest, on a private cloud of aproximately 5000 ...
0
votes
0answers
17 views

Centos 5 - Installing puppet agent - missing ruby and a couple of dependencies

I know centos is no longer supported but I had to test something on Centos 5.11. I could not find any repo for rubygems. Any suggestion on how to get it working? I used this RPM to install puppet ...
0
votes
0answers
15 views

Ubuntu 18.04 | Puppet - Configure DNS without using netplan

I want to automate DNS entires using puppet. But for ubuntu 18.04 I'm not sure where to set the DNS entries. I don't want to set it in netplan config file and restart interface unless that is the only ...
0
votes
2answers
20 views

Puppet not reflecting changes made in manifest

I have a module manifest, let's say it is named as work.pp. I added a custom fact has_work in /lib/facter/work.rb. When I run puppet agent -t, and check facter -p has_work, the fact has appropriate ...
-1
votes
1answer
31 views

Puppet - No Listener on 8140: Job for puppetserver.service failed because a timeout was exceeded

I have a Puppet setup that was working at one point in time. Now when I run a netstat -lnp I do not see the Puppet Server listening on 8140. In troubleshooting I've tried to manually start the puppet ...
0
votes
0answers
43 views

using powershell on Linux with Ansible

In looking at powershell, the general assumption is that it's being used either for or on Windows machines in a homogeneous network. Strictly within Linux, and only using "core" powershell, looking ...
0
votes
2answers
71 views

rpm package libpng12-1.2.50-10.el7.x86_64 is missing . server is deployed using puppet

I have two remote sites on which i have CentOS 7.4 based servers. I have deployed the servers using puppet and both sites have same configuration. On one site the one of my server is missing this ...
0
votes
1answer
164 views

How to prevent my additions to authorized keys from being overwritten by puppet?

At my company all employees are given a private key, which get's renewed each year, that they should use to connect to VMs. The SA here have a puppet script which will look up my public key and save ...
0
votes
1answer
169 views

What does puppet do to fix a 'stuck' systemctl service where systemctl would refuse to start a service?

We had a scenario where on RHEL we couldn't start an application that had been running and we had just stopped. sudo systemctl start myservice We didn't have access to the journald logs on this ...
0
votes
1answer
42 views

puppet agent environment

I was reading puppet doc for environment and want clarification in this particular statement: When that node requests a catalog from the master, it requests that environment. If you are using an ...
0
votes
1answer
19 views

Clarity on puppet agent utilization of catalog file at node side

I want to know once the catalog is compiled and sent to the agent node, how the agent node uses it. Does it use providers to read the catalog file?
0
votes
1answer
68 views

puppet module not doing anything

I successfully installed the puppetlabs java module using command puppet module install puppetlabs-java. I created a puppet module using command puppet module generate ... I have two manifest files ...
0
votes
0answers
32 views

puppet on debian

I run debian 9, and have installed packages puppet and puppet-master; they are listed as version 4.8.2. In the learning material I have found so far, I come across commands puppetd and puppetca - ...
1
vote
0answers
85 views

yum: unable to update puppet-agent due to missing dependency

I am trying to update a package with yum (puppet-agent) but this is failing due to a lack of dependencies - error output below. I think I know why this is: the old version (1.10.9-1) of the package ...
1
vote
1answer
35 views

Access fact of a system from another

Is it possible to access facts of one system from another system via any built-in puppet command? I tried to do that with puppet facts find "node_certificate" but its not working (instead I get facts ...
1
vote
1answer
32 views

How to remove old client keys in Puppet

I am trying to install puppet 6 on the agents and add them to the new puppet 6 master. As a part of this task, I a need to remove old client keys on the agent nodes: find /var/lib/puppet/ssl/ -type f |...
1
vote
1answer
311 views

How to ensure that a user is a member of a group using Puppet

Importantly, I want nothing more or less than this. I want to manage only a limited set of groups for a limited set of users, without ever changing any of their main groups or removing any other group ...
0
votes
1answer
326 views

use regex inside puppet file resource

I want to delete a file using file resource. File name is AA_BB_CC_11.22.33.7z . Problem is file resource does not support regex and the numbers in the can be changed. I am using variable inside my ...
0
votes
1answer
202 views

What's the difference between CMs “push” method (Ansible) to “pull” method (Chef/Puppet)?

I know that some of the advantages of Ansible over many other CMs are these: Ansible's scripts being written in YAML, a simple serialization language. The fact that one doesn't have to install it on ...
-1
votes
4answers
667 views

How should I use quoting with echo in Puppet?

I'm trying to use echo inside a Puppet rule to add a line to .bashrc, but I can't seem to get the quoting right. '/usr/bin/echo -E PS1=\"[\t--------------------------------------------------------\n-\...
3
votes
1answer
1k views

Command not found when run as sudo

I'm running centos7. I installed puppet. if I write puppet as a user, I get a proper output. If I write sudo puppet I get command not found. The really weird thing is, if I do sudo su - and become ...
0
votes
1answer
26 views

Puppet agent doesn't run manifest from regexp

node 'node-slave01' { include repo::git include fun::cmatrix } node 'node-slave02' { include repo::hg include fun::toilet } node 'node-slave03' { include fun::...
0
votes
1answer
35 views

Puppet: what's wrong with my configuration?

I want to learn puppet. Installation on Suse ok. The CA and SSL works fine puppet cert list --all Return my master and my client. On client puppet agent -t Return OK,no problem. I start a very ...
0
votes
1answer
51 views

What is the scope of lens in saltStack?

I am working on Salt related stuffs, here I found lens inside the augeas module.I have been looked into the saltStack documentation but I could not able to figure out what it actually does ? augeas....
0
votes
1answer
723 views

Puppet exec command runs successfully but doesn't make the needed changes

I am trying to make some changes on my Ubuntu 16.04 server using puppet exec to run commands to make those changes. When I run puppet, the command is executed successfully but puppet exec doesn't make ...
0
votes
1answer
63 views

Puppet Gluster Volume Error

I am getting this error when I add a gluster volume and run puppet agent -t: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while ...
1
vote
0answers
234 views

Error: Systemd start for glusterfs-server failed

I keep getting the error below when I run puppet agent -t but when I check the gluster service, the service is already running. What do I need to do to fix this error that I keep getting? Error: ...
1
vote
1answer
432 views

java.net.BindException: Address already in use when running puppetdb and jira

I'm trying to run both jira and puppetdb both on the same server using the same postgresql database. When I enable jira first, puppetdb throws the following error: $sudo /opt/puppetlabs/puppet/bin/...
2
votes
0answers
33 views

When you use puppet, how do you separate the provisioning and maintenance code?

So say you're using puppet. Initially you might use the puppet server to set it up with a puppet agent to setup your server (you might, then again you might use images, but I'm using puppet). Let's ...
1
vote
2answers
2k views

Puppet Recursive File Permissions

When using a Puppet file resource with recurse=>true is it possible to have directories and files get different permissions? That is we generally want to remove read/execute permissions from group ...
1
vote
1answer
473 views

Disabling mtu_bypass on AIX in file

I would like to disable mtu_bypass from within a file. I saw that you can use chdev to do it with a command, but I would rather specify the setting within a file using puppet. Does anyone know which ...
0
votes
2answers
193 views

puppet resource dependency

When I do puppet apply, I get the error: Warning: Scope(Mod::Cl[title]): Can't load '/tmp/file.yaml' File does not exist! Error: Evaluation Error: Error while evaluating a Resource Statement, ...
0
votes
1answer
147 views

how to define user who run puppet script as variable

I am using puppet, what I am trying to write script that create file related to the user who run it. lets say I want to create the file/soft link if not exist so other application can edit it, then ...
1
vote
1answer
410 views

How to set file contents but leaving permissions alone using Puppet?

I'm using the file directive to set the contents of many configuration files. Some of the applications have their own configuration interfaces which are the preferred way to modify these files (before ...
1
vote
1answer
513 views

Can I log and drop a packet in one iptables rule?

I've currently got the following Puppet firewall setup: firewall { '100 drop insecure outgoing HTTP traffic': chain => 'OUTPUT', dport => 80, proto => tcp, action => reject, } ...
1
vote
0answers
71 views

Trying to install Puppet Enterprise on Linux 7 and getting Certification error

This is what I get as root on my Linux 7: sudo rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm Retrieving ... curl performs SSL certificate verification by default, using a "...
1
vote
1answer
41 views

How to capture all system configurations and apply to remote machines?

I have bunch of raspberry pies that I have installed arch-linux on. On regular basis, I make changes to the system configurations. For instance I install services, change connection settings, move ...
1
vote
0answers
16 views

How to enforce that group X membership implies group Y membership in Puppet?

I'd like all users who are members of the 'users' group to also be members of the 'audio', 'lp' and 'video' groups. How can I enforce this in Puppet without specifying any of the usernames? The goal ...
0
votes
0answers
88 views

Class declaration in puppet

I have created a module in puppet named patchmgmt and inside my init.pp file, i have defined my class name same as my module name. Do i need to declare my class or having the class name same as ...
1
vote
1answer
2k views

Puppet shows a different version to the puppet-agent package version

Why puppet showing different versions in system: [root@localhost ~]# puppet --version 4.7.0 [root@localhost ~]# puppet agent --version 4.7.0 But rpm shows diff version for agent and server [root@...
1
vote
1answer
586 views

Multiple puppetmaster behind load balancer

We build two puppet master on openstack cloud and put them behind LBaasV2 (haproxy) load balancer, also we have separate puppetDB and PuppetCA server to handle certificate. |-...
2
votes
1answer
323 views

Remove “ipv6only” option from Puppet nginx module

My nginx server (which serves multiple vhosts) fails to start: Nov 08 23:54:43 foo systemd[1]: Starting nginx - high performance web server... Nov 08 23:54:43 foo nginx[3830]: nginx: [emerg] ...
1
vote
1answer
5k views

Failed to open TCP connection to plugins:8140

I am deploying several vm's in ganeti with open source puppet, when I run puppet agent in this specific host I keep get this error: Info: Retrieving pluginfacts Info: Retrieving plugin Error: /File[/...
0
votes
1answer
538 views

Unable to install puppet

I am new to puppet,Have tried to install puppet enterprise 2016.2 in my local machine(monolithic method) downloaded tar file and extracted it gave the option as Guided install option It popped out ...
2
votes
0answers
158 views

Why is a variable in a `require`d module not always available?

I've got three module manifests in separate files (stripped down to bare essentials): class users { $user = 'foo' user { $user: ensure => present; } } class dvcs_cli { require users ...