Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [puppet]

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

1
vote
1answer
13 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
39 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
38 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 ...
0
votes
0answers
14 views

Foreman ENC is showing error

I am getting below error in my foreman webUI: warning Puppet Unable to fetch my node definition, but the agent run will continue: warning Puppet Error 500 on SERVER: Server Error: Failed to ...
-1
votes
4answers
188 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-\...
2
votes
1answer
248 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
21 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
0answers
20 views

Puppetizing Yast2 Configuration

Background I have a requirement to use SUSE Enterprise Server 12 SP3 across a new cluster of servers. Previously I have used ubuntu and redhat, and have managed their configuration using Puppet. I am ...
0
votes
1answer
32 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
34 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
395 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
35 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
143 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
311 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
1k 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
180 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
104 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
77 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
311 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
397 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
55 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
37 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
83 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
1k 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
456 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
222 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
3k 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
504 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
134 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
8k 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
177 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
763 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
1k 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
82 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
427 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 ...
2
votes
1answer
744 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
178 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 => '...
1
vote
1answer
363 views

Applying hosts resource in puppet to update /etc/hosts

Using puppet, trying with the host resource to update /etc/hosts on node2.example.com with the below entry master.example.com 10.134.39.245 node2.example.com 10.134.39.246 For this I ...
1
vote
0answers
270 views

When do you have to define a class in puppet?

I noticed that whenever classes are defined in puppet, they refer to external modules. If you are doing something in site.pp and not referencing any external modules, would you ever still define a ...
0
votes
1answer
240 views

puppetlabbs/firewall on centos 7.2

I'm trying to do this (with Puppet CE 4.3.2 and the puppetlabs/firewall modules from the forge): firewall { '110 allow http/https access': dport => [80, 443], proto => tcp, ...
0
votes
0answers
297 views

augtool saving failed

I am trying to set some parameter using augtool but getting strange error Linux$ sudo augtool set /files/etc/abrt/abrt-action-save-package-data.conf/OpenGPGCheck no error: Failed to execute command ...
0
votes
1answer
214 views

Deploying a package through puppet from URL

How can i install a package through puppet by using the URL of the .tar.gz of the package on centos 6 client. Is there any native support in puppet without installing anything extra on the puppet ...
1
vote
1answer
2k views

How do I apply a manifest from a Puppet Master server to a Puppet Agent node server?

I installed Puppet Agent on a CentOS 7 server. I installed Puppet Master on a different CentOS 7 server. I'm using the free version of Puppet on both servers. The Puppet Agent server requested a ...
1
vote
1answer
2k views

using puppet to format a disk/volume

When I provision a new virtual machine with centos6, it does most of the configuration through puppet. But I have to manually run the command #mkfs.ext4 /dev/vdc to format /dev/vdc. Is there any way ...
-1
votes
1answer
92 views

Puppet agent certificate error after rebuilding openstack instance

I have an open-stack instance vm , and puppet agent was working fine on it. By running the command puppet agent -t, it was good. But for some reason i had to rebuild the instance by using the open-...
1
vote
1answer
655 views

How to use Hiera data from source repository?

I've got a masterless Puppet setup and I'd like to simply add information such as package names based on $::osfamily for portability. It seems Hiera is made for this sort of thing, but I can't figure ...