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

Epic: Automate docker static system with Ansible and AWX #3368

Closed
5 of 7 tasks
Haroon-Khel opened this issue Feb 2, 2024 · 2 comments
Closed
5 of 7 tasks

Epic: Automate docker static system with Ansible and AWX #3368

Haroon-Khel opened this issue Feb 2, 2024 · 2 comments
Assignees

Comments

@Haroon-Khel
Copy link
Contributor

Haroon-Khel commented Feb 2, 2024

Turning #3306 into an epic.

What I would like to accomplish in this epic is to take our Docker Static setup and 'Ansibilise' it. The final product should be a system of playbooks and scripts which allow static container deployment via AWX or command line.

We have https://github.com/adoptium/infrastructure/blob/master/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/tasks/main.yml, but it is monolithic. I want to create something more modular, in which a user can choose which containers to deploy, which to remove, as well as an update to date inventory file containing a list of running containers.

Objectives, not necessarily in order:

@sxa
Copy link
Member

sxa commented Feb 12, 2024

OK - testing this on another aarch64 box using k3s. Noting that by default it doesn't work as non-root because exporting KUBECONFIG to be /etc/rancher/k3s/k3s.yaml is something that is not-world readable and gets reset on each restart. Also:

  • A simple make deploy doesn't work because the images being pulled (quay.io/ansible/awx-operator:x.y.z) appear to be x64 only, but they'll work under qemu emulation (Not ideal for production
  • Version 2.11.0 appears not to work - 2.10.0 deploys ok
  • kubectl logs was close to useless (but pointed me at the arch mismatch issue) kubectl describe is your friend for better status logs until you start the actual AWX deploy when kubectl logs -f is useful

I still need to figure out how to make /Vendor_Files into the appropriate container

@Haroon-Khel
Copy link
Contributor Author

Im going to close this epic. The 2 remaining issues can be worked on in later issues. The main objectives of this epic have been met

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants