Puppet Provisioning a Replica in PE for High availability

0 votes
I am trying to configure high availability in my puppet enterprise that I am using. Can somebody help me in provisioning a replica? Thanks.
Aug 1, 2019 in Puppet by Karan
• 19,610 points
1,303 views

1 answer to this question.

0 votes

Provisioning a replica duplicates specific components and services from the master to the replica.

Before you start :

  1. Ensure you have a valid admin RBAC token.

  2. Start a root session by running sudo su -, this will enable you to run the puppet infrastructure commands.

  • Ensure that the node you're provisioning as a replica is set to use the master as its Puppet Server.

  • On the prospective replica node, in the /etc/puppetlabs/puppet/puppet.conf file's mainsection, set the server variable to the node name of the master. 

For example:

[main] 
certname = <REPLICA NODE NAME> 
server = <MASTER NODE NAME>
  • On the master, as the root user, run puppet infrastructure provision replica <REPLICA NODE NAME>

  • After the provision command completes, services begin syncing from the master to the replica. The amount of time the sync takes depends on the size of your PuppetDB and the capability of your hardware. Typical installations take 10-30 minutes. With large data sets, you can optionally do a manual PuppetDB replication to speed installation.

  • Verify that all services running on the master are also running on the replica (Optional):

  • From the master, run puppet infrastructure status --verbose to verify that the replica is available.

  • From any managed node, run puppet agent -t --noop --server_list=<REPLICA HOSTNAME>. If the replica is correctly configured, the Puppet run succeeds and shows no changed resources.

When provisioning is complete, you must enable the replica to complete your HA configuration.

answered Aug 1, 2019 by Sirajul
• 59,230 points
Puppet: Enable a replica as a part of configuring high availability

Related Questions In Puppet

0 votes
1 answer

Is it possible to install puppet agent in a docker container on linux?

Hey @Janice, this is pretty simple. Create ...READ MORE

answered Mar 12, 2019 in Puppet by Jason
1,527 views
0 votes
1 answer

Creating a cron job in puppet

Running a Puppet agent with cron can ...READ MORE

answered Jul 29, 2019 in Puppet by Sirajul
• 59,230 points
2,682 views
0 votes
1 answer

Create a Custom function in puppet.

All the custom functions are implemented as ...READ MORE

answered Jul 29, 2019 in Puppet by Sirajul
• 59,230 points
1,526 views
0 votes
1 answer

Error in PE-PostgreSQL installation : Puppet

When installing PE on machines with large amounts of ...READ MORE

answered Jul 31, 2019 in Puppet by Sirajul
• 59,230 points
928 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,053 views
+2 votes
1 answer
0 votes
1 answer

Puppet: Enable a replica as a part of configuring high availability

Enabling a replica activates most of its ...READ MORE

answered Aug 1, 2019 in Puppet by Sirajul
• 59,230 points
977 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP