Skip to content

Commit

Permalink
enable empty fence_aws_options by default and improve texts around fe…
Browse files Browse the repository at this point in the history
…nce_aws documentation
  • Loading branch information
OndrejHome committed Oct 1, 2023
1 parent 6b4bf10 commit af013d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,21 @@ Role Variables
- configure cluster with fence_aws fencing device?
You must provide instance id/region of AWS and Instance Profile that is able to start/stop instances for this cluster.
When this is enabled you have to specify 1 additional variables with information on AWS region.
When this is enabled you have to specify `fence_aws_region` variable with information on AWS region.
NOTE: If you don't set up instance profile, it won't work properly or at all
```
cluster_configure_fence_aws: false
fence_aws_region: ''
```
NOTE: You also need to define 'instance_id' in the inventory for each cluster node specifying the instance id
as seen on the AWS or in the output of `fence_aws -o list` command. ([man fence_aws](https://www.mankier.com/8/fence_aws))
NOTE: You also need to define `instance_id` in the inventory for each cluster node by specifying the instance id
as seen in the AWS web console or in the output of `fence_aws -o list` command. ([man fence_aws](https://www.mankier.com/8/fence_aws))
You can optionally change the additional attributes passed to fence_aws using the variable `fence_aws_options`.
You can optionally change the additional attributes passed to fence_aws using the `fence_aws_options` variable.
```
fence_aws_options: ''
```
NOTE: for proper options check document examples below.
NOTE: Examples of proper options for some specific use cases can be found in documents below.
[https://access.redhat.com/articles/4175371#create-stonith](https://access.redhat.com/articles/4175371#create-stonith)
[https://docs.aws.amazon.com/sap/latest/sap-hana/sap-hana-on-aws-cluster-resources-1.html](https://docs.aws.amazon.com/sap/latest/sap-hana/sap-hana-on-aws-cluster-resources-1.html)
Expand Down
8 changes: 4 additions & 4 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ fence_vmware_options: 'ssl="1" ssl_insecure="1"'
# NOTE: Only one of fence_vmware_soap/fence_vmware_rest can be configured as stonith devices share same name.

# configure cluster with fence_aws fencing device?
# You must provide instance id/region of AWS and Instance Profile that is able to start/stop instances for this cluster
# You must provide AWS region and configure Instance Profile (in AWS) that is able to start/stop instances for this cluster
# NOTE: you need to define 'instance_id' in the inventory for each cluster node
cluster_configure_fence_aws: false
# fence_aws_region: ''

# aws fence device option variable which allows you to define aws fence devices
# for proper options check document examples below
# aws fence device options variable allows to define additional options for fence_aws devices.
# For example of some used options check documents below.
# https://access.redhat.com/articles/4175371#create-stonith
# https://docs.aws.amazon.com/sap/latest/sap-hana/sap-hana-on-aws-cluster-resources-1.html
# fence_aws_options: ''
fence_aws_options: ''

# custom fence device configuration variable which allows you to define your own fence devices
# for proper options check examples below
Expand Down

0 comments on commit af013d0

Please sign in to comment.