beye.blog logo

Task 1: Install Services

Task 1: Install Services

Setup the ACI Simulator

Access the session overview and select the "acisim" option, then click "VM Console."

A new browser window will open with a setup wizard. Configure only these essential settings:

IP address: 198.18.134.11/18 Gateway: 198.18.128.1 Password: C1sco12345

Return to the Windows RDP session and open Chrome. Refresh the page to see the APIC login screen.

🥳 Congratulations! The first step is complete! 🥳

Configure the Ubuntu Machine

During this task, you'll install:

  • Ansible with ACI collections
  • Docker
  • GitLab server
  • GitLab runner

Install Basic Packages

bash
sudo apt install -y python3-pip ca-certificates curl openssh-server tzdata git net-tools

Install Ansible and ACI Collection

bash
sudo python3 -m pip install ansible paramiko lxml xmljson
sudo ansible-galaxy collection install cisco.aci

Expected output:

ansible [core 2.13.2]
  config file = None
  configured module search path = ['/home/cisco/.ansible/plugins/modules']
  ansible python module location = /home/cisco/.local/lib/python3.8/site-packages/ansible

Install Docker

bash
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

Expected output:

Docker version 20.10.17, build 100c701

Install GitLab Server and Runner

bash
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash
sudo apt install -y gitlab-ce gitlab-runner
sudo mkdir -p /var/lib/gitlab-runner/builds
sudo chown -R gitlab-runner:gitlab-runner /var/lib/gitlab-runner

☕️ Coffee break number 1!

Fix Hostname and Reconfigure

bash
sudo sed -i "s%http://gitlab.example.com%http://198.18.134.28%" /etc/gitlab/gitlab.rb
sudo gitlab-ctl reconfigure

☕️ Coffee break number 2!

Expected output indicates successful configuration.

Retrieve Root Password

bash
sudo cat /etc/gitlab/initial_root_password

Copy the generated password into a text file for later use.

Access GitLab at: http://198.18.134.28