Configure AWX on Kubernetes
Once AWX is deployed, configure Apstra credentials and job templates.
Configure AWX
Run the AWX Deployment Script
To run the AWX configuration script, issue the following command:
# Ensure you're in the scripts directory cd deploy/nutanix/scripts/ chmod +x configure_awx.sh ./configure_awx.sh
Configuration Process
The script will prompt you for the following information:
-
Apstra Configuration
-
Apstra server URL (for example,
https://10.84.106.91) -
Username (admin or your Apstra user)
-
Password
-
-
Kubernetes Configuration
-
Kubernetes API server URL (auto-detected)
-
Cluster configuration (auto-generated)
Password
-
-
Project Configuration
-
Repository URL (defaults to this project)
-
Branch (defaults to 'nutanix')
-
This script automatically performs the following actions:
-
Creates Kubernetes RBAC (ServiceAccount, ClusterRole, ClusterRoleBinding)
-
Clones the project repository
-
Creates AWX credentials for Apstra and Kubernetes
-
Creates AWX inventory and execution environment
-
Creates AWX project pointing to your repository
-
Creates job templates for:
-
create-vrf(Security Zone creation)
(delete-vrf(Security Zone deletion)-
delete-vnet(Virtual Network deletion) -
create-connectivity-template(Connectivity template) -
delete-connectivity-template(Connectivity template deletion)
-
Verify the AWX Configuration
# Check if job templates were created # Login to AWX web interface and verify: # - Templates tab shows 6 job templates # - Credentials tab shows Apstra and Kubernetes credentials # - Projects tab shows eda-apstra-project # - Inventories tab shows "Apstra Inventory"