Skip to content

estonravey/MyLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This example uses a simple maven based webapp project.

For build use : mvn clean package

Development Team

GitHub

JENKINS MAVEN

SONATYPE NEXUS

ANSIBLE: open source automation tool for

  1. Provisioning

    • infrastructure provisioning: IAC (Terraform for data center; VPC, subnets, EC2, etc)
  2. Config managment

    • applying OS patches
    • checking server
    • installation of services
  3. Application deployment


PLAYBOOKS - App deployment

  • YAML format
  • instructs ansible on what needs to be executed
  • to do list for ansible
  • Tasks are run sequentially

AGENTLESS: don't need to install on managed nodes DECLARITIVE/Can Be Procedural

  • Declare what you want and don't think about how to get there
  • Playbooks=declarative; Tasks=procedural
  • Idempotent - can execute an application multiple times without changing

ansible [name-of-group] -m [module] -a [arguments] -i [inventory]

  • m perform actual tasks

  • a

  • i required if not using default host file at /etc/ansible

navigate to the /opt directory

cd /opt

create the playbooks directory

mkdir playbooks

change the ownership of the playbooks directory to ansibleadmin

sudo chown -R ansibleadmin:ansibleadmin playbooks/

nav to the playbooks directory

cd playbooks

create a file named hosts

vim hosts :i [tomcat]

locate the private IP of the tomcat server created in aws and paste below

do the same for docker

file should read:

[tomcat] 172.20.10.135

[docker] 172.20.10.27

:wq to save

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published