Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.51 KB

File metadata and controls

43 lines (26 loc) · 1.51 KB

Provisioning

This directory contains the Ansible playbooks and roles for provisioning the infrastructure. It is designed to set up and configure the necessary components, including Jenkins master and worker nodes.

Overview

Provisioning with Ansible automates the setup of the entire infrastructure, ensuring consistency and efficiency. It includes the configuration of Jenkins nodes and other necessary services across your infrastructure.

Running the Ansible Playbook

To provision your infrastructure with Ansible, execute the following commands:

  1. List Ansible Inventory: Review the current Ansible inventory derived from AWS EC2.

    ansible-inventory -i inventory/inventory_aws_ec2.yml --list
  2. Execute the Playbook: Run the Ansible playbook to start the provisioning process.

    ansible-playbook -i inventory/inventory_aws_ec2.yml playbooks/site.yml -e "jenkins_password=asdasdiytagsdjh123"

Jenkins Configuration

Accessing Jenkins Nodes

Use the public IP addresses displayed in the Ansible playbook output to access the Jenkins web interface and configure node communications. These IP addresses provide direct access to the Jenkins nodes for initial setup and further configuration tasks

Post-Setup Steps

Once Jenkins is up and running, you can:

  • Configure Jenkins nodes and plugins as required.
  • Set up your CI/CD pipelines.
  • Integrate with other tools and services.

For infrastructure setup details, see Deployment.