Thanks Poli, let me try this method and update you

On Thu, Feb 1, 2018 at 12:57 PM, Poil <[email protected]> wrote:

> 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:
>
>    - server = <its FQDN>
>       - 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:
>       - server = <its FQDN>
>       - 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 [email protected].
> 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.
>
>
>


-- 
Warm Regards

Mathew Jose

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAGyi5RJYKuVE9hq9NOfeDnqKDkatUpLJWbfuVjyU%3DirznWn%2Bmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to