Ask Your Question
0

Puppet agent on Master node.

asked 2015-05-26 19:37:18 -0500

Tawha gravatar image

I have set up puppet master and 3 nodes setup. Its working fine but i am facing a real problem on understanding puppet agent that is running on puppet master. Every time i run "puppet agent --test" on master node, it always comes up with the errors, i am not getting the basic idea of what is happening there ? On a master node, master service runs with another name, agent service runs with another name and CA has got another name, am i right ? This amalgamate is confusing me alot. Like how can we explicitly set the settings for agent running on master node ? Puppet master name is same as that of host name of machine or puppet agent name ? Kindly guide me or refer me some document which clearly solved the above mystery.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-05-27 21:59:07 -0500

updated 2015-05-27 21:59:45 -0500

So:

1) Not enough information given, but I'd guess you are getting errors when you run puppet agent --test on the puppet master because you have errors in your manifest as they apply to your puppet master node.

2) Correct.

3) You use the [agent] section of the puppet.conf file to configure the agent on the puppet master and on all nodes.

4) The certname is always used.

edit flag offensive delete link more

Comments

should i use certname for master or for agent , which is the better approach ? if i use the hostname as a certname for master, then master will be recognized as the hostname in ryt? but then what would be the name for agent running on that master node ? Thi i is the main confusion i am facing.

Tawha gravatar imageTawha ( 2015-05-27 22:36:40 -0500 )edit

People usually use the FQDN for the certname. You need to learn the basics of puppet, then read about catalog compilation, and this will make more sense.

Alex Harvey gravatar imageAlex Harvey ( 2015-05-28 00:26:11 -0500 )edit

Well i know what the certnmae is , and i am already using FQDN. You are ot getting me. I have used certname=puppetmaster1 in [master] part of puppet.conf. because of this, the certificate for master nod is puppetmaster1.pem. And i can see from "puppet cert list --all" that it is signed.

Tawha gravatar imageTawha ( 2015-05-28 21:41:45 -0500 )edit

But what about the agent running on this master node? what would be its certificate name ? Will there be extra certificate for it ? because in signed cert list i am seeing only puppetmaster1.

Tawha gravatar imageTawha ( 2015-05-28 21:47:08 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-05-26 19:37:18 -0500

Seen: 435 times

Last updated: May 27 '15