renamed icarus mngt to hosting mngt
This commit is contained in:
1 parent
6e644f374e
commit
855ec39491
24 files changed
+52
-52
No files matched your search
@@ -0,0 +1,86 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Workflow
|
||||
metadata:
|
||||
namespace: hosting-mngt
|
||||
generateName: tests-ansible-playbook-
|
||||
labels:
|
||||
workflows.argoproj.io/archive-strategy: "false"
|
||||
annotations:
|
||||
workflows.argoproj.io/description: |
|
||||
|
||||
spec:
|
||||
entrypoint: exec
|
||||
serviceAccountName: argo-runner
|
||||
imagePullSecrets:
|
||||
- name: oci-registry-secret
|
||||
templates:
|
||||
- name: exec
|
||||
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
|
||||
ansible-playbook mylimbo.globals.host_maintenance.os_info
|
||||
|
||||
env:
|
||||
- name: ANSIBLE_VAULT_PASSWORD_FILE
|
||||
value: /workspace/secrets/ansible_vault_password
|
||||
|
||||
- name: ANSIBLE_BECOME_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: "ansible-secret"
|
||||
key: ansible_become_password
|
||||
|
||||
- name: ANSIBLE_SSH_ARGS
|
||||
value: -F /opt/machine-id/ssh_config
|
||||
|
||||
- name: SSH_DOMAIN
|
||||
value: teleport.limbosolutions.com
|
||||
|
||||
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: identity-output
|
||||
mountPath: /opt/machine-id
|
||||
|
||||
- name: hosting-mngt-tbot-config
|
||||
mountPath: /etc/tbot
|
||||
|
||||
volumes:
|
||||
- name: inventory
|
||||
image:
|
||||
reference: "oci.limbosolutions.com/mylimbo.infra.icarus/ansible-inventory:latest"
|
||||
pullPolicy: Always
|
||||
- name: tbot
|
||||
image:
|
||||
reference: public.ecr.aws/gravitational/tbot-distroless:18.11.4
|
||||
pullPolicy: Always
|
||||
- name: ansible-secrets
|
||||
secret:
|
||||
secretName: "ansible-secret"
|
||||
- name: identity-output
|
||||
emptyDir: {}
|
||||
- name: hosting-mngt-tbot-config
|
||||
configMap:
|
||||
name: hosting-mngt-tbot-config
|
||||
Reference in new issue
Block a user