-
Notifications
You must be signed in to change notification settings - Fork 643
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Iterating on the installer without deploying the operator | ||
|
||
Go through the [normal basic install](https://github.com/ansible/awx-operator/blob/devel/README.md#basic-install) steps. | ||
|
||
Install some dependencies: | ||
|
||
``` | ||
$ ansible-galaxy collection install -r molecule/requirements.yml | ||
$ pip install -r molecule/requirements.txt | ||
``` | ||
|
||
To prevent the changes we're about to make from being overwritten, scale down any running instance of the operator: | ||
|
||
``` | ||
$ kubectl scale deployment awx-operator-controller-manager --replicas=0 | ||
``` | ||
|
||
Create a playbook that invokes the installer role (the operator uses ansible-runner's role execution feature): | ||
|
||
```yaml | ||
# run.yml | ||
--- | ||
- hosts: localhost | ||
roles: | ||
- installer | ||
``` | ||
Create a vars file: | ||
```yaml | ||
# vars.yml | ||
ansible_operator_meta: | ||
name: awx | ||
namespace: awx | ||
ingress_type: ingress | ||
``` | ||
Run the installer: | ||
``` | ||
$ ansible-playbook run.yml -e @vars.yml -v | ||
``` | ||
|
||
Grab the URL and admin password: | ||
|
||
``` | ||
$ minikube service awx-service --url -n awx | ||
$ minikube kubectl get secret awx-admin-password -- -o jsonpath="{.data.password}" | base64 --decode | ||
LU6lTfvnkjUvDwL240kXKy1sNhjakZmT | ||
``` |