Compare commits
4
Commits
22a8057228
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44d921b670 | ||
|
|
269970d54d | ||
|
|
51a9570aa3 | ||
|
|
eb6414bb12 |
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- mylimbo-ansible-collections-global-script.yaml
|
- mylimbo-ansible-collections-global-script.yaml
|
||||||
|
- mylimbo-ansible-collections-global-tbot-script.yaml
|
||||||
generatorOptions:
|
generatorOptions:
|
||||||
disableNameSuffixHash: true
|
disableNameSuffixHash: true
|
||||||
|
|
||||||
+81
@@ -0,0 +1,81 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: WorkflowTemplate
|
||||||
|
metadata:
|
||||||
|
name: mylimbo-ansible-collections-global-tbot
|
||||||
|
labels:
|
||||||
|
workflows.argoproj.io/archive-strategy: "false"
|
||||||
|
annotations:
|
||||||
|
workflows.argoproj.io/description: |
|
||||||
|
mylimbo ansible collections global
|
||||||
|
spec:
|
||||||
|
entrypoint: raw-source
|
||||||
|
templates:
|
||||||
|
- name: raw-source
|
||||||
|
inputs:
|
||||||
|
parameters:
|
||||||
|
- name: source
|
||||||
|
- name: inventory_image_reference
|
||||||
|
- name: ansible_secret_name
|
||||||
|
- name: tbot_configmap_name
|
||||||
|
- name: ssh_domain
|
||||||
|
script:
|
||||||
|
image: oci.limbosolutions.com/public/mylimbo.ansible.collections.global:latest
|
||||||
|
source: |
|
||||||
|
export PATH="$PATH:/opt/tbot"
|
||||||
|
mkdir -p /opt/machine-id
|
||||||
|
tbot start --config=/etc/tbot/tbot.yaml --oneshot
|
||||||
|
{{ inputs.parameters.source }}
|
||||||
|
env:
|
||||||
|
- name: ANSIBLE_VAULT_PASSWORD_FILE
|
||||||
|
value: /workspace/secrets/ansible_vault_password
|
||||||
|
|
||||||
|
- name: ANSIBLE_SSH_ARGS
|
||||||
|
value: -F /opt/machine-id/ssh_config
|
||||||
|
|
||||||
|
- name: ANSIBLE_BECOME_PASS
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: "{{ inputs.parameters.ansible_secret_name }}"
|
||||||
|
key: ansible_become_password
|
||||||
|
|
||||||
|
- name: SSH_DOMAIN
|
||||||
|
value: "{{ inputs.parameters.ssh_domain }}"
|
||||||
|
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "512Mi"
|
||||||
|
cpu: "500m"
|
||||||
|
requests:
|
||||||
|
memory: "256Mi"
|
||||||
|
cpu: "250m"
|
||||||
|
|
||||||
|
volumeMounts:
|
||||||
|
- name: inventory
|
||||||
|
mountPath: /workspace/inventory
|
||||||
|
subPath: inventory
|
||||||
|
- name: tbot
|
||||||
|
mountPath: /opt/tbot
|
||||||
|
subPath: usr/local/bin
|
||||||
|
- name: ansible-secrets
|
||||||
|
mountPath: /workspace/secrets
|
||||||
|
- name: tbot-config
|
||||||
|
mountPath: /etc/tbot
|
||||||
|
- name: identity-output
|
||||||
|
mountPath: /opt/machine-id
|
||||||
|
volumes:
|
||||||
|
- name: tbot
|
||||||
|
image:
|
||||||
|
reference: public.ecr.aws/gravitational/tbot-distroless:18.11.4
|
||||||
|
pullPolicy: Always
|
||||||
|
- name: inventory
|
||||||
|
image:
|
||||||
|
reference: "{{ inputs.parameters.inventory_image_reference }}"
|
||||||
|
pullPolicy: Always
|
||||||
|
- name: ansible-secrets
|
||||||
|
secret:
|
||||||
|
secretName: "{{ inputs.parameters.ansible_secret_name }}"
|
||||||
|
- name: tbot-config
|
||||||
|
configMap:
|
||||||
|
name: "{{ inputs.parameters.tbot_configmap_name }}"
|
||||||
|
- name: identity-output
|
||||||
|
emptyDir: {}
|
||||||
Reference in new issue
Block a user