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.
git clone https://github.com/mytechnotalent/Automated-DevOps.git
./setup.sh
brew install hudochenkov/sshpass/sshpass
ssh local@gitlab-runner.example.com
stty sane
ssh-keygen -t rsa -b 2048
cat ~/.ssh/id_rsa.pub
[Preferences - SSH Keys - Add an SSH key - Add key]git clone git@gitlab.com:<gitlab-account>/automated-devops.git cd automated-devops vim ~/.vimrc set number set tabstop=2 set shiftwidth=2 set expandtab syntax on
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 stoppython3 -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 "you@example.com" git config --global user.name "Your Name" git add . git commit -m "Add lab_admin.pub key" git push
sudo gitlab-runner run
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