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

0 votes
Can somebody please elaborate on how to enable a replica?
Aug 1 in Puppet by Sam
• 4,330 points
41 views

1 answer to this question.

0 votes

Enabling a replica activates most of its duplicated services and components, and instructs agents and infrastructure nodes how to communicate in a failover scenario.

Before you begin:

Back up your classifier hierarchy, because enabling a replica alters classification.

Ensure you have a valid admin RBAC token.

  1. On the master, as the root user, run puppet infrastructure enable replica <REPLICA NODE NAME>, then follow the prompts to instruct Puppet how to configure your deployment.

  2. Deploy updated configuration to nodes by running Puppet or waiting for the next scheduled Puppet run.

    Note: If you use the direct Puppet workflow, where agents use cached catalogs, you must manually deploy the new configuration by running puppet job run --no-enforce-environment --query 'nodes {deactivated is null and expired is null}'

  3. Optional: Perform any tests you feel are necessary to verify that Puppet runs continue to work during failover.
     For example, to simulate an outage on the master:

    • Prevent the replica and a test node from contacting the master. For example, you might temporarily shut down the master or use iptables with drop mode.

    • Run puppet agent -t on the test node. If the replica is correctly configured, the Puppet run succeeds and shows no changed resources. Runs may take longer than normal when in failover mode.

    • Reconnect the replica and test node.

  4. If you've specified any tuning parameters for your master using the console, move them to Hiera instead.

    Using Hiera ensures configuration is applied to both your master and replica.

answered Aug 1 by Sirajul
• 40,990 points

Related Questions In Puppet

0 votes
1 answer

How is puppet used as a Configuration Management tool?

System Administrators usually perform repetitive tasks such ...READ MORE

answered Mar 4 in Puppet by Saurab
60 views
0 votes
1 answer

Does puppet help when all my servers are one of a kind?

Indeed, Puppet can help. All servers are in ...READ MORE

answered Jul 30 in Puppet by Sirajul
• 40,990 points
42 views
0 votes
1 answer

Puppet: Promote a replica to a Master.

Verify that the master is permanently offline. If ...READ MORE

answered Aug 1 in Puppet by Sirajul
• 40,990 points
24 views
0 votes
1 answer

Is there a provision of on failure ability in puppet?

Not a built-in one, no.  They do log failures, of ...READ MORE

answered Aug 6 in Puppet by Sirajul
• 40,990 points
31 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
254 views
0 votes
1 answer
0 votes
1 answer

Puppet : Provisioning a Replica in PE for High availability.

Provisioning a replica duplicates specific components and ...READ MORE

answered Aug 1 in Puppet by Sirajul
• 40,990 points
116 views
0 votes
1 answer

What are the advantages of using Puppet as a CM tool?

Here's a list of a few advantages ...READ MORE

answered Jul 30 in Puppet by Sirajul
• 40,990 points
32 views