add mylimbo-ansible-collections-global
This commit is contained in:
1 parent
41cf353ceb
commit
7369671957
8 files changed
+90
-92
No files matched your search
@@ -1,12 +0,0 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: myinfra-kubernetes-shared-icarus-nodes-mngt
|
||||
spec:
|
||||
interval: 1m
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: myinfra-kubernetes-shared
|
||||
namespace: chimera-limbosolutions-com
|
||||
path: nodes-mngt/icarus-nodes-mngt
|
||||
prune: true
|
||||
@@ -1,2 +0,0 @@
|
||||
**
|
||||
!.gitignore
|
||||
@@ -1,18 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
secretGenerator:
|
||||
- name: icarus-ssh
|
||||
files:
|
||||
- known_hosts=.env.d/icarus-known_hosts
|
||||
- id_rsa=.env.d/icarus-ssh-ansible-id_rsa
|
||||
- id_rsa.pub=.env.d/icarus-ssh-ansible-id_rsa.pub
|
||||
- name: icarus-ansible
|
||||
files:
|
||||
- vault-pass.txt=.env.d/ansible-vault-pass.txt
|
||||
- ansible_become_password=.env.d/ansible_become_password
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
|
||||
|
||||
+3
-4
@@ -1,8 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: icarus-nodes-mngt
|
||||
resources:
|
||||
- fluxcd-kustomization.yaml
|
||||
- secrets
|
||||
|
||||
- workflowTemplates
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- mylimbo-ansible-collections-global-script.yaml
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: WorkflowTemplate
|
||||
metadata:
|
||||
name: mylimbo-ansible-collections-global
|
||||
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: ssh_secret_name
|
||||
script:
|
||||
image: oci.limbosolutions.com/public/mylimbo.ansible.collections.global:latest
|
||||
source: "{{ inputs.parameters.source }}"
|
||||
env:
|
||||
- name: ANSIBLE_VAULT_PASSWORD_FILE
|
||||
value: /workspace/secrets/vault-pass.txt
|
||||
|
||||
- name: ANSIBLE_BECOME_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: ansible_secrets
|
||||
key: ansible_become_password
|
||||
resources:
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "250m"
|
||||
|
||||
volumeMounts:
|
||||
- name: inventory
|
||||
mountPath: /workspace/inventory
|
||||
subPath: inventory
|
||||
- name: ansible_secrets
|
||||
mountPath: /workspace/secrets/vault-pass.txt
|
||||
subPath: vault-pass.txt
|
||||
- name: ssh_secrets
|
||||
mountPath: /home/ansible/.ssh
|
||||
volumes:
|
||||
- name: inventory
|
||||
image:
|
||||
reference: "{{ inputs.parameters.inventory_image_reference }}"
|
||||
pullPolicy: Always
|
||||
|
||||
- name: ansible_secrets
|
||||
secret:
|
||||
secretName: "{{ inputs.parameters.ansible_secret_name }}"
|
||||
|
||||
- name: ssh_secrets
|
||||
secret:
|
||||
secretName: "{{ inputs.parameters.ssh_secret_name }}"
|
||||
@@ -1,11 +1,5 @@
|
||||
###
|
||||
# Hosted on chimera
|
||||
# check directory /cluster/chimera/nodes-mngt/icarus-nodes-mngt
|
||||
# for flux requirements and deploy
|
||||
##
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: icarus-nodes-mngt
|
||||
resources:
|
||||
- infra
|
||||
- cronWorkflows
|
||||
@@ -13,3 +7,4 @@ resources:
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
|
||||
@@ -11,57 +11,25 @@ spec:
|
||||
serviceAccountName: argo-runner
|
||||
imagePullSecrets:
|
||||
- name: oci-mylimbo-infra-icarus-credentials
|
||||
entrypoint: raw-source
|
||||
entrypoint: exec
|
||||
|
||||
templates:
|
||||
- name: raw-source
|
||||
- name: exec
|
||||
inputs:
|
||||
parameters:
|
||||
- name: source
|
||||
script:
|
||||
image: oci.limbosolutions.com/public/mylimbo.ansible.collections.global:latest
|
||||
source: "{{ inputs.parameters.source }}"
|
||||
|
||||
imagePullPolicy: Always
|
||||
|
||||
env:
|
||||
- name: ANSIBLE_VAULT_PASSWORD_FILE
|
||||
value: /workspace/secrets/vault-pass.txt
|
||||
|
||||
- name: ANSIBLE_BECOME_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: icarus-ansible
|
||||
key: ansible_become_password
|
||||
|
||||
resources:
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "250m"
|
||||
|
||||
volumeMounts:
|
||||
|
||||
- name: inventory
|
||||
mountPath: /workspace/inventory
|
||||
subPath: inventory
|
||||
- name: icarus-ansible-secrets
|
||||
mountPath: /workspace/secrets/vault-pass.txt
|
||||
subPath: vault-pass.txt
|
||||
- name: icarus-ssh-secrets
|
||||
mountPath: /home/ansible/.ssh
|
||||
|
||||
volumes:
|
||||
- name: inventory
|
||||
image:
|
||||
reference: oci.limbosolutions.com/mylimbo.infra.icarus/ansible-inventory:latest
|
||||
pullPolicy: Always
|
||||
|
||||
- name: icarus-ansible-secrets
|
||||
secret:
|
||||
secretName: icarus-ansible
|
||||
|
||||
- name: icarus-ssh-secrets
|
||||
secret:
|
||||
secretName: icarus-ssh
|
||||
steps:
|
||||
- - name: script-exec
|
||||
templateRef:
|
||||
name: limbo-ansible-collections-global
|
||||
template: raw-source
|
||||
arguments:
|
||||
parameters:
|
||||
- name: source
|
||||
value: "{{ inputs.parameters.source }}"
|
||||
- name: inventory_image_reference
|
||||
value: "oci.limbosolutions.com/mylimbo.infra.icarus/ansible-inventory:latest"
|
||||
- name: ansible_secret_name
|
||||
value: "icarus-ansible"
|
||||
- name: ssh_secret_name
|
||||
value: "icarus-ssh"
|
||||
Reference in new issue
Block a user