PAGE1
DEVOPS INDONESIA
DEVOPS INDONESIA
Jakarta, 04 April 2019
Ansible with Jenkins in a CI/CD Process
DevOps Community in Indonesia
PAGE2
DEVOPS INDONESIA
Got it ?
PAGE3
DEVOPS INDONESIA
Khairul Zebua
Sr. DevOps Engineer
was :
DevOps Engineer
System Administrator
System Administrator
https://www.linkedin.com/in/khairulzebua/
Sr. DevOps Engineer
PAGE4
DEVOPS INDONESIA
Let’s get know each other
PAGE5
DEVOPS INDONESIA
Software Engineer| Product Guys| Management | System Administrator | DevOps Engineer
Mr./Mrs. ……???
Hiring….???
PAGE6
DEVOPS INDONESIA
PAGE7
DEVOPS INDONESIA
PAGE8
DEVOPS INDONESIA
PAGE9
DEVOPS INDONESIA
PAGE10
DEVOPS INDONESIA
PAGE11
DEVOPS INDONESIA
PAGE12
DEVOPS INDONESIA
12
PAGE13
DEVOPS INDONESIA
13
PAGE14
DEVOPS INDONESIA
14
PAGE15
DEVOPS INDONESIA
Tools
15
PAGE16
DEVOPS INDONESIA
WhyAnsible…?
• Free and Agent-less
• Open Source
• Python/yaml based
• Highly flexible and Configuration Management System
• Large number of ready to use modules
• Custom modules can be added if needed
• Simple and Human Readable
• Self documenting
16
PAGE17
DEVOPS INDONESIA
17
PAGE18
DEVOPS INDONESIA
18
PAGE19
DEVOPS INDONESIA
19
PAGE20
DEVOPS INDONESIA
Ansible Structures
20
PAGE21
DEVOPS INDONESIA
Ansible Role
21
PAGE22
DEVOPS INDONESIA
Ansible Role
22
https://github.com/stuckdevops/ansible
PAGE23
DEVOPS INDONESIA
Ansible Role
23
PAGE24
DEVOPS INDONESIA
24
PAGE25
DEVOPS INDONESIA
Playbook
25
# ansible-playbook -i ${environment}/inventory.ini playbook.yml 
--tag ${tag_name} 
--extra-vars="project_name=$project_name"
PAGE26
DEVOPS INDONESIA
26
PAGE27
DEVOPS INDONESIA
Ansible Tower ?
27
slave slave slave slave slave
PAGE28
DEVOPS INDONESIA
Why Jenkins ?
28
PAGE29
DEVOPS INDONESIA
29
https://www.jetbrains.com/research/devecosystem-2018/team-tools/
PAGE30
DEVOPS INDONESIA
CI/CD Resources
30
PAGE31
DEVOPS INDONESIA
CI/CD
31
Commit, Push & PR Comment as a trigger
Packaging
Storing fileDeploy
Build
Test
Merge
PAGE32
DEVOPS INDONESIA
32
PAGE33
DEVOPS INDONESIA
Study Case
33
PAGE34
DEVOPS INDONESIA
Jenkins Pipeline
34
PAGE35
DEVOPS INDONESIA
Prometheus with Grafana
35
PAGE36
DEVOPS INDONESIA
Development and Operation
36
PAGE37
DEVOPS INDONESIA
Common Issues
37
PAGE38
DEVOPS INDONESIA
Common Issues
38
PAGE39
DEVOPS INDONESIA
Common Issues
39
PAGE40
DEVOPS INDONESIA
Common Issues
40
PAGE41
DEVOPS INDONESIA
Common Issues
41
PAGE42
DEVOPS INDONESIA
Stay Connected
https://www.linkedin.com/in/khairulzebua/
https://github.com/khairulzebua
https://github.com/stuckdevops
PAGE43
DEVOPS INDONESIA
AloneWearesmart,togetherWearebrilliant
THANKYOU!
DevOps….?
#Sekarang,Bisa!
Quote by Steve Anderson

Ansible with Jenkins in a CI/CD Process