Bootstrapping
As you follow these instructions, things will inevitably fail due to the secrets dir being empty, unless pre-populated
Steps:
cd into /ansible, run the ansible playbook bootstrap.yaml against any freshly installed PVE nodes
run make-and-upload-iso.sh
cd into /packer and run
packer build .
cd back into this dir (/bootstrap), run
terraform apply
to create the jenkins vmcd into /ansible, run the ansible provision.yaml playbook provision.yaml
run the bootstrap.yaml playbook with
--limit jenk
run the deploy.yaml playbook. it will fail at the
pull secrets
task.when it does,
ssh jenkins@jenkins
, edit pullSecrets.sh to refer to the devmachine by IP address, run deploy.yaml again with--start-at-task 'pull images'
undo the previous change to pullSecrets.sh
cd into /terraform, run
terraform apply
copy the output github-jenkins-webhookurl, paste it into
gh secret set JENKINS_HOOK_URL
cd into /secrets, run
tr -dc 'a-zA-Z0-9' </dev/urandom | head -c 32 >github_webhook_token
run
cat github_webhook_token | gh secret set JENKINS_HOOK_TOKEN
ssh into the control vm and run
docker compose up -d lldap
cd into /bootstrap/postdeploy, run
terraform apply
to configure LLDAP
Last updated