Automate CARP configuration on router nodes. Preemption is also enabled (net.inet.carp.preempt=1) so that the router with the highest priority CARP regains
the MASTER role after recovery or after being start late.
Details
Details
1.Apply the state on router nodes.
2.Verify CARP states (MASTER/BACKUP).
3.Simulate failover and recovery.
4.Verify CARP states (MASTER/BACKUP).
Diff Detail
Diff Detail
- Repository
- rOPS Nasqueron Operations
- Lint
Lint Skipped - Unit
No Test Coverage - Branch
- role-router
- Build Status
Buildable 6476 Build 6760: arc lint + arc unit
Event Timeline
Comment Actions
Changes :
- roles/router/carp/files/carp-loader.conf rename on roles/router/carp/files/carp.conf
- roles/router/carp/files/carp.conf is not a Jinja template
- The Salt function is now called in the state and its result is passed to the template through the context, it is a convention.
| roles/core/sysctl/files/sysctl.conf | ||
|---|---|---|
| 45 | Probably best to put that line too in the if block, so we don't have the orphan comment in non-router systems. | |