From 9b9adcff03816b1fecf7fde3940a54f1a0bc95e0 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Wed, 31 Jul 2024 23:41:23 -0600 Subject: [PATCH] Update Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md --- .../AWX/AWX Operator/Ansible AWX Operator.md | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md b/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md index beabbf0..df5649c 100644 --- a/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md +++ b/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md @@ -201,22 +201,9 @@ kubectl -n awx create configmap awx-kerberos-config --from-file=/awx/krb5.conf ``` ### Create Custom DNS Host Records for Domain Controllers -You will need to be sure that AWX is able to resolve the FQDNs of the domain controllers for Kerberos to be happy. We will do this by adding another config file in the `/awx` directory and applying it to the deployment. -```jsx title="/awx/ad_hosts.yml" -apiVersion: v1 -kind: ConfigMap -metadata: - name: custom-hosts - namespace: default -data: - hosts: | - 192.168.3.25 LAB-DC-01.bunny-lab.io LAB-DC-01 - 192.168.3.26 LAB-DC-02.bunny-lab.io LAB-DC-02 -``` - -Then we apply them with the following command: +You will need to be sure that AWX is able to resolve the FQDNs of the domain controllers for Kerberos to be happy. ``` sh -kubectl apply -f ad_hosts.yml +sudo sh -c 'echo -e "192.168.3.25 LAB-DC-01.bunny-lab.io LAB-DC-01\n192.168.3.26 LAB-DC-02.bunny-lab.io LAB-DC-02" >> /etc/hosts' ``` ### Create an AWX Container Group