diff options
| author | alex <alex@pdp7.net> | 2023-07-02 18:50:36 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-07-02 18:50:36 +0200 |
| commit | 865331dcd82d3561fc736f226f84030516e7e832 (patch) | |
| tree | a5d0edf94eb2cdc87cfc6b5b456188dd77966391 /personal_infra/playbooks | |
| parent | 9229fbe4de52bc8331068c3f1bedb20a8b3de05d (diff) | |
Flesh out weight deployment
Diffstat (limited to 'personal_infra/playbooks')
| -rw-r--r-- | personal_infra/playbooks/roles/zqxjkcrud/tasks/main.yaml | 13 | ||||
| -rw-r--r-- | personal_infra/playbooks/site.yaml | 12 |
2 files changed, 25 insertions, 0 deletions
diff --git a/personal_infra/playbooks/roles/zqxjkcrud/tasks/main.yaml b/personal_infra/playbooks/roles/zqxjkcrud/tasks/main.yaml new file mode 100644 index 00000000..f6ddcdb5 --- /dev/null +++ b/personal_infra/playbooks/roles/zqxjkcrud/tasks/main.yaml @@ -0,0 +1,13 @@ +--- +- name: render manifests + command: kubectl run --context {{ context }} -q -n default -i --rm builder --image quay.io/alexpdp7/zqxjkcrud:update --restart=Never --command -- zqxjkcrud-manifest-builder + args: + stdin: "{{ definition|to_yaml }}" + register: manifestbuild + delegate_to: 127.0.0.1 +- k8s: + context: "{{ context }}" + state: present + apply: true + definition: "{{ manifestbuild.stdout | from_yaml_all }}" + delegate_to: 127.0.0.1 diff --git a/personal_infra/playbooks/site.yaml b/personal_infra/playbooks/site.yaml index 377f5647..b9852a44 100644 --- a/personal_infra/playbooks/site.yaml +++ b/personal_infra/playbooks/site.yaml @@ -49,3 +49,15 @@ gather_facts: false roles: - proxmox_route_53 + +- name: deploy weight + hosts: k8s-prod.h1.int.pdp7.net + tags: + - k8s + - weight + gather_facts: false + roles: + - role: zqxjkcrud + vars: + context: "admin@{{ talos_host.talos_cluster }}" + definition: "{{ weight }}" |
