Skip to content

Commit

Permalink
Update awx-manage commands for mesh ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu committed Jan 8, 2024
1 parent 4ef6a56 commit 43d3d6c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions roles/mesh_ingress/tasks/creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,26 +116,24 @@
set_fact:
awx_task_pod_name: "{{ awx_task_pod['metadata']['name'] | default('') }}"

# TODO: awx-manage provision_instance does not currently support peer from control nodes
# !!!dependent on API/CLI changes!!!
- name: Add new instance to AWX
kubernetes.core.k8s_exec:
namespace: "{{ ansible_operator_meta.namespace }}"
pod: "{{ awx_task_pod_name }}"
container: "{{ deployment_name }}-task"
command: "awx-manage provision_instance --hostname {{ ansible_operator_meta.name }} --node_type hop"
command: "awx-manage provision_instance --hostname {{ ansible_operator_meta.name }} --node_type hop --protocol=ws --managed"
register: result

- name: Add internal receptor address
kubernetes.core.k8s_exec:
namespace: "{{ ansible_operator_meta.namespace }}"
pod: "{{ awx_task_pod_name }}"
container: "{{ deployment_name }}-task"
command: "awx-manage add_receptor_address --hostname {{ ansible_operator_meta.name }} --address {{ ansible_operator_meta.name }} --port 27199 --protocol ws --is_internal --peers_from_control_nodes"
command: "awx-manage add_receptor_address --instance {{ ansible_operator_meta.name }} --address {{ ansible_operator_meta.name }} --port 27199 --peers_from_control_nodes --k8s_routable --canonical --managed"

Check failure on line 132 in roles/mesh_ingress/tasks/creation.yml

View workflow job for this annotation

GitHub Actions / molecule (--skip-tags=replicas)

132:171 [line-length] line too long (210 > 170 characters)

Check failure on line 132 in roles/mesh_ingress/tasks/creation.yml

View workflow job for this annotation

GitHub Actions / molecule (-t replicas)

132:171 [line-length] line too long (210 > 170 characters)

Check failure on line 132 in roles/mesh_ingress/tasks/creation.yml

View workflow job for this annotation

GitHub Actions / molecule (--skip-tags=replicas)

132:171 [line-length] line too long (210 > 170 characters)

Check failure on line 132 in roles/mesh_ingress/tasks/creation.yml

View workflow job for this annotation

GitHub Actions / molecule (-t replicas)

132:171 [line-length] line too long (210 > 170 characters)

- name: Add external receptor address
kubernetes.core.k8s_exec:
namespace: "{{ ansible_operator_meta.namespace }}"
pod: "{{ awx_task_pod_name }}"
container: "{{ deployment_name }}-task"
command: "awx-manage add_receptor_address --hostname {{ ansible_operator_meta.name }} --address {{ external_hostname }} --port 443 --protocol ws"
command: "awx-manage add_receptor_address --instance {{ ansible_operator_meta.name }} --address {{ external_hostname }} --port 443 --managed"

0 comments on commit 43d3d6c

Please sign in to comment.