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 in Puppet by Karan
• 3,770 points
71 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 by Sirajul
• 31,180 points

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 in Puppet by Jason
153 views
0 votes
1 answer

Creating a cron job in puppet

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

answered Jul 29 in Puppet by Sirajul
• 31,180 points
49 views
0 votes
1 answer

Create a Custom function in puppet.

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

answered Jul 29 in Puppet by Sirajul
• 31,180 points
39 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 in Puppet by Sirajul
• 31,180 points
25 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
181 views
0 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 in Puppet by Sirajul
• 31,180 points
21 views
0 votes
1 answer