DevOps and DevSecOps study infrastructure setup scripts
- Edit server resources in deploy/arch.json
- location, title, hostname, CPU+RAM, HD
- Edit up deploy/bootstrap.sh script
- SSH public key, hostname, partitioning, DNS servers, mirrors
- Create secrets/cloud_creds -file for UpCloud API access
$ echo -n "username:password" | base64 > secrets/cloud_creds
- Run helper script to create needed secret strings
$ ./generate_secrets.sh
- Deploy VM instance to cloud with API
$ cd deploy; python deploy_server.py
- Add DNS entries at your DNS service
- edit provision/config_files/gitlab.yml to reflect the domain name
- Ansible-playbook: Set up firewall and other server configurations
- provision/server_config.yml
- Install GitLab with Ansible
- provision/install_gitlab.yml
- Configure GitLab further
- Log in to GitLab instance web UI as root and acquire needed tokens (api + shared runner registration)
- place them in secrets/ and encrypt them for ansible use
- encrypt_tokens.sh
- provision/configure_gitlab.yml
- additional application settings with python-API
- configure_gitlab.py