Coder Social home page Coder Social logo

devops's Introduction

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

devops's People

Contributors

tqre avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.