-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(main): ditch ansible-semaphore and use ansible directly
- Loading branch information
Showing
30 changed files
with
940 additions
and
1,440 deletions.
There are no files selected for viewing
File renamed without changes.
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,20 @@ | ||
# Source Image | ||
FROM docker.io/library/python:3.11-alpine3.19 | ||
|
||
# Environment vars | ||
ENV PIPX_BIN_DIR="/usr/local/py-utils" | ||
ENV PIPX_HOME="/usr/local/pipx" | ||
ENV POETRY_VERSION="1.8.2" | ||
ENV POETRY_VIRTUALENVS_CREATE="true" | ||
ENV POETRY_VIRTUALENVS_IN_PROJECT="true" | ||
ENV PATH="${PATH}:${PIPX_BIN_DIR}:${PIPX_HOME}/venvs/poetry/bin:/ansible/.venv/bin" | ||
|
||
# Install system dependencies | ||
RUN apk --no-cache add pipx openssh bash | ||
RUN pipx install poetry==${POETRY_VERSION} | ||
|
||
# Install ansible and dependencies | ||
WORKDIR /ansible | ||
COPY . . | ||
RUN poetry install --no-root | ||
CMD poetry env use .venv/bin/python |
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
File renamed without changes.
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,9 @@ | ||
--- | ||
all: | ||
hosts: | ||
localhost: | ||
host.ublue.local: | ||
ansible_host: host.containers.internal | ||
ansible_user: "{{ lookup('ansible.builtin.env', 'ANSIBLE_HOST_USER') }}" | ||
ansible_become_password: "{{ lookup('ansible.builtin.env', 'ANSIBLE_HOST_BECOME_PASSWORD') }}" | ||
children: |
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,26 @@ | ||
--- | ||
- name: Configure host system | ||
hosts: host.ublue.local | ||
gather_facts: true | ||
tasks: | ||
- name: Add ublue.local entries to /etc/hosts | ||
ansible.builtin.lineinfile: | ||
path: /etc/hosts | ||
search_string: 127.0.0.1 rvproxy.ublue.local registry.ublue.local forge.ublue.local | ||
line: 127.0.0.1 rvproxy.ublue.local registry.ublue.local forge.ublue.local | ||
state: present | ||
become: true | ||
|
||
- name: Add ublue.local TSL root certificate to trust anchors | ||
ansible.builtin.copy: | ||
src: /certs/tls/ublue-os_forge-root.pem | ||
dest: /etc/pki/ca-trust/source/anchors/ublue-os_forge-root.pem | ||
force: true | ||
mode: "0644" | ||
become: true | ||
|
||
- name: Update ca-trust store | ||
ansible.builtin.command: | ||
cmd: update-ca-trust | ||
changed_when: false | ||
become: true |
Large diffs are not rendered by default.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.