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
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
metadata:
|
metadata:
|
||||||
name: icarus-nodes-mngt
|
name: hosting-mngt
|
||||||
spec:
|
spec:
|
||||||
interval: 1m
|
interval: 1m
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
name: nodes-mngt
|
name: nodes-mngt
|
||||||
namespace: chimera-limbosolutions-com
|
namespace: chimera-limbosolutions-com
|
||||||
path: deploy/icarus-mngt
|
path: deploy/hosting-mngt
|
||||||
prune: true
|
prune: true
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: icarus-nodes-mngt
|
namespace: hosting-mngt
|
||||||
resources:
|
resources:
|
||||||
- fluxcd-kustomization.yaml
|
- fluxcd-kustomization.yaml
|
||||||
- secrets
|
- secrets
|
||||||
File renamed without changes.
File renamed without changes.
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: icarus-nodes-mngt
|
namespace: hosting-mngt
|
||||||
secretGenerator:
|
secretGenerator:
|
||||||
- name: icarus-ansible
|
- name: ansible-secret
|
||||||
files:
|
files:
|
||||||
- ansible_vault_password=.env.d/ansible_vault_password
|
- ansible_vault_password=.env.d/ansible_vault_password
|
||||||
- ansible_become_password=.env.d/ansible_become_password
|
- ansible_become_password=.env.d/ansible_become_password
|
||||||
+1
-2
@@ -2,7 +2,6 @@ apiVersion: argoproj.io/v1alpha1
|
|||||||
kind: CronWorkflow
|
kind: CronWorkflow
|
||||||
metadata:
|
metadata:
|
||||||
name: crictl-prune
|
name: crictl-prune
|
||||||
namespace: icarus-nodes-mngt
|
|
||||||
spec:
|
spec:
|
||||||
schedules:
|
schedules:
|
||||||
- "0 0 * * *"
|
- "0 0 * * *"
|
||||||
@@ -19,7 +18,7 @@ spec:
|
|||||||
steps:
|
steps:
|
||||||
- - name: script-exec
|
- - name: script-exec
|
||||||
templateRef:
|
templateRef:
|
||||||
name: icarus-ansible-script
|
name: hosting-mngt-ansible-script
|
||||||
template: raw-source
|
template: raw-source
|
||||||
arguments:
|
arguments:
|
||||||
parameters:
|
parameters:
|
||||||
+1
@@ -1,5 +1,6 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
namespace: hosting-mngt
|
||||||
resources:
|
resources:
|
||||||
- crictl-prune.yaml
|
- crictl-prune.yaml
|
||||||
generatorOptions:
|
generatorOptions:
|
||||||
File renamed without changes.
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: icarus-nodes-mngt
|
namespace: hosting-mngt
|
||||||
resources:
|
resources:
|
||||||
- argo-runner-sa.yaml
|
- argo-runner-sa.yaml
|
||||||
- icarus-nodes-mngt-tbot-config.yaml
|
- tbot-config.yaml
|
||||||
generatorOptions:
|
generatorOptions:
|
||||||
disableNameSuffixHash: true
|
disableNameSuffixHash: true
|
||||||
|
|
||||||
+2
-3
@@ -1,8 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: icarus-nodes-mngt-tbot-config
|
name: hosting-mngt-tbot-config
|
||||||
namespace: icarus-nodes-mngt
|
|
||||||
data:
|
data:
|
||||||
tbot.yaml: |
|
tbot.yaml: |
|
||||||
version: v2
|
version: v2
|
||||||
@@ -10,7 +9,7 @@ data:
|
|||||||
on_one_shot: "exit"
|
on_one_shot: "exit"
|
||||||
onboarding:
|
onboarding:
|
||||||
join_method: "kubernetes"
|
join_method: "kubernetes"
|
||||||
token: "icarus-nodes-mngt"
|
token: "hosting-mngt"
|
||||||
storage:
|
storage:
|
||||||
type: "memory"
|
type: "memory"
|
||||||
services:
|
services:
|
||||||
@@ -1,10 +1,11 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: icarus-nodes-mngt
|
namespace: hosting-mngt
|
||||||
resources:
|
resources:
|
||||||
- infra
|
- infra
|
||||||
- cronWorkflows
|
- cronWorkflows
|
||||||
- workflowTemplates
|
- workflowTemplates
|
||||||
|
- mylimbo-ansible-collections-global
|
||||||
generatorOptions:
|
generatorOptions:
|
||||||
disableNameSuffixHash: true
|
disableNameSuffixHash: true
|
||||||
|
|
||||||
+2
-2
@@ -2,7 +2,7 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
metadata:
|
metadata:
|
||||||
name: mylimbo-ansible-collections-global
|
name: mylimbo-ansible-collections-global
|
||||||
namespace: icarus-nodes-mngt
|
namespace: hosting-mngt
|
||||||
spec:
|
spec:
|
||||||
interval: 1m
|
interval: 1m
|
||||||
sourceRef:
|
sourceRef:
|
||||||
@@ -11,4 +11,4 @@ spec:
|
|||||||
namespace: chimera-limbosolutions-com
|
namespace: chimera-limbosolutions-com
|
||||||
path: mylimbo-ansible-collections-global
|
path: mylimbo-ansible-collections-global
|
||||||
prune: true
|
prune: true
|
||||||
targetNamespace: icarus-nodes-mngt
|
targetNamespace: hosting-mngt
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: icarus-nodes-mngt
|
namespace: hosting-mngt
|
||||||
resources:
|
resources:
|
||||||
- fluxcd-kustomization.yaml
|
- fluxcd-kustomization.yaml
|
||||||
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# teleport
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
tctl create -f deploy/hosting-mngt/teleport-manifests/manifest.yaml
|
||||||
|
tctl bots update hosting-mngt --add-roles hosting-mngt
|
||||||
|
```
|
||||||
+5
-5
@@ -2,7 +2,7 @@ kind: bot
|
|||||||
version: v1
|
version: v1
|
||||||
metadata:
|
metadata:
|
||||||
# name is a unique identifier for the Bot in the cluster.
|
# name is a unique identifier for the Bot in the cluster.
|
||||||
name: icarus-nodes-mngt
|
name: hosting-mngt
|
||||||
spec:
|
spec:
|
||||||
roles: []
|
roles: []
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ spec:
|
|||||||
kind: role
|
kind: role
|
||||||
version: v6
|
version: v6
|
||||||
metadata:
|
metadata:
|
||||||
name: icarus-nodes-mngt # use the auto created bot role (created by bot yaml)
|
name: hosting-mngt
|
||||||
spec:
|
spec:
|
||||||
allow:
|
allow:
|
||||||
# Allow login to the user 'ansible'.
|
# Allow login to the user 'ansible'.
|
||||||
@@ -27,11 +27,11 @@ spec:
|
|||||||
kind: token
|
kind: token
|
||||||
version: v2
|
version: v2
|
||||||
metadata:
|
metadata:
|
||||||
name: icarus-nodes-mngt
|
name: hosting-mngt
|
||||||
spec:
|
spec:
|
||||||
roles: [Bot]
|
roles: [Bot]
|
||||||
bot_name: icarus-nodes-mngt
|
bot_name: hosting-mngt
|
||||||
join_method: kubernetes
|
join_method: kubernetes
|
||||||
kubernetes:
|
kubernetes:
|
||||||
allow:
|
allow:
|
||||||
- service_account: icarus-nodes-mngt:argo-runner
|
- service_account: hosting-mngt:argo-runner
|
||||||
+4
-4
@@ -1,12 +1,12 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: WorkflowTemplate
|
kind: WorkflowTemplate
|
||||||
metadata:
|
metadata:
|
||||||
name: icarus-ansible-script
|
name: hosting-mngt-ansible-script
|
||||||
labels:
|
labels:
|
||||||
workflows.argoproj.io/archive-strategy: "false"
|
workflows.argoproj.io/archive-strategy: "false"
|
||||||
annotations:
|
annotations:
|
||||||
workflows.argoproj.io/description: |
|
workflows.argoproj.io/description: |
|
||||||
icarus ansible script
|
hosting ansible script
|
||||||
spec:
|
spec:
|
||||||
entrypoint: raw-source
|
entrypoint: raw-source
|
||||||
templates:
|
templates:
|
||||||
@@ -24,10 +24,10 @@ spec:
|
|||||||
- name: source
|
- name: source
|
||||||
value: "{{ inputs.parameters.source }}"
|
value: "{{ inputs.parameters.source }}"
|
||||||
- name: tbot_configmap_name
|
- name: tbot_configmap_name
|
||||||
value: icarus-nodes-mngt-tbot-config
|
value: hosting-mngt-tbot-config
|
||||||
- name: inventory_image_reference
|
- name: inventory_image_reference
|
||||||
value: oci.limbosolutions.com/mylimbo.infra.icarus/ansible-inventory:latest
|
value: oci.limbosolutions.com/mylimbo.infra.icarus/ansible-inventory:latest
|
||||||
- name: ansible_secret_name
|
- name: ansible_secret_name
|
||||||
value: icarus-ansible
|
value: ansible-secret
|
||||||
- name: ssh_domain
|
- name: ssh_domain
|
||||||
value: teleport.limbosolutions.com
|
value: teleport.limbosolutions.com
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- icarus-ansible-script.yaml
|
- hosting-mngt-ansible-script.yaml
|
||||||
generatorOptions:
|
generatorOptions:
|
||||||
disableNameSuffixHash: true
|
disableNameSuffixHash: true
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# teleport
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
tctl create -f deploy/icarus-mngt/teleport-manifests/manifest.yaml
|
|
||||||
tctl bots update icarus-nodes-mngt --add-roles icarus-nodes-mngt
|
|
||||||
```
|
|
||||||
+2
-2
@@ -2,7 +2,7 @@ apiVersion: argoproj.io/v1alpha1
|
|||||||
kind: Workflow
|
kind: Workflow
|
||||||
metadata:
|
metadata:
|
||||||
generateName: node-get-info-
|
generateName: node-get-info-
|
||||||
namespace: icarus-nodes-mngt
|
namespace: hosting-mngt
|
||||||
spec:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: oci-registry-secret
|
- name: oci-registry-secret
|
||||||
@@ -14,7 +14,7 @@ spec:
|
|||||||
steps:
|
steps:
|
||||||
- - name: script-exec
|
- - name: script-exec
|
||||||
templateRef:
|
templateRef:
|
||||||
name: icarus-ansible-script
|
name: hosting-mngt-ansible-script
|
||||||
template: raw-source
|
template: raw-source
|
||||||
arguments:
|
arguments:
|
||||||
parameters:
|
parameters:
|
||||||
+2
-2
@@ -2,7 +2,7 @@ apiVersion: argoproj.io/v1alpha1
|
|||||||
kind: Workflow
|
kind: Workflow
|
||||||
metadata:
|
metadata:
|
||||||
generateName: nodes-update-os-
|
generateName: nodes-update-os-
|
||||||
namespace: icarus-nodes-mngt
|
namespace: hosting-mngt
|
||||||
spec:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: oci-registry-secret
|
- name: oci-registry-secret
|
||||||
@@ -14,7 +14,7 @@ spec:
|
|||||||
- - name: script-exec
|
- - name: script-exec
|
||||||
templateRef:
|
templateRef:
|
||||||
# /deploy/icarus-mngt
|
# /deploy/icarus-mngt
|
||||||
name: icarus-ansible-script
|
name: hosting-mngt-ansible-script
|
||||||
template: raw-source
|
template: raw-source
|
||||||
arguments:
|
arguments:
|
||||||
parameters:
|
parameters:
|
||||||
+7
-7
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Workflow
|
kind: Workflow
|
||||||
metadata:
|
metadata:
|
||||||
namespace: icarus-nodes-mngt
|
namespace: hosting-mngt
|
||||||
generateName: tests-ansible-playbook-
|
generateName: tests-ansible-playbook-
|
||||||
labels:
|
labels:
|
||||||
workflows.argoproj.io/archive-strategy: "false"
|
workflows.argoproj.io/archive-strategy: "false"
|
||||||
@@ -25,12 +25,12 @@ spec:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
- name: ANSIBLE_VAULT_PASSWORD_FILE
|
- name: ANSIBLE_VAULT_PASSWORD_FILE
|
||||||
value: /workspace/secrets/vault_password
|
value: /workspace/secrets/ansible_vault_password
|
||||||
|
|
||||||
- name: ANSIBLE_BECOME_PASS
|
- name: ANSIBLE_BECOME_PASS
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: "icarus-ansible"
|
name: "ansible-secret"
|
||||||
key: ansible_become_password
|
key: ansible_become_password
|
||||||
|
|
||||||
- name: ANSIBLE_SSH_ARGS
|
- name: ANSIBLE_SSH_ARGS
|
||||||
@@ -64,7 +64,7 @@ spec:
|
|||||||
- name: identity-output
|
- name: identity-output
|
||||||
mountPath: /opt/machine-id
|
mountPath: /opt/machine-id
|
||||||
|
|
||||||
- name: icarus-nodes-mngt-tbot-config
|
- name: hosting-mngt-tbot-config
|
||||||
mountPath: /etc/tbot
|
mountPath: /etc/tbot
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
@@ -78,9 +78,9 @@ spec:
|
|||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
- name: ansible-secrets
|
- name: ansible-secrets
|
||||||
secret:
|
secret:
|
||||||
secretName: "icarus-ansible"
|
secretName: "ansible-secret"
|
||||||
- name: identity-output
|
- name: identity-output
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: icarus-nodes-mngt-tbot-config
|
- name: hosting-mngt-tbot-config
|
||||||
configMap:
|
configMap:
|
||||||
name: icarus-nodes-mngt-tbot-config
|
name: hosting-mngt-tbot-config
|
||||||
+1
-1
@@ -2,7 +2,7 @@ apiVersion: argoproj.io/v1alpha1
|
|||||||
kind: Workflow
|
kind: Workflow
|
||||||
metadata:
|
metadata:
|
||||||
generateName: tests-download-private-oci-
|
generateName: tests-download-private-oci-
|
||||||
namespace: icarus-nodes-mngt
|
namespace: hosting-mngt
|
||||||
labels:
|
labels:
|
||||||
workflows.argoproj.io/archive-strategy: "false"
|
workflows.argoproj.io/archive-strategy: "false"
|
||||||
annotations:
|
annotations:
|
||||||
+4
-4
@@ -1,9 +1,8 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Workflow
|
kind: Workflow
|
||||||
metadata:
|
metadata:
|
||||||
namespace: icarus-nodes-mngt
|
namespace: hosting-mngt
|
||||||
generateName: tests-mylimbo-ansible-collections-global-tbot-script-
|
generateName: tests-mylimbo-ansible-collections-global-tbot-script-
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: oci-registry-secret
|
- name: oci-registry-secret
|
||||||
@@ -19,12 +18,13 @@ spec:
|
|||||||
arguments:
|
arguments:
|
||||||
parameters:
|
parameters:
|
||||||
- name: tbot_configmap_name
|
- name: tbot_configmap_name
|
||||||
value: icarus-nodes-mngt-tbot-config
|
value: hosting-mngt-tbot-config
|
||||||
- name: inventory_image_reference
|
- name: inventory_image_reference
|
||||||
value: oci.limbosolutions.com/mylimbo.infra.icarus/ansible-inventory:latest
|
value: oci.limbosolutions.com/mylimbo.infra.icarus/ansible-inventory:latest
|
||||||
- name: ansible_secret_name
|
- name: ansible_secret_name
|
||||||
value: "icarus-ansible"
|
value: ansible-secret
|
||||||
- name: source
|
- name: source
|
||||||
value: |
|
value: |
|
||||||
ansible-playbook mylimbo.globals.host_maintenance.os_info
|
ansible-playbook mylimbo.globals.host_maintenance.os_info
|
||||||
|
|
||||||
|
|
||||||
+4
-4
@@ -2,7 +2,7 @@ apiVersion: argoproj.io/v1alpha1
|
|||||||
kind: Workflow
|
kind: Workflow
|
||||||
metadata:
|
metadata:
|
||||||
generateName: tests-teleport-tbot-
|
generateName: tests-teleport-tbot-
|
||||||
namespace: icarus-nodes-mngt
|
namespace: hosting-mngt
|
||||||
spec:
|
spec:
|
||||||
entrypoint: exec
|
entrypoint: exec
|
||||||
serviceAccountName: argo-runner
|
serviceAccountName: argo-runner
|
||||||
@@ -11,9 +11,9 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: identity-output
|
- name: identity-output
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: icarus-nodes-mngt-tbot-config
|
- name: hosting-mngt-tbot-config
|
||||||
configMap:
|
configMap:
|
||||||
name: icarus-nodes-mngt-tbot-config
|
name: hosting-mngt-tbot-config
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: alpine
|
image: alpine
|
||||||
@@ -36,5 +36,5 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: identity-output
|
- name: identity-output
|
||||||
mountPath: /opt/machine-id
|
mountPath: /opt/machine-id
|
||||||
- name: icarus-nodes-mngt-tbot-config
|
- name: hosting-mngt-tbot-config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
Reference in new issue
Block a user