awx

by Helm

Helm chartv3.4.3App 17.1.0

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is the upstream project for Tower, a commercial derivative of AWX.

About this chart

Ansible AWX

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is the upstream project for Tower, a commercial derivative of AWX.

Homepage: https://github.com/ansible/awx

Installation

Add our repo:

helm repo add adwerx https://adwerx.github.io/charts

Install the chart:

helm install adwerx/awx

Maintainers

NameEmailUrl
Josh Bielickhttps://github.com/jbielick

Source Code

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamipostgresql10.5.0

Job Isolation and Security Context

Ansible AWX task runners employ a legacy process isolation for playbook runs (jobs) via bubblewrap. The purpose of this isolation is to restrict access to shared AWX subsystems, which could be multi-tenant—access the AWX task pod has and could be exploited. If you are not using AWX in a multi-tenant fashion and trust users writing playbooks to have full access to a Pod in your cluster, you may choose to disable bubblewrap. If you'd like to retain bubblewrap isolation on playbook runs in a kubernetes deployment, you'll need to run the AWX task pods with a privileged security context (PR welcome).

Per the AWX documentation, if you choose to turn off Job Isolation you can do so by following the instructions below:

Disabling bubblewrap support: To disable bubblewrap support for running jobs (playbook runs only), ensure you are logged in as the Admin user and click on the settings gear settings in the upper right-hand corner. Click on the “Configure Tower” box, then click on the “Jobs” tab. Scroll down until you see “Enable Job Isolation” and change the radio button selection to “off”.

More information on the future of playbook isolation here

Values

KeyTypeDefaultDescription
affinitystringnil
defaultAdminExistingSecretstringnilThe name of an existing secret in the same namespace containing AWX_ADMIN_USER and AWX_ADMIN_PASSWORD keys and values
defaultAdminPasswordstringnilThe seeded admin user credentials. You must set this value or provide defaultAdminExistingSecret
defaultAdminUserstringnilThe seeded admin user credentials. You must set this value or provide defaultAdminExistingSecret
default_admin_passwordstringnil
default_admin_userstringnil
extraConfigurationstring"# INSIGHTS_URL_BASE = \"https://example.org\""
extraVolumeslist[]
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"ansible/awx"
image.tagstring"17.1.0"
ingress.annotationsobject{}
ingress.defaultBackendbooltrueWhether the default backend for this ingress should route to the awx service
ingress.enabledboolfalse
ingress.hostslist[]Define ingress routing here
ingress.tlslist[]
nameOverridestring""
nodeSelectorstringnil
postgresqlobject{"enabled":true,"image":{"registry":"docker.io","repository":"bitnami/postgresql","tag":9.6},"metrics":{"enabled":false},"persistence":{"enabled":true},"postgresqlDatabase":"awx","postgresqlHost":null,"postgresqlPassword":null,"postgresqlUsername":"awx","service":{"port":"5432"}}See bitnami/postgresql chart values for all options
postgresql.enabledbooltrueSet to false if using external postgresql
postgresql.postgresqlHoststringnilSet this only if using an external postgresql database. Alternatively, you can provide this value through postgresqlExistingSecret.
postgresql.postgresqlPasswordstringnilYou must set this value or provide postgresqlExistingSecret
postgresqlExistingSecretstringnilThe name of an existing secret in the same namespace containing DATABASE_USER, DATABASE_NAME, DATABASE_HOST, DATABASE_HOST, DATABASE_PORT, DATABASE_PASSWORD, DATABASE_ADMIN_PASSWORD keys and values
redis.image.pullPolicystring"IfNotPresent"
redis.image.repositorystring"redis"
redis.image.tagstring"6.2.4"
redis.resourcesobject{}
replicaCountint1
secretKeystringnilThe key used to encrypt secrets in the AWX database. You must set this value or provide secretKeyExistingSecret
secretKeyExistingSecretstringnilThe name of an existing secret in the same namespace containing a SECRET_KEY key and value
secret_keystringnil
service.portint8080
service.typestring"ClusterIP"
serviceAccountNamestringnilExisting service account name for AWX pods to use (optional)
task.extraVolumeMountslist[]
task.resourcesobject{}
tolerationsstringnil
web.extraVolumeMountslist[]
web.extraVolumeslist[]
web.resourcesobject{}

Deploy awx with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has awx on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartawx is pinned at v3.4.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply