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
2answers
32 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
21 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
27 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
32 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
14 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
0answers
8 views

In Puppet, How can I add a versioned rpm on machines with different %dist macros

lets say I have RPM Fred-1.0.0-1.el6.noarch.rpm for SYSVinit, and Fred-1.0.0-1.el7.noarch.rpm for systemd. How can I version pin these in puppet? It seems like %dist (el6, el7) are part of the ...
0
votes
1answer
27 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
23 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
48 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
29 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
27 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
157 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
200 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
115 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
411 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
645 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
24 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
43 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
606 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
55 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
216 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
400 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 ...
0
votes
1answer
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
286 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
157 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
106 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
382 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
468 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
65 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
40 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
14 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
87 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
534 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
292 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
4k 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
529 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
152 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 ...
-1
votes
1answer
2k views

Puppet: command not found in Debian 8

I have just installed puppet master package in Debian 8 using apt-get but my puppet command is not working. root@admin:/etc/puppet# puppet -bash: puppet: command not found root@admin:/etc/puppet# pwd ...
2
votes
2answers
11k views

How to check and run a script if it's not running?

I created a pretty simple script called main_start_script that will run 2 python programs in background, code is: python /opt/cuckoo/cuckoo-2/cuckoo.py 1>cuckoo_script/cuckoo_start.txt 2>&1 ...
0
votes
1answer
196 views

undefined method `downcase' for false:FalseClass at puppet agent

I have an old puppet running in an ancient debian Lenny. It worked since recently started complaining about an undefined method downcase. This is Debian Lenny, puppet 2.6.2. It loads facter, and ...
0
votes
1answer
925 views

How to use puppet to format a partition with a file system

With a filesystem such as ext4 or xfs. But how can we make sure it doesn't do it again and again on each run. I want it to do just on the First Run
1
vote
0answers
2k views

Puppet Agent certificate issue

When I am trying to connect to master server from client; this is what I am getting: puppet agent -t Error: Could not request certificate: Error 400 on SERVER: The environment must be purely ...
2
votes
1answer
2k views

Puppet: Could not request certificate

When I start puppet agent I get this error Could not request certificate: Could not intern from text/plain: Certname "puppet ca: localhost/localdomain" must not contain unprintable or non-ASCII ...
0
votes
1answer
94 views

What belongs in site.pp, and what should be moved out of it? [closed]

So far I've been putting everything in site.pp. This causes the file to become long and cluttered. Should I be doing this, or should I move stuff out of site.pp and into external files, and then ...
0
votes
3answers
521 views

Puppet doesn't ignore whitespace

I have an entry that may or may not appear in /etc/rsyslog.conf: # Added for Kiwi *.err;*.emerg;*.alert;*.warning;*.debug;*.notice;*.crit;*.info @10.19.24.50 Since some of these servers ...
1
vote
1answer
812 views

Puppet: Forcing user to change his password at next login

I am using `users' resource to create unix accounts and then set a default password. For this I have written the following manifest . node 'node2.example.com','node3.example.com'{ user { 'askar': ...
1
vote
1answer
208 views

users resource in Puppet not updating /etc/shadow

I have written a manifests using users resource as shown below node 'node2.example.com','node3.example.com'{ user { 'ash': ensure => 'present', managehome => 'true', comment => '...