Hey,

Puppet is scalable don't do this !

Use DNS SRV records to balance around your Puppet Servers
Use a version control software like GIT for managing and deploying your code between your Puppet Servers. You can search for R10K

This documentation haven't been rewrited for Puppet4 but is still valid.
https://docs.puppet.com/puppet/3/scaling_multiple_masters.html

Best regards

Le 30/01/2018 à 11:52, Mathew Jose a écrit :
I want to setup 2 centos servers to act as puppetservers with active-passive mode.

I am not sure  the below plan is good to go , can any of you have a look in to it and suggest me ?


  * One puppet server is the CA master  (Uses the Name :puppet )
  * A second Puppet master  ( Name :Puppet-passive ) using the CA
    master (Name:puppet) for SSL

  * Each puppet master has a cron to regularly do a 'git pull' of the
    puppet environment git repos to /etc/puppetlabs/code/environments
    so all agents use the same code.

On the first puppetmaster (puppet)  that will also be the CA master

a)Install puppetserver

b) In its /etc/puppetlabs/puppet/puppet.conf [main] section:

      o server = <its FQDN>
      o ca_server = <its FQDN>
  * Startup puppetserver on it
  * Put  code into /etc/puppetlabs/code/environments
  * Configure it to be an agent to itself and ensure it successfully
    runs before proceeding

On other master ( puppet-passive ):

  * Install puppetserver
  * Setup the git repos into /etc/puppetlabs/code/environments as you
    did for the CA master
  * In its /etc/puppetlabs/puppet/puppet.conf [main] section:
      o server = <its FQDN>
      o ca_server = <FQDN of CA master>
  * In its [agent] section, make its 'server' be the CA master and set
    the correct environment
  * Run the agent successfully (against the CA master), then make
    'server' be its own FQDN, then run it successfully again

But I am not sure how to failover from the active master server to passive one in case of a requirement.



--
You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com <mailto:puppet-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6fcffed5-ed0f-432e-b953-cc01c0da7d1e%40googlegroups.com <https://groups.google.com/d/msgid/puppet-users/6fcffed5-ed0f-432e-b953-cc01c0da7d1e%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/64eb1763-13ae-03c8-90f6-ffcb3fd5cc68%40quake.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to