F5 CICD Lab JPN > Environment Setup Source | Edit on
Module 3: Install Tools¶
In this guide, we will be using the root account.
Note
AWS best practice is to use root only temporarily by deleting the root password after use. passwd –d root
Instructions:
Use SSH key to log into your ubuntu server, then set root password
sudo supasswd root
Install pre-requisite applications
apt-get updateapt-get install build-essential checkinstallapt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
Install python 2.7
wget https://www.python.org/ftp/python/2.7.16/Python-2.7.16.tgztar xzvf Python-2.7.16.tgz./configure --enable-optimizationsmake altinstallpython2.7 -V
Install python-pip
apt install python-pip
Install Terraform
curl -O https://releases.hashicorp.com/terraform/0.11.13/terraform_0.11.13_linux_amd64.zipmkdir /bin/terraformapt-get install unzipunzip filename -d /bin/terraformexport PATH=$PATH:/bin/terraformterraform --version
Install AWS CLI
pip install awscli --user --upgradeaws --version
Install Ansible
apt-get install software-properties-commonapt-add-repository ppa:ansible/ansibleapt updateapt-get install ansibleansible --version
Configure Ansible
nano /etc/ansible/ansible.cfg- uncomment this line:
host_key_checking = False
Install f5-sdk library used by Ansible modules
install f5-sdk --upgrade
Install Java
add-apt-repository ppa:webupd8team/javaapt updateapt install openjdk-8-jre-headless
Install Jenkins
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'apt-get updateapt-get install jenkinssystemctl start jenkinssystemctl status jenkins
Get initial Jenkins password and connect to your Jenkins portal to change
cat /var/lib/jenkins/secrets/initialAdminPassword- access <http://ubuntu_IP:8080>
Install Jenkins plugins at Jenkins > Manage Jenkins > Manage Plugins > Available tab > search and Install without restart
- Amazon EC2 plugin
- Ansible plugin
- AWS Global Configuration Plugin
- GitHub Authentication plugin
- Global Slack Notifier Plugin
- Pipeline GitHub Notify Step Plugin
- Pipeline: AWS Steps
- Pipeline: GitHub
- Pipeline: GitHub Groovy Libraries
- Terraform Plugin
Generate key used for accessing resources deployed in AWS. Store the private and public keys in a safe location
ssh-keygen -t rsa -b4096
Create working directory in location of your choice (optional)
mkdir cicdlabcd cicdlab
In your GitHub account, fork the below repository
https://github.com/tkam8/f5-cicdlab
In your working directory, clone the master branch of your cicd lab repository to your your ubuntu instance
This completes installation of required tools and plugins.