5
votes
How to disable automatic scheduled Puppet runs that occur every 30 minutes?
You need to ensure that the puppet agent is not starting as a service. Commands like systemctl, or chkconfig are your friend here (e.g. systemctl disable puppet or chkconfig puppet off). Not sure ...
5
votes
Puppet Windows Agent unable to connect - certificate verify failed: unable to get issuer certificate for /CN=Puppet
I think in certain versions of puppetserver (or possibly when using puppetserver ca setup to initialize the CA) your CA gets created with an intermediate cert in the chain, but when a client cert is ...
4
votes
Accepted
How can I store the output of a Linux command in a Puppet file?
You could do that with the generate() function but as the command generates a different result each time you run it, you would end up with the file changing on every Puppet run.
What you can do ...
3
votes
Accepted
puppet saz/sudo module implmentation
You're doing the right thing in keeping the configuration outside of the module you're using.
Modules should be reusable, and if you customise a module to contain site-local configuration then you ...
3
votes
Accepted
Migrating to Puppet 4.5.2
If I am not wrong then I can copy all manifests under classes and nodes directory to the below manifest directory
Yes, the manifest directory will be imported recursively, so this is the best thing ...
3
votes
Accepted
How to detect NVIDIA GPU with Puppet
You should create a custom fact that either checks the existence of /usr/bin/nvidia-smi (if that's sufficient), with something like:
Facter.add(:nvidia_gpu) do
confine :kernel => 'Linux'
...
2
votes
r10k: proper merging workflow with git
Replacing hard-coded environment names used as refs in your Puppetfile with a variable substituted with current environment name would help make your Puppetfile mergable between branches.
Pseudo code:...
2
votes
Accepted
Different manifest location on Puppet Server/Agent
From what I understand the puppet master --configprint checks locally which settings a puppet server would use.
It does not connect to the configured master and get the value from it.
As you are ...
2
votes
I want to reboot the system using puppet by using reboot resource but it is throwing error like "Invalid resource type: Reboot"?."
PuppetLabs provide a reboot module.
Install it on your Puppet Master using the command-line:
$ puppet module install puppetlabs-reboot
Then call it in your manifests:
package { 'SomeModule':
...
2
votes
Message from application: cannot load such file -- puppet/util/command_line (LoadError)
use irb command, after input $LOAD_PATH check your load path, it seems you have the version problems, e.g. your puppet version and ruby version not compatible
# irb
irb(main):001:0> $LOAD_PATH
=&...
2
votes
Accepted
How do I configure a Windows server to be a Puppet Agent server?
puppet relies on SSL certificates. If you query your puppetmaster via its IP, certificate verification will fail.
On your puppetmaster, run hostname -f.
On your Windows server, make sure you can ...
2
votes
Puppet overwrites symlinked directory
The short answer is to change
file { $path:
ensure => directory,
owner => user,
group => group,
mode => 'a=rx,u+w'
}
into
file { $path:
ensure => link,
...
2
votes
Accepted
Disable Puppet automatic scheduled runs
MCollective does not connect directly to the puppet daemon.
It uses it's own daemon (mcollectived) which will get commands from its configured queue server.
Puppet does not need to run at all in ...
2
votes
Puppet file resource not resolving the source attribute
source => '/tmp/motd' refers the local file /tmp/motd on the Puppet node as source. To get a file from Puppet Master, use a puppet:// URL. Per default all files directories of Puppet modules are ...
2
votes
Accepted
Puppet can't find file of module
As per the docs (and the comments):
Module names should only contain lowercase letters, numbers, and underscores, and should begin with a lowercase letter. [...]
2
votes
Accepted
Workaround to no `puppet module generate`?
Are you actually running Puppet 4.10? Have you by any chance installed Puppet from a gem that is being found in your $PATH ahead of the system-wide Puppet binary? which puppet and puppet --version ...
2
votes
Accepted
Puppet - can I selectively notify a Service?
Yes, this is possible, and your code is pretty close to the correct solution:
if ($env == 'dev') {
$my_service = 'my-service'
} elsif ($env == 'prod') {
$my_service = 'dummy-service'
}
file { &...
2
votes
How to set value of ipa_hostname directive in sssd.conf using Augeas
Took a couple days but I finally figured this out. I added some extra code to show how to address another section in the same file. Hope this helps.
$domain = abc.net
augeas { "sssd.conf ...
1
vote
Accepted
Missing Puppet provider for types group and user
To use resources like user/group (which depend on binaries like useradd/groupadd) you must run puppet apply as root or with root-privileges.
1
vote
Puppet: Run in noop mode except for the first time
With the file resource type, would adding replace => false achieve what you need? Then Puppet will create the file if it's missing, but won't overwrite any possible changed made to that file if the ...
1
vote
Accepted
Puppet Master Could not request certificate Permission Denied
The ownership (user and group) for your /etc/puppetlabs/puppet/ssl directory is wrong. The ssl directory and its children need to be owned by the puppet user and group:
chown -R puppet:puppet /etc/...
1
vote
Windows Puppet Agent - Package Manifest - Extra Slashes
Puppet automatically adds quotes when there are spaces in install_options. This is by design. However this is quite undesirable when you want to control exactly how the input is passed, which is ...
1
vote
Accepted
Puppet apache module removes symlink of documentroot
This is a known issue when manage_docroots is set to false. It seems like the symlink will always be removed until this bug is fixed.
There is an open ticket in puppetlabs
1
vote
Accepted
Is /etc/puppetlabs/puppet/puppet.conf on Puppet4 equivilent to /etc/puppet/puppet.conf
Yes, they are the globally the same. The location can differ depending on version or Operation system distribution. It could also differ between Puppet enterprise (premium paid) and the community ...
1
vote
Sending more than a file to a puppet client
The sourceselect parameter only affects recursive directory copies. For single files, you need multiple file resources, as in that case, only the first file will be copied.
Alternately, when ...
1
vote
Accepted
Puppet client not pulling changes automatically
It's hard answering your question, since you didn't specify the puppet version number you are using.
Since you are able to run the puppet agent manually, it seems like this is not a puppet.conf or ...
1
vote
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.
There is no inheritance, subclasses or parent classes in your example, I don't think it's that. The naming ...
1
vote
Puppet failed to copy exec catalog
The code snippet you posted has nothing to do with the error being output.
The error is saying that you need to qualify the path of the unless command, so test becomes /usr/bin/test (or wherever the ...
1
vote
Accepted
r10k: proper merging workflow with git
Since r10k 2.4.0, it is possible to have the puppet modules match the branch in the control repository. On the branch testing, the Puppetfile from my question might look like this:
mod 'ownmodule1',
...
1
vote
PuppetDB: unable to get local issuer certificate
It looks like problem with hostname on PuppetDB (master) server. Make sure that hostname -f outputs address that is resolvable from all node where puppet agent runs.
From the error log it seems that ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
puppet-agent × 98puppet × 89
puppetmaster × 54
linux × 7
windows × 4
debian × 4
puppetdb × 4
puppet-foreman × 4
centos × 3
ssl × 3
certificate × 3
foreman × 3
centos7 × 2
openssl × 2
automation × 2
phusion-passenger × 2
configuration-management × 2
debian-jessie × 2
facter × 2
ubuntu × 1
amazon-web-services × 1
iptables × 1
apache-2.4 × 1
firewall × 1
windows-server-2012-r2 × 1