Required to run puppetcode on a host from a Puppetmaster or master-less (puppet apply)
Questions tagged [puppet-agent]
98 questions
0
votes
1 answer
Puppet apache module removes symlink of documentroot
My documentroot is a symlink. When puppet agent runs, the symlink gets removed. Any ideas?
My code:
'qsu.mydomain.de:443':
ssl: true
port: 443
ssl_key: '/etc/apache2/ssl/qsu.mydomain2.de.key'
ssl_cert: …

user159192121
- 27
- 5
0
votes
1 answer
Puppet file resource not resolving the source attribute
I have started to play with puppet 5 and for some reason the source attribute in the puppet file resource is not working. I have a simple manifest file in my puppet server which is as follows:
file {'/tmp/motd':
source => '/tmp/motd',
}
On the…

hypersonics
- 223
- 5
- 10
0
votes
1 answer
Ubuntu 16.04 preseed and puppet code during kickstart
I have created a preseed based automated installation system incl.
a kickstart.
This is working so far fine - either on vm or on usb on nuc or servers.
My main issue now is that i am not able to run the puppet code during this procedure.
puppet is…

Ben
- 1
0
votes
1 answer
Is /etc/puppetlabs/puppet/puppet.conf on Puppet4 equivilent to /etc/puppet/puppet.conf
I often see tutorials and instructions referencing puppet.conf at /etc/puppet/puppet.conf.
I don't have this file but I do have /etc/puppetlabs/puppet/puppet.conf on my computers with Puppet 4 installed. I just want to confirm that these two files…

Philip Kirkbride
- 279
- 2
- 10
- 30
0
votes
1 answer
Sending more than a file to a puppet client
How I must configure a "init.pp" file for sending more than a file in the same class?
What I have done is this:
class nagios {
file { ['/usr/lib64/nagios/plugins/']:
path => '/usr/lib64/nagios/plugins/',
…
0
votes
1 answer
Problems with Puppet module only including a subclass, which seems to be doing an implicit inclusion of the parent class
I'm having trouble figuring out how Puppet does inheritence and auto-inclusion of modules.
I have a Puppet class that works as expect when I test it "locally" but fails when I push it to my nodes via the Puppet server.
"Locally" means running via…

JDS
- 2,598
- 4
- 30
- 49
0
votes
1 answer
Puppet agent run errors with `Could not run stack level too deep`
I have configured Puppet Server to use an external CA, and generated the necessary keys.
My puppet.conf looks like the following:
[master]
vardir = /opt/puppetlabs/server/data/puppetserver
logdir = /var/log/puppetlabs/puppetserver
rundir =…

Metalopholus
- 1
- 1
- 2
0
votes
1 answer
Puppet failed to copy exec catalog
Seeing the following error in Puppet 4
# /opt/puppetlabs/bin/puppet agent --verbose --no-daemonize --onetime
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for…

Zama Ques
- 523
- 1
- 9
- 24
0
votes
0 answers
Notify value of variable that holds a nested fact - Puppet4
I am trying to understand what the difference is between the following:
$major_release = $::facts['os']['release']['major']
$selinux_is_enabled = $::facts['os']['selinux']['enabled']
If I put in my manifest:
notify { "major release is:…

moley
- 1
0
votes
1 answer
Message from application: cannot load such file -- puppet/util/command_line (LoadError)
I have configured puppet with passenger (using - https://docs.puppet.com/guides/passenger.html AND http://www.olindata.com/blog/2014/09/setup-puppet-master-passenger-and-apache-centos ).
[root@a-puppet-03 ~]# puppet…

Sanjay Bangalore
- 1
- 1
- 1
0
votes
1 answer
Recurring Ansible Tasks
I've been familiarizing myself with Ansible and Puppet for use as a provisioning and configuration management tool. I may not be misunderstanding something about the way Anisble is used, but the only way I see for Ansible to ensure a consistent…

Utegrad
- 145
- 1
- 2
- 8
0
votes
1 answer
Use puppet to deploy bareos (bacula-fork) to my nodes
I'm not sure if this is the right place to ask, but I would really love to use puppet to deploy bareos on my servers.
Bareos is a fork of Bacula and is used for backing up remote systems.
To do that bareos uses a server-instance and different…

MyFault
- 913
- 3
- 15
- 36
0
votes
2 answers
More that one Puppet agent stopped connecting to the Master
Puppet Master version 3.7.1
Puppet Agent version 0.25.4
Hi there Guys,
I'm still in the beginning stages of using puppet running at lease 10 agents.
I have written 20 odd modules and all worked fine.
Yesterday I tried adding custom facts and got…

Malan
- 31
- 1
- 6
0
votes
3 answers
Puppet error : Could not create master.pid
I've configure puppet server and client, when I run puppet master --verbose --no-daemonize on puppet server, I get following message,
Notice: Starting Puppet master version 3.8.4
Error: Could not run: Could not create PID file:…

Rahul
- 67
- 1
- 12
0
votes
1 answer
Puppet EXEC: execute part of code only after another part is executed
I have the following puppet code:
exec { 'set mysql root password':
user => root,
path => "/usr/bin:/usr/sbin:/bin",
command => "/usr/bin/mysqladmin -u root password \'${root_pwd}\'",
onlyif => 'grep…

Spaniard89
- 107
- 1
- 3
- 7