Ask Your Question
0

how to run two puppet agents on same server, each pointing to a different master ?

asked 2015-11-03 17:16:01 -0500

charliepup0239 gravatar image

In a case where two teams provides support to same servers (one team provides support up to Operative System and the other team support application layer), and both team have their own Puppet master solution. Can this technically be done and have two puppet agents on same server, each pointing to different master? Windows and Linux servers.

edit retag flag offensive close merge delete

Comments

hello guys, thanks for your prompt responses. However, that is not a fit for us because with only one puppet agent installed we are limited to one version. One puppet master is 3.7.4 at this point and not plans for an upgrade at this moment, the other one is 3.8.3 and planning to upgrade to version

charliepup0239 gravatar imagecharliepup0239 ( 2015-11-05 14:57:41 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2015-11-04 13:53:49 -0500

GregLarkin gravatar image

You definitely do not want to design your Puppet implementation that way. You can achieve your goals by using a single git repository where each team checks in their respective Puppet manifests. Then you'll design a classification strategy to include all of the required classes from both teams to configure your nodes.

edit flag offensive delete link more
1

answered 2015-11-04 04:05:09 -0500

Cristian Falcas gravatar image

One of the teams will need to run puppet with the "--server" option:

  • You can put a default in /etc/puppet/puppet.conf for team1. They will run puppet with "puppet agent -t" or "puppet agent -t --server puppet_server1.domain.net"
  • The other team will have to run it like: "puppet agent -t --server puppet_server2.domain.net"
edit flag offensive delete link more

Comments

1

I have heard of other people implementing it this way. I think (https://puppetlabs.com/presentations/building-hyper-secure-vpc-aws-puppet) they had their compliance modules run once a day, and their main config every 30 min. Second puppet run with a cron running puppet agent -t --server sec.master

DarylW gravatar imageDarylW ( 2015-11-13 09:00:30 -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

Stats

Asked: 2015-11-03 17:16:01 -0500

Seen: 1,423 times

Last updated: Nov 04 '15