AnswerBun.com

puppet master is not executing autosign script

Server Fault Asked by Nick G on September 12, 2020

I have created a shell script to autosign Puppet certificate requests at /etc/puppet/autosign.sh and have configured this path in the puppet master’s configuration.

autosign       = /etc/puppet/autosign.sh

For now, I have given all users read and execute permissions on this script. However, when a test client tries to request a certificate, I get the following notification on the client (which is cloud based).

Exiting; no certificate found and waitforcert is disabled

And the following in the server logs:

puppet-master[465]: Could not resolve xx.xx.xx.xx: no name for xx.xx.xx.xx
puppet-master[465]: Could not resolve xx.xx.xx.xx: no name for xx.xx.xx.xx
puppet puppet-master[465]: www.test.com has a waiting certificate request
puppet puppet-master[465]: Could not resolve xx.xx.xx.xx: no name for xx.xx.xx.xx

I have put an entry for this IP and host in /etc/hosts and have checked that I can do forward and reverse lookups for this host. I don’t know why the puppet-master can’t resolve this address or why it isn’t auto-signing the request. I have written the autosign script to write to a logfile, and nothing gets written to it. When I execute the autosign script manually, it writes to the logfile correctly.

I’m on centos 7.2, running puppet 3.8.7. I’m also running this under foreman v1.11.

Manually signing the certificate request allows the puppet agent to execute as normal.

How can I fix this error?

Add your own answers!

Related Questions

Linux systemd: remove slice

1  Asked on September 20, 2020 by mike-s

   

Local subnet behind Tinc VPN not reachable

0  Asked on September 20, 2020 by user3786071

       

Running FlexLM License Server in a Docker Container

1  Asked on September 19, 2020 by gogators

   

Hyper V VM restarting in a loop – How to see VM output?

0  Asked on September 16, 2020 by maralc

   

AWS service like ansible

1  Asked on September 16, 2020 by exeral

   

Compress several files with different names

2  Asked on September 14, 2020 by snowdembr

 

systemd networkd is restarted after systemctl stop

1  Asked on September 14, 2020 by barisdad

   

Issue with HAProxy 2.0.7 setup with tproxy on Centos-7

0  Asked on September 13, 2020 by shailendra-pratap-singh

         

Local install of powershell instead of https://shell.azure.com?

1  Asked on September 13, 2020 by bruce-adams

   

puppet master is not executing autosign script

0  Asked on September 12, 2020 by nick-g

     

Varnish 404 error every few hours

1  Asked on September 11, 2020 by wpdeve

   

Thunderbird can’t connect to my mail server

3  Asked on September 3, 2020 by mustafa-chelik

       

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP