Skip to content

Moody-san/ansible-controller-setup

Repository files navigation

Ansible Controller Setup

This repository contains Ansible scripts for setting up CiCd and management of infra deployed through the following repos :

Prerequisites

  • Infra provisioned through IAC: Deployed infrastructure using terraform multi cloud iac (as it contains a module to automatically update inventory for ansible scripts given that ansible repo and terraform repo are in the same directories).
  • Software Requirements: Ensure Ansible cli is installed.

Installation

Clone the repository to your machine:

git clone https://github.com/Moody-san/ansible-controller-setup.git
cd ansible-controller-setup

Usage

ansible-playbook acceptfingerprint.yml -i inventory --forks 1  #use this to add server to knownhosts
ansible-playbook setupiptablerules.yml -i inventory #ansible scripts sometimes get disconnected from oracle servers without this , though flushing rules like this not recommended 
ansible-playbook installjenkins.yml -i inventory
ansible-playbook installargocd.yml -i inventory
ansible-playbook installcertificate.yml -i inventory #requires ssl folder to be present for more information refer to terraform repo 
ansible-playbook registercluster.yml -i inventory -e "control_node=oraclemaster" -e "clustername=oraclecluster"
ansible-playbook updateroutes.yml -i inventory -e "control_node=oraclemaster"  #istio mesh virtual service routes 
ansible-playbook updatesecrets.yml -i inventory -e "control_node=oraclemaster" #k8s secrets
ansible-playbook enablemonitoring.yml -i inventory -e "control_node=oraclemaster" 

Configuration

update secrets and routes in copy yaml task and then apply to update existing values.

Additional Resources

Notes

  • To get argo cd initial password run this command :
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo

Demo

https://www.youtube.com/watch?v=168pmXIvk6U

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages