Skip to content

Commit

Permalink
Add missing instance arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Marges, RSY (Rick) authored and Tompage1994 committed Mar 15, 2024
1 parent c2e6772 commit d7d203e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/add_instance_arguments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- instance role - add missing arguments introduced in ansible.controller 4.5.0 or awx.awx 23.0.0
4 changes: 3 additions & 1 deletion roles/instances/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,14 @@ This also speeds up the overall role.
|Variable Name|Default Value|Required|Type|Description|
|:---:|:---:|:---:|:---:|:---:|
|`hostname`|""|yes|str|Hostname of this instance.|
|`capacity_adjustment`|""|float|no|Capacity adjustment between 0 and 1. |
|`capacity_adjustment`|""|float|no|Capacity adjustment between 0 and 1.|
|`enabled`|False|no|bool|If true, the instance will be enabled and used.|
|`managed_by_policy`|False|no|bool|If true, will be managed by instance group policy.|
|`node_type`|""|no|str|Role that this node plays in the mesh. Most likely Execution. Current options are 'execution'.|
|`node_state`|""|no|str|Indicates the current life cycle stage of this instance. Current options are 'installed' and 'deprovisioning'.|
|`listener_port`|""|no|int|Port that Receptor will listen for incoming connections on.|
|`peers`|[]|no|list|List of peers to connect outbound to. Only configurable for hop and execution nodes.|
|`peers_from_control_nodes`|False|no|bool|If enabled, control plane nodes will automatically peer to this node.|

### Standard Instance Data Structure

Expand Down
2 changes: 2 additions & 0 deletions roles/instances/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
node_type: "{{ __controller_instance_item.node_type | default(omit, true) }}"
node_state: "{{ __controller_instance_item.node_state | default(omit, true) }}"
listener_port: "{{ __controller_instance_item.listener_port | default((27199 if controller_configuration_instances_enforce_defaults else omit), true) }}"
peers: "{{ __controller_instance_item.peers | default(([] if controller_configuration_instances_enforce_defaults else omit), true) }}"
peers_from_control_nodes: "{{ __controller_instance_item.peers_from_control_nodes | default((false if controller_configuration_instances_enforce_defaults else omit), true) }}"

# Role Standard Options
controller_username: "{{ controller_username | default(omit, true) }}"
Expand Down

0 comments on commit d7d203e

Please sign in to comment.