diff --git a/profiles/ansiblerun-workflow.yaml b/profiles/ansiblerun-workflow.yaml index f1c7290..4ac1662 100644 --- a/profiles/ansiblerun-workflow.yaml +++ b/profiles/ansiblerun-workflow.yaml @@ -11,7 +11,7 @@ preQuestions: name: provisioning options: - "baseos" - - "docker" + - "devmachine" questions: - /home/sthings/projects/crossplane/surveys/ansiblerun.yaml diff --git a/templates/ansiblerun-devmachine.yaml.tpl b/templates/ansiblerun-devmachine.yaml.tpl new file mode 100644 index 0000000..fcc4180 --- /dev/null +++ b/templates/ansiblerun-devmachine.yaml.tpl @@ -0,0 +1,50 @@ +--- +apiVersion: resources.stuttgart-things.com/v1alpha1 +kind: AnsibleRun +metadata: + name: {{ .targets }}-{{ .provisioning }} + namespace: crossplane-system +spec: + pipelineRunName: {{ .targets }}-{{ .provisioning }} + createInventory: "true" + inventory: + - "all+[\"{{ .ip }}\"]" + playbooks: + - "plays/prepare-env.yaml" + - "sthings.base_os.setup" + - "sthings.container.tools" + - "sthings.container.docker" + - "sthings.container.nerdctl" + - "sthings.base_os.binaries" + ansibleVarsFile: + - manage_filesystem+-true + - update_packages+-true + - install_requirements+-true + - install_motd+-true + - username+-sthings + - lvm_home_sizing+-'15%' + - lvm_root_sizing+-'35%' + - lvm_var_sizing+-'50%' + - send_to_msteams+-true + - reboot_all+-false + - send_to_homerun+-true + gitRepoUrl: https://github.com/stuttgart-things/ansible.git + gitRevision: main + providerRef: + name: in-cluster + vaultSecretName: vault # pragma: allowlist secret + pipelineNamespace: tekton-pipelines + workingImage: ghcr.io/stuttgart-things/sthings-ansible:11.0.0 + roles: + - "https://github.com/stuttgart-things/install-requirements.git,2024.05.11" + - "https://github.com/stuttgart-things/manage-filesystem.git,2024.05.15" + collections: + - community.crypto:2.22.3 + - community.general:10.1.0 + - ansible.posix:2.0.0 + - kubernetes.core:5.0.0 + - community.docker:4.1.0 + - community.vmware:5.2.0 + - awx.awx:24.6.1 + - community.hashi_vault:6.2.0 + - ansible.netcommon:7.1.0