SlideShare a Scribd company logo
1 of 39
RAPID DEV
ENVIRONMENTS
Przemek Hejman - Marcin Brański
MACHINE IMAGE
PACKER.IO
{
"builders": [
{
"type": "amazon-ebs",
"access_key": "
"secret_key": "
"region": "ap-northeast-1",
"source_ami": "ami-bfdaa2be",
"instance_type": "t1.micro",
"ssh_username": "ubuntu",
"ami_name": "packer-quick-start {{timestamp}}"
}
],
"provisioners": [
{
"type": "puppet-masterless",
"manifest_file": "site.pp",
"module_paths": [ "./modules" ]
}
]
}
node default {
class { '::ntp':
servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
}
cron { 'taki_sobie_maintenance':
command => "/usr/bin/skrypt_robiacy_porzadek.sh",
user => root,
hour => 5,
minute => 0,
}
$str = "Jestem DNSem google"
if $::ipaddress_eth0 == "8.8.8.8" {
file { '/root/pliczQ':
ensure => present,
content => "$str",
owner => root,
group => root,
mode => '644',
}
}
}
packer build
Vagrant
Vagrantfile
vagrant up
vagrant-aws
vagrant-azure
vagrant-brightbox
vagrant-cloudstack
vagrant-digitalocean
vagrant-ganeti
vagrant-hp
vagrant-joyent
vagrant-kvm
vagrant-libvirt
vagrant-lxc
vagrant-managed-servers
vagrant-openstack
vagrant-openvz
vagrant-parallels
vagrant-proxmox
vagrant-rackspace
vagrant-softlayer
vagrant-vcloud
vagrant-vsphere
vagrant-windows-hyperv
● Infrastructure as Code;
● Deklaratywny język, czytelna
konfiguracja;
● Proste zarządzanie,
wprowadzanie zmian;
● Dokumentacja infrastruktury;
Provisioning
# yum install nrpe
# aptitude install nagios-nrpe-server
Ze względu na koszty i bycie trendy, przenosimy
wszystko w chmurę!!!
Zmienimy serwery HTTP
na NGINX, dodajcie klucz
ssh użytkownika janusz,
zróbmy upgrade tomcata, niech
logowanie będzie po certyfikacie,
olejmy rsysloga,
może podepniemy też nagiosa…
PUPPET VS. CHEF VS. ANSIBLE VS.
SALT VS. FABRIC ??
PUPPET
CHEF
ANSIBLE
SALT
nginx:
pkg:
- installed
service:
- running
- require:
- pkg: nginx
/var/www/index.html:
file:
- managed
- source: salt://webserver/index.html
- require:
- pkg: nginx
PUPPET VS. CHEF VS. ANSIBLE VS.
SALT VS. FABRIC ??
YES.
READY-TO-GO
Bare Metal
Hardware Assisted
Dockerfile
FROM e1337h4xx/saltwheezy
MAINTAINER 3h4x
RUN apt-get -qq update
RUN apt-get install -y wget
RUN echo "deb http://pkg.jenkins-ci.org/debian binary/" >>
/etc/apt/sources.list
RUN wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key |
apt-key add -
RUN apt-get -qq update
RUN apt-get upgrade -y
RUN apt-get install -y jenkins
EXPOSE 8080
CMD (/etc/init.d/jenkins start && sleep 5 && tailf
/var/log/jenkins/jenkins.log)
VOLUME ["/var/lib/jenkins", "/var/log/jenkins"]
docker run
What docker can do for you
fig up
Time comparison
docker <1s vagrant up > 30s
Vagrant and Docker
NEXT? ● Jenkins CI
● Continuous Deployment
● Automated Testing
● Demo
● Microservices
Thanks!

More Related Content

What's hot

Introduction to ansible
Introduction to ansibleIntroduction to ansible
Introduction to ansibleOmid Vahdaty
 
SockJS Intro
SockJS IntroSockJS Intro
SockJS IntroNgoc Dao
 
Ansible tips & tricks
Ansible tips & tricksAnsible tips & tricks
Ansible tips & tricksbcoca
 
A language for the Internet: Why JavaScript and Node.js is right for Internet...
A language for the Internet: Why JavaScript and Node.js is right for Internet...A language for the Internet: Why JavaScript and Node.js is right for Internet...
A language for the Internet: Why JavaScript and Node.js is right for Internet...Tom Croucher
 
Ansible for beginners ...?
Ansible for beginners ...?Ansible for beginners ...?
Ansible for beginners ...?shirou wakayama
 
(WS14) Sasa Matijasic - Node.js i "novi" web
(WS14) Sasa Matijasic - Node.js i "novi" web(WS14) Sasa Matijasic - Node.js i "novi" web
(WS14) Sasa Matijasic - Node.js i "novi" webWeb::Strategija
 
Ansible - Swiss Army Knife Orchestration
Ansible - Swiss Army Knife OrchestrationAnsible - Swiss Army Knife Orchestration
Ansible - Swiss Army Knife Orchestrationbcoca
 
Using Ansible Dynamic Inventory with Amazon EC2
Using Ansible Dynamic Inventory with Amazon EC2Using Ansible Dynamic Inventory with Amazon EC2
Using Ansible Dynamic Inventory with Amazon EC2Brian Schott
 
Development of Ansible modules
Development of Ansible modulesDevelopment of Ansible modules
Development of Ansible modulesjtyr
 
Asynchronous PHP and Real-time Messaging
Asynchronous PHP and Real-time MessagingAsynchronous PHP and Real-time Messaging
Asynchronous PHP and Real-time MessagingSteve Rhoades
 
Automation with ansible
Automation with ansibleAutomation with ansible
Automation with ansibleKhizer Naeem
 
2 docker engine_hands_on
2 docker engine_hands_on2 docker engine_hands_on
2 docker engine_hands_onFEG
 
Ansible fest Presentation slides
Ansible fest Presentation slidesAnsible fest Presentation slides
Ansible fest Presentation slidesAaron Carey
 

What's hot (20)

Node.js - A Quick Tour
Node.js - A Quick TourNode.js - A Quick Tour
Node.js - A Quick Tour
 
Node.js
Node.jsNode.js
Node.js
 
Introduction to ansible
Introduction to ansibleIntroduction to ansible
Introduction to ansible
 
Ansible - Introduction
Ansible - IntroductionAnsible - Introduction
Ansible - Introduction
 
SockJS Intro
SockJS IntroSockJS Intro
SockJS Intro
 
Ansible tips & tricks
Ansible tips & tricksAnsible tips & tricks
Ansible tips & tricks
 
A language for the Internet: Why JavaScript and Node.js is right for Internet...
A language for the Internet: Why JavaScript and Node.js is right for Internet...A language for the Internet: Why JavaScript and Node.js is right for Internet...
A language for the Internet: Why JavaScript and Node.js is right for Internet...
 
Ansible for beginners ...?
Ansible for beginners ...?Ansible for beginners ...?
Ansible for beginners ...?
 
(WS14) Sasa Matijasic - Node.js i "novi" web
(WS14) Sasa Matijasic - Node.js i "novi" web(WS14) Sasa Matijasic - Node.js i "novi" web
(WS14) Sasa Matijasic - Node.js i "novi" web
 
Ansible - Swiss Army Knife Orchestration
Ansible - Swiss Army Knife OrchestrationAnsible - Swiss Army Knife Orchestration
Ansible - Swiss Army Knife Orchestration
 
Dbbarang
DbbarangDbbarang
Dbbarang
 
Using Ansible Dynamic Inventory with Amazon EC2
Using Ansible Dynamic Inventory with Amazon EC2Using Ansible Dynamic Inventory with Amazon EC2
Using Ansible Dynamic Inventory with Amazon EC2
 
Start using vagrant now!
Start using vagrant now!Start using vagrant now!
Start using vagrant now!
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
 
Development of Ansible modules
Development of Ansible modulesDevelopment of Ansible modules
Development of Ansible modules
 
Asynchronous PHP and Real-time Messaging
Asynchronous PHP and Real-time MessagingAsynchronous PHP and Real-time Messaging
Asynchronous PHP and Real-time Messaging
 
Automation with ansible
Automation with ansibleAutomation with ansible
Automation with ansible
 
2 docker engine_hands_on
2 docker engine_hands_on2 docker engine_hands_on
2 docker engine_hands_on
 
Ansible
AnsibleAnsible
Ansible
 
Ansible fest Presentation slides
Ansible fest Presentation slidesAnsible fest Presentation slides
Ansible fest Presentation slides
 

Viewers also liked

Testing all your code through HipChat in Docker
Testing all your code through HipChat in DockerTesting all your code through HipChat in Docker
Testing all your code through HipChat in DockerMike Pavlenko
 
Osc3.0 manual agensi
Osc3.0 manual agensiOsc3.0 manual agensi
Osc3.0 manual agensimdrompin
 
Презентация объектов СВАО
Презентация объектов СВАОПрезентация объектов СВАО
Презентация объектов СВАОtendermosru
 
Yves Rocher C-11/2014
Yves Rocher C-11/2014Yves Rocher C-11/2014
Yves Rocher C-11/2014Chivix Tejeda
 
Phân tích nhân tố khám phá
Phân tích nhân tố khám pháPhân tích nhân tố khám phá
Phân tích nhân tố khám phávietlod.com
 
Aula do dia 26 08 - dr. tácio lacerda gama
Aula do dia 26 08 - dr. tácio lacerda gamaAula do dia 26 08 - dr. tácio lacerda gama
Aula do dia 26 08 - dr. tácio lacerda gamaFernanda Moreira
 
Bio data dprd kabupaten pakpak bharat masa jabatan 2009
Bio data dprd kabupaten pakpak bharat masa jabatan 2009Bio data dprd kabupaten pakpak bharat masa jabatan 2009
Bio data dprd kabupaten pakpak bharat masa jabatan 2009ppbkab
 
基隆交點Vol.4 - 開場簡報
基隆交點Vol.4 - 開場簡報基隆交點Vol.4 - 開場簡報
基隆交點Vol.4 - 開場簡報交點
 
Swift 0x19 advanced operators
Swift 0x19 advanced operatorsSwift 0x19 advanced operators
Swift 0x19 advanced operatorsHyun Jin Moon
 
PROPUESTA PROYECTO DE FORTALECIMIENTO DEL MP ENTREGADA POR EL FISCAL NACIONAL...
PROPUESTA PROYECTO DE FORTALECIMIENTO DEL MP ENTREGADA POR EL FISCAL NACIONAL...PROPUESTA PROYECTO DE FORTALECIMIENTO DEL MP ENTREGADA POR EL FISCAL NACIONAL...
PROPUESTA PROYECTO DE FORTALECIMIENTO DEL MP ENTREGADA POR EL FISCAL NACIONAL...ANF2014
 
Aula 15 09-14- dr. fabrício rezende- 1
Aula 15 09-14- dr. fabrício rezende- 1Aula 15 09-14- dr. fabrício rezende- 1
Aula 15 09-14- dr. fabrício rezende- 1Fernanda Moreira
 
Aula dr. argos simões 10 11 (1)
Aula dr. argos simões 10 11 (1)Aula dr. argos simões 10 11 (1)
Aula dr. argos simões 10 11 (1)Fernanda Moreira
 
Breakfast club - Clickmate CRM
Breakfast club - Clickmate CRMBreakfast club - Clickmate CRM
Breakfast club - Clickmate CRMINCUBA A/S
 

Viewers also liked (20)

Testing all your code through HipChat in Docker
Testing all your code through HipChat in DockerTesting all your code through HipChat in Docker
Testing all your code through HipChat in Docker
 
Osc3.0 manual agensi
Osc3.0 manual agensiOsc3.0 manual agensi
Osc3.0 manual agensi
 
Sab ki khabren
Sab ki khabrenSab ki khabren
Sab ki khabren
 
Презентация объектов СВАО
Презентация объектов СВАОПрезентация объектов СВАО
Презентация объектов СВАО
 
Yves Rocher C-11/2014
Yves Rocher C-11/2014Yves Rocher C-11/2014
Yves Rocher C-11/2014
 
Rakamlarla Türkiye : Enerji
Rakamlarla Türkiye : EnerjiRakamlarla Türkiye : Enerji
Rakamlarla Türkiye : Enerji
 
Adolf hitler
Adolf hitlerAdolf hitler
Adolf hitler
 
Phân tích nhân tố khám phá
Phân tích nhân tố khám pháPhân tích nhân tố khám phá
Phân tích nhân tố khám phá
 
Aula do dia 26 08 - dr. tácio lacerda gama
Aula do dia 26 08 - dr. tácio lacerda gamaAula do dia 26 08 - dr. tácio lacerda gama
Aula do dia 26 08 - dr. tácio lacerda gama
 
Sposoby przedstawiania algorytmu
Sposoby przedstawiania algorytmuSposoby przedstawiania algorytmu
Sposoby przedstawiania algorytmu
 
Bio data dprd kabupaten pakpak bharat masa jabatan 2009
Bio data dprd kabupaten pakpak bharat masa jabatan 2009Bio data dprd kabupaten pakpak bharat masa jabatan 2009
Bio data dprd kabupaten pakpak bharat masa jabatan 2009
 
基隆交點Vol.4 - 開場簡報
基隆交點Vol.4 - 開場簡報基隆交點Vol.4 - 開場簡報
基隆交點Vol.4 - 開場簡報
 
Swift 0x19 advanced operators
Swift 0x19 advanced operatorsSwift 0x19 advanced operators
Swift 0x19 advanced operators
 
La comunicación
La comunicaciónLa comunicación
La comunicación
 
PROPUESTA PROYECTO DE FORTALECIMIENTO DEL MP ENTREGADA POR EL FISCAL NACIONAL...
PROPUESTA PROYECTO DE FORTALECIMIENTO DEL MP ENTREGADA POR EL FISCAL NACIONAL...PROPUESTA PROYECTO DE FORTALECIMIENTO DEL MP ENTREGADA POR EL FISCAL NACIONAL...
PROPUESTA PROYECTO DE FORTALECIMIENTO DEL MP ENTREGADA POR EL FISCAL NACIONAL...
 
Planos de contas
Planos de contasPlanos de contas
Planos de contas
 
Aula 15 09-14- dr. fabrício rezende- 1
Aula 15 09-14- dr. fabrício rezende- 1Aula 15 09-14- dr. fabrício rezende- 1
Aula 15 09-14- dr. fabrício rezende- 1
 
Aula dr. argos simões 10 11 (1)
Aula dr. argos simões 10 11 (1)Aula dr. argos simões 10 11 (1)
Aula dr. argos simões 10 11 (1)
 
Breakfast club - Clickmate CRM
Breakfast club - Clickmate CRMBreakfast club - Clickmate CRM
Breakfast club - Clickmate CRM
 
Historieta
Historieta Historieta
Historieta
 

Similar to Rapid dev env DevOps Warsaw July 2014

Nmap Scripting Engine and http-enumeration
Nmap Scripting Engine and http-enumerationNmap Scripting Engine and http-enumeration
Nmap Scripting Engine and http-enumerationRobert Rowley
 
Immutable AWS Deployments with Packer and Jenkins
Immutable AWS Deployments with Packer and JenkinsImmutable AWS Deployments with Packer and Jenkins
Immutable AWS Deployments with Packer and JenkinsManish Pandit
 
Composer
ComposerComposer
Composercmodijk
 
Terraform 0.9 + good practices
Terraform 0.9 + good practicesTerraform 0.9 + good practices
Terraform 0.9 + good practicesRadek Simko
 
Baking in the cloud with packer and puppet
Baking in the cloud with packer and puppetBaking in the cloud with packer and puppet
Baking in the cloud with packer and puppetAlan Parkinson
 
It's 10pm: Do You Know Where Your Writes Are?
It's 10pm: Do You Know Where Your Writes Are?It's 10pm: Do You Know Where Your Writes Are?
It's 10pm: Do You Know Where Your Writes Are?MongoDB
 
Ansible inside
Ansible insideAnsible inside
Ansible insideIdeato
 
대용량 데이타 쉽고 빠르게 분석하기 :: 김일호 솔루션즈 아키텍트 :: Gaming on AWS 2016
대용량 데이타 쉽고 빠르게 분석하기 :: 김일호 솔루션즈 아키텍트 :: Gaming on AWS 2016대용량 데이타 쉽고 빠르게 분석하기 :: 김일호 솔루션즈 아키텍트 :: Gaming on AWS 2016
대용량 데이타 쉽고 빠르게 분석하기 :: 김일호 솔루션즈 아키텍트 :: Gaming on AWS 2016Amazon Web Services Korea
 
Automating Container Deployments on Virtualization with Ansible: OpenShift on...
Automating Container Deployments on Virtualization with Ansible: OpenShift on...Automating Container Deployments on Virtualization with Ansible: OpenShift on...
Automating Container Deployments on Virtualization with Ansible: OpenShift on...Laurent Domb
 
Using the Azure Container Service in your company
Using the Azure Container Service in your companyUsing the Azure Container Service in your company
Using the Azure Container Service in your companyJan de Vries
 
New Jersey Red Hat Users Group Presentation: Provisioning anywhere
New Jersey Red Hat Users Group Presentation: Provisioning anywhereNew Jersey Red Hat Users Group Presentation: Provisioning anywhere
New Jersey Red Hat Users Group Presentation: Provisioning anywhereRodrique Heron
 
Terraform in deployment pipeline
Terraform in deployment pipelineTerraform in deployment pipeline
Terraform in deployment pipelineAnton Babenko
 
Self Service Agile Infrastructure for Product Teams - Pop-up Loft Tel Aviv
Self Service Agile Infrastructure for Product Teams - Pop-up Loft Tel AvivSelf Service Agile Infrastructure for Product Teams - Pop-up Loft Tel Aviv
Self Service Agile Infrastructure for Product Teams - Pop-up Loft Tel AvivAmazon Web Services
 
Zabbix LLD from a C Module by Jan-Piet Mens
Zabbix LLD from a C Module by Jan-Piet MensZabbix LLD from a C Module by Jan-Piet Mens
Zabbix LLD from a C Module by Jan-Piet MensNETWAYS
 
Laboratory exercise - Network security - Penetration testing
Laboratory exercise - Network security - Penetration testingLaboratory exercise - Network security - Penetration testing
Laboratory exercise - Network security - Penetration testingseastorm44
 
Puppet at Opera Sofware - PuppetCamp Oslo 2013
Puppet at Opera Sofware - PuppetCamp Oslo 2013Puppet at Opera Sofware - PuppetCamp Oslo 2013
Puppet at Opera Sofware - PuppetCamp Oslo 2013Cosimo Streppone
 

Similar to Rapid dev env DevOps Warsaw July 2014 (20)

Nmap Scripting Engine and http-enumeration
Nmap Scripting Engine and http-enumerationNmap Scripting Engine and http-enumeration
Nmap Scripting Engine and http-enumeration
 
Immutable AWS Deployments with Packer and Jenkins
Immutable AWS Deployments with Packer and JenkinsImmutable AWS Deployments with Packer and Jenkins
Immutable AWS Deployments with Packer and Jenkins
 
Composer
ComposerComposer
Composer
 
Nmap scripting engine
Nmap scripting engineNmap scripting engine
Nmap scripting engine
 
Terraform 0.9 + good practices
Terraform 0.9 + good practicesTerraform 0.9 + good practices
Terraform 0.9 + good practices
 
Terraform day03
Terraform day03Terraform day03
Terraform day03
 
Baking in the cloud with packer and puppet
Baking in the cloud with packer and puppetBaking in the cloud with packer and puppet
Baking in the cloud with packer and puppet
 
It's 10pm: Do You Know Where Your Writes Are?
It's 10pm: Do You Know Where Your Writes Are?It's 10pm: Do You Know Where Your Writes Are?
It's 10pm: Do You Know Where Your Writes Are?
 
Ansible inside
Ansible insideAnsible inside
Ansible inside
 
대용량 데이타 쉽고 빠르게 분석하기 :: 김일호 솔루션즈 아키텍트 :: Gaming on AWS 2016
대용량 데이타 쉽고 빠르게 분석하기 :: 김일호 솔루션즈 아키텍트 :: Gaming on AWS 2016대용량 데이타 쉽고 빠르게 분석하기 :: 김일호 솔루션즈 아키텍트 :: Gaming on AWS 2016
대용량 데이타 쉽고 빠르게 분석하기 :: 김일호 솔루션즈 아키텍트 :: Gaming on AWS 2016
 
Automating Container Deployments on Virtualization with Ansible: OpenShift on...
Automating Container Deployments on Virtualization with Ansible: OpenShift on...Automating Container Deployments on Virtualization with Ansible: OpenShift on...
Automating Container Deployments on Virtualization with Ansible: OpenShift on...
 
AWS EC2
AWS EC2AWS EC2
AWS EC2
 
Using the Azure Container Service in your company
Using the Azure Container Service in your companyUsing the Azure Container Service in your company
Using the Azure Container Service in your company
 
New Jersey Red Hat Users Group Presentation: Provisioning anywhere
New Jersey Red Hat Users Group Presentation: Provisioning anywhereNew Jersey Red Hat Users Group Presentation: Provisioning anywhere
New Jersey Red Hat Users Group Presentation: Provisioning anywhere
 
Terraform in deployment pipeline
Terraform in deployment pipelineTerraform in deployment pipeline
Terraform in deployment pipeline
 
Self Service Agile Infrastructure for Product Teams - Pop-up Loft Tel Aviv
Self Service Agile Infrastructure for Product Teams - Pop-up Loft Tel AvivSelf Service Agile Infrastructure for Product Teams - Pop-up Loft Tel Aviv
Self Service Agile Infrastructure for Product Teams - Pop-up Loft Tel Aviv
 
Zabbix LLD from a C Module by Jan-Piet Mens
Zabbix LLD from a C Module by Jan-Piet MensZabbix LLD from a C Module by Jan-Piet Mens
Zabbix LLD from a C Module by Jan-Piet Mens
 
Laboratory exercise - Network security - Penetration testing
Laboratory exercise - Network security - Penetration testingLaboratory exercise - Network security - Penetration testing
Laboratory exercise - Network security - Penetration testing
 
Puppet at Opera Sofware - PuppetCamp Oslo 2013
Puppet at Opera Sofware - PuppetCamp Oslo 2013Puppet at Opera Sofware - PuppetCamp Oslo 2013
Puppet at Opera Sofware - PuppetCamp Oslo 2013
 
Instant DevOps
Instant DevOpsInstant DevOps
Instant DevOps
 

Rapid dev env DevOps Warsaw July 2014