Giter Site home page Giter Site logo

yasir2000 / automated-devops Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mytechnotalent/automated-devops

0.0 0.0 0.0 1.49 MB

Automated DevOps is a repo that integrates Red Hat Linux 8, CentOS Stream and Oracle Linux 8 Packer templates for a vSphere & ESXi enterprise environment with Ansible provisioning for the VM instances utilizing GitLab Infrastructure As Code build automation.

License: Apache License 2.0

Shell 100.00%

automated-devops's Introduction

image

Automated DevOps

Automated DevOps is a repo that integrates Red Hat Linux 8, CentOS Stream and Oracle Linux 8 Packer templates for a vSphere & ESXi enterprise environment with Ansible provisioning for the VM instances utilizing GitLab Infrastructure As Code build automation.

Step 1: Clone Repo

git clone https://github.com/mytechnotalent/Automated-DevOps.git

Step 2: Run setup.sh [MAC]

./setup.sh

Step 3: Import Repo In GitLab

Instructions

Step 4: Install SSH Pass

brew install hudochenkov/sshpass/sshpass

Step 5: Setup SSH In GitLab

ssh [email protected]
stty sane
ssh-keygen -t rsa -b 2048
cat ~/.ssh/id_rsa.pub
[Preferences - SSH Keys - Add an SSH key - Add key]

Step 6: Clone Repo -> GitLab Runner VM

git clone [email protected]:<gitlab-account>/automated-devops.git
cd automated-devops
vim ~/.vimrc
  set number
  set tabstop=2    
  set shiftwidth=2
  set expandtab 
  syntax on

Step 7: Register GitLab Runner

sudo gitlab-runner register  # password: server
  https://gitlab.com
  [Settings, CI/CD, Runners, Expand, registration token, copy]
  gitlab-runner
  ci
  shell
sudo gitlab-runner status
sudo gitlab-runner stop

Step 8: Setup Enterprise Automation Environment

python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt 
cat ~/.ssh/id_rsa.pub
vim Enterprise_Instance_Templates/files/lab_admin.pub
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git add .
git commit -m "Add lab_admin.pub key"
git push

Step 9: Automate Creation

sudo gitlab-runner run

Step 10: Automate Destruction [MAC]

ansible-playbook -i GitLab_Runner_Template/gitlab_runner_inventory GitLab_Runner_Template/destroy_gitlab_runner_template.yml
ansible-playbook -i Enterprise_Instance_Templates/enterprise_instance_inventory Enterprise_Instance_Templates/destroy_enterprise_instances.yml

License

Apache License, Version 2.0

automated-devops's People

Contributors

mytechnotalent 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.