Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated the receptor configs to the v2 #15370

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,61 +1,62 @@
---
- node:
id: awx-{{ item }}
firewallrules:
- action: "reject"
tonode: awx-{{ item }}
toservice: "control"
version: 2
node:
id: awx-{{ item }}
firewallrules:
- action: "reject"
tonode: awx-{{ item }}
toservice: "control"

- log-level: info
log-level:
level: info

- tcp-listener:
port: 2222
tcp-listeners:
- port: 2222

{% if sign_work|bool %}
- work-signing:
privatekey: /etc/receptor/work_private_key.pem
tokenexpiration: 1m
work-signing:
privatekey: /etc/receptor/work_private_key.pem
tokenexpiration: 1m
{% endif %}

{% if sign_work|bool %}
- work-verification:
publickey: /etc/receptor/work_public_key.pem
work-verification:
publickey: /etc/receptor/work_public_key.pem
{% endif %}

{% for i in range(item | int + 1, control_plane_node_count | int + 1) %}
- tcp-peer:
address: awx-{{ i }}:2222
tcp-peers:
- address: awx-{{ i }}:2222
redial: true
{% endfor %}

#- tls-server:
# name: mutual-tls
#tls-servers:
# - name: mutual-tls
# cert: /etc/receptor/certs/awx.crt
# key: /etc/receptor/certs/awx.key
# requireclientcert: true
# clientcas: /etc/receptor/certs/ca.crt

- control-service:
service: control
control-services:
- service: control
filename: {{ receptor_socket_file }}

- work-command:
worktype: local
work-commands:
- worktype: local
command: ansible-runner
params: worker
allowruntimeparams: true
verifysignature: {{ sign_work }}

- work-kubernetes:
worktype: kubernetes-runtime-auth
work-kubernetes:
- worktype: kubernetes-runtime-auth
authmethod: runtime
allowruntimeauth: true
allowruntimepod: true
allowruntimeparams: true
verifysignature: {{ sign_work }}

- work-kubernetes:
worktype: kubernetes-incluster-auth
- worktype: kubernetes-incluster-auth
authmethod: incluster
allowruntimeauth: true
allowruntimepod: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
---
- node:
id: receptor-hop
version: 2
node:
id: receptor-hop

- log-level: info
log-level:
level: info

- tcp-peer:
address: awx_1:2222
tcp-peers:
- address: awx_1:2222
redial: true

- tcp-listener:
port: 5555
tcp-listeners:
- port: 5555

- control-service:
service: control
control-services:
- service: control
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
---
- node:
id: receptor-{{ item }}
version: 2
node:
id: receptor-{{ item }}

- log-level: info
log-level:
level: info

- tcp-peer:
address: tools_receptor_hop:5555
tcp-peers:
- address: tools_receptor_hop:5555
redial: true

{% if sign_work|bool %}
- work-verification:
publickey: /etc/receptor/work_public_key.pem
work-verification:
publickey: /etc/receptor/work_public_key.pem
{% endif %}

- work-command:
worktype: ansible-runner
work-commands:
- worktype: ansible-runner
command: ansible-runner
params: worker
allowruntimeparams: true
verifysignature: {{ sign_work }}

- control-service:
service: control
control-services:
- service: control
filename: {{ receptor_socket_file }}
Loading