Skip to content

Commit

Permalink
Use augments to enable HA instead of modifying policy
Browse files Browse the repository at this point in the history
We instruct people to use the preffered way of defining custom
classes on hosts even when enabling HA.

(cherry picked from commit 3ec7939)
  • Loading branch information
vpodzime committed Mar 4, 2021
1 parent 06d8aa1 commit 7c98f4b
Showing 1 changed file with 7 additions and 10 deletions.
Expand Up @@ -513,18 +513,15 @@ HA fencing guide](https://access.redhat.com/documentation/en-us/red_hat_enterpri

**IMPORTANT:** Copy over only the hashes, without the `SHA=` prefix.

6. **On both nodes,** modify the */var/cfengine/masterfiles/controls/def.cf* and
*/var/cfengine/masterfiles/controls/update_def.cf* files to enable HA by uncommenting the
following line:
6. **On both nodes,** add the following class definition to the */var/cfengine/masterfiles/def.json*
file to enable HA:

```
"enable_cfengine_enterprise_hub_ha" expression => "enterprise_edition";
```

and commenting or removing the line

```
"enable_cfengine_enterprise_hub_ha" expression => "!any";`
{
"classes": {
"enable_cfengine_enterprise_hub_ha": [ "any::" ]
}
}
```

7. **On both nodes,** run `cf-agent -Kf update.cf` to make sure that the new policy is copied from
Expand Down

0 comments on commit 7c98f4b

Please sign in to comment.