Skip to content
/ devops Public

DevOps and DevSecOps study infrastructure setup scripts

License

Notifications You must be signed in to change notification settings

tqre/devops

Repository files navigation

DevOps - GitLab server setup scripts

DevOps and DevSecOps study infrastructure setup scripts

Process

  1. Edit server resources in deploy/arch.json
  • location, title, hostname, CPU+RAM, HD
  1. Edit up deploy/bootstrap.sh script
  • SSH public key, hostname, partitioning, DNS servers, mirrors
  1. Create secrets/cloud_creds -file for UpCloud API access
  • $ echo -n "username:password" | base64 > secrets/cloud_creds
  1. Run helper script to create needed secret strings
  • $ ./generate_secrets.sh
  1. Deploy VM instance to cloud with API
  • $ cd deploy; python deploy_server.py
  1. Add DNS entries at your DNS service
  • edit provision/config_files/gitlab.yml to reflect the domain name
  1. Ansible-playbook: Set up firewall and other server configurations
  • provision/server_config.yml
  1. Install GitLab with Ansible
  • provision/install_gitlab.yml
  1. 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

About

DevOps and DevSecOps study infrastructure setup scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published