Drop initial code

This commit is contained in:
Danny Bessems
2026-01-15 09:58:01 +00:00
parent 227d957219
commit 1e7c9ba5cb
228 changed files with 19883 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
---
## Molecule deploy and test
tasks:
- script: |
#!/bin/bash
set -ex
# Run ansible-lint for the first set of roles (cp/lifecycle)
if ! docker run --rm --volume ${bamboo.hostvolume}:/data \
--workdir=/data \
${bamboo.container_molecule} \
ansible-lint -c .ansible-lint.yml; then
echo "ERROR: Ansible Lint failed. Check the output for details."
exit 1 # Stop the script immediately
fi
echo "Ansible Lint successful for all ansible/collections/ansible_collections!"
other:
clean-working-dir: true
requirements:
- system.docker.executable
- AGENT_TYPE: Linux_Base_Agent

View File

@@ -0,0 +1,10 @@
tasks:
- script: |
#!/bin/bash
set -ex
docker run --rm ${bamboo.container_jfrog} jfrog rt ping --user ${bamboo.snapshot_deployer_username} --password ${bamboo.snapshot_deployer_password} --url https://devstore.vanderlande.com/artifactory
other:
clean-working-dir: true
requirements:
- AGENT_TYPE: Linux_Base_Agent

View File

@@ -0,0 +1,75 @@
tasks:
- checkout:
force-clean-build: 'true'
- script: |
#!/bin/bash
set -euxo pipefail
# Ensure there's at least one previous commit
if git rev-parse HEAD~1 >/dev/null 2>&1; then
# Collect changed *.md files under docs/ (ignore deletions)
CHANGED_MD_FILES=$(git diff --name-status HEAD~1 HEAD | \
awk '$1 != "D" {print $2}' | grep '^docs/.*\.md$' || true)
else
echo "No previous commit to compare against. Skipping update."
exit 0
fi
if [[ -z "${CHANGED_MD_FILES}" ]]; then
echo "No relevant markdown files changed under docs/. Skipping Confluence update."
exit 0
fi
# Parse minor version from semantic version
MINOR_VERSION=$(echo "${bamboo.inject.gtag}" | grep -Eo "^[0-9]+\.[0-9]+")
# Inject version numbers into documentation
sed -i "s/{{ release_version }}/${bamboo.inject.gtag}/g;s/{{ minor_version }}/${MINOR_VERSION}/g" README.md
sed -i "s/{{ release_version }}/${bamboo.inject.gtag}/g;s/{{ minor_version }}/${MINOR_VERSION}/g" docs/*.md
# Create temporary folder
mkdir -p ./vi_certs
# Download latest Vanderlande CA certificates
curl https://pki.vanderlande.com/pki/VanderlandeRootCA.crt -o - | \
openssl x509 -inform DER -out ./vi_certs/VanderlandeRootCA.crt
curl https://pki.vanderlande.com/pki/VanderlandeSubordinateCA-Internal.crt \
-o ./vi_certs/VanderlandeSubordinateCA-Internal.crt
echo "---"
echo "Starting Confluence update for the following files:"
echo "${CHANGED_MD_FILES}"
echo "---"
# Since -f only accepts one file, we must loop through the list of changed files.
for file in ${CHANGED_MD_FILES}
do
echo "Processing file: ${file}"
# Run a separate docker command for each file
docker run --rm --name "confluence-docs-update" \
-v "${bamboo.hostvolume}:/code" \
-v "${bamboo.hostvolume}/vi_certs:/usr/local/share/ca-certificates" \
-w /code \
"${bamboo.container_mark}" \
/bin/bash -c "\
update-ca-certificates && \
mark -u '${bamboo.confluence_username}' \
-p '${bamboo.confluence_password}' \
-b '${bamboo.confluence_url}' \
--ci --changes-only \
--title-from-h1 \
--space ${bamboo.confluence_space} \
--parents 'IT Technology Platform/Team Devcolla'\''s/Application Stack/Harvester Cloud Native Virtualization' \
-f '${file}'"
echo "Finished processing ${file}."
echo "---"
done
other:
clean-working-dir: true
requirements:
- system.docker.executable
- AGENT_TYPE: Linux_Base_Agent

View File

@@ -0,0 +1,63 @@
tasks:
- checkout:
force-clean-build: 'true'
- script: |
#!/bin/bash
set -x
# Parse minor version from semantic version
MINOR_VERSION=$(echo "${bamboo.inject.gtag}" | grep -Eo "^[0-9]+\.[0-9]+")
# Inject version numbers into documentation
sed -i "s/{{ release_version }}/${bamboo.inject.gtag}/g;s/{{ minor_version }}/${MINOR_VERSION}/g" README.md
sed -i "s/{{ release_version }}/${bamboo.inject.gtag}/g;s/{{ minor_version }}/${MINOR_VERSION}/g" docs/*.md
# Create temporary folder
mkdir -p ./vi_certs
# Download latest Vanderlande certificate authority certificates
curl https://pki.vanderlande.com/pki/VanderlandeRootCA.crt -o - | openssl x509 -inform DER -out ./vi_certs/VanderlandeRootCA.crt
curl https://pki.vanderlande.com/pki/VanderlandeSubordinateCA-Internal.crt -o ./vi_certs/VanderlandeSubordinateCA-Internal.crt
# Update README markdown file
docker run --rm --name confluence-docs-update \
-v "${bamboo.hostvolume}:/code" \
-v "${bamboo.hostvolume}/vi_certs:/usr/local/share/ca-certificates" \
-w /code \
"${bamboo.container_mark}" \
/bin/bash -c "\
update-ca-certificates && \
mark \
-u '${bamboo.confluence_username}' \
-p '${bamboo.confluence_password}' \
-b '${bamboo.confluence_url}' \
--title-from-h1 \
--space ${bamboo.confluence_space} \
--parents 'IT Technology Platform/Team Devcolla'\''s/Application Stack/Harvester Cloud Native Virtualization' \
--dry-run \
-f './README.md' || exit 1"
# Update all markdown files in docs/
docker run --rm --name confluence-docs-update \
-v "${bamboo.hostvolume}:/code" \
-v "${bamboo.hostvolume}/vi_certs:/usr/local/share/ca-certificates" \
-w /code \
"${bamboo.container_mark}" \
/bin/bash -c "\
update-ca-certificates && \
mark \
-u '${bamboo.confluence_username}' \
-p '${bamboo.confluence_password}' \
-b '${bamboo.confluence_url}' \
--ci --changes-only \
--title-from-h1 \
--space ${bamboo.confluence_space} \
--parents 'IT Technology Platform/Team Devcolla'\''s/Application Stack/Harvester Cloud Native Virtualization' \
--dry-run \
-f './docs/*.md' || exit 1"
other:
clean-working-dir: true
requirements:
- system.docker.executable
- AGENT_TYPE: Linux_Base_Agent

View File

@@ -0,0 +1,61 @@
tasks:
- checkout:
force-clean-build: 'true'
- script: |
#!/bin/bash
set -x
# Parse minor version from semantic version
MINOR_VERSION=$(echo "${bamboo.inject.gtag}" | grep -Eo "^[0-9]+\.[0-9]+")
# Inject version numbers into documentation
sed -i "s/{{ release_version }}/${bamboo.inject.gtag}/g;s/{{ minor_version }}/${MINOR_VERSION}/g" README.md
sed -i "s/{{ release_version }}/${bamboo.inject.gtag}/g;s/{{ minor_version }}/${MINOR_VERSION}/g" docs/*.md
# Create temporary folder
mkdir -p ./vi_certs
# Download latest Vanderlande certificate authority certificates
curl https://pki.vanderlande.com/pki/VanderlandeRootCA.crt -o - | openssl x509 -inform DER -out ./vi_certs/VanderlandeRootCA.crt
curl https://pki.vanderlande.com/pki/VanderlandeSubordinateCA-Internal.crt -o ./vi_certs/VanderlandeSubordinateCA-Internal.crt
# Update README markdown file
docker run --rm --name confluence-docs-update \
-v "${bamboo.hostvolume}:/code" \
-v "${bamboo.hostvolume}/vi_certs:/usr/local/share/ca-certificates" \
-w /code \
"${bamboo.container_mark}" \
/bin/bash -c "\
update-ca-certificates && \
mark \
-u '${bamboo.confluence_username}' \
-p '${bamboo.confluence_password}' \
-b '${bamboo.confluence_url}' \
--title-from-h1 \
--space ${bamboo.confluence_space} \
--parents 'IT Technology Platform/Team Devcolla'\''s/Application Stack/Harvester Cloud Native Virtualization' \
-f './README.md' || exit 1"
# Update all markdown files in docs/
docker run --rm --name confluence-docs-update \
-v "${bamboo.hostvolume}:/code" \
-v "${bamboo.hostvolume}/vi_certs:/usr/local/share/ca-certificates" \
-w /code \
"${bamboo.container_mark}" \
/bin/bash -c "\
update-ca-certificates && \
mark \
-u '${bamboo.confluence_username}' \
-p '${bamboo.confluence_password}' \
-b '${bamboo.confluence_url}' \
--ci --changes-only \
--title-from-h1 \
--space ${bamboo.confluence_space} \
--parents 'IT Technology Platform/Team Devcolla'\''s/Application Stack/Harvester Cloud Native Virtualization' \
-f './docs/*.md' || exit 1"
other:
clean-working-dir: true
requirements:
- system.docker.executable
- AGENT_TYPE: Linux_Base_Agent