SlideShare a Scribd company logo
RAPID DEV
ENVIRONMENTS
Przemek Hejman - Marcin Brański
Rapid dev env DevOps Warsaw July 2014
Rapid dev env DevOps Warsaw July 2014
Rapid dev env DevOps Warsaw July 2014
Rapid dev env DevOps Warsaw July 2014
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
Rapid dev env DevOps Warsaw July 2014
Rapid dev env DevOps Warsaw July 2014
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
Rapid dev env DevOps Warsaw July 2014
Bare Metal
Hardware Assisted
Rapid dev env DevOps Warsaw July 2014
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

PDF
Network Automation: Ansible 102
PDF
Ansible is the simplest way to automate. MoldCamp, 2015
PDF
Ansible loves Python, Python Philadelphia meetup
PPT
Ansible presentation
PDF
Future Decoded - Node.js per sviluppatori .NET
PDF
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
PDF
Configuration Management in Ansible
PDF
Ansible Introduction - Ansible Brno #1 - David Karban
Network Automation: Ansible 102
Ansible is the simplest way to automate. MoldCamp, 2015
Ansible loves Python, Python Philadelphia meetup
Ansible presentation
Future Decoded - Node.js per sviluppatori .NET
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
Configuration Management in Ansible
Ansible Introduction - Ansible Brno #1 - David Karban

What's hot (20)

PDF
Node.js - A Quick Tour
PDF
Node.js
PPTX
Introduction to ansible
PDF
Ansible - Introduction
ODP
SockJS Intro
PDF
Ansible tips & tricks
KEY
A language for the Internet: Why JavaScript and Node.js is right for Internet...
PDF
Ansible for beginners ...?
PDF
(WS14) Sasa Matijasic - Node.js i "novi" web
PDF
Ansible - Swiss Army Knife Orchestration
TXT
PPTX
Using Ansible Dynamic Inventory with Amazon EC2
PDF
Start using vagrant now!
PPTX
Ansible presentation
PDF
Development of Ansible modules
PDF
Asynchronous PHP and Real-time Messaging
PDF
Automation with ansible
PDF
2 docker engine_hands_on
 
PDF
Ansible
PPTX
Ansible fest Presentation slides
Node.js - A Quick Tour
Node.js
Introduction to ansible
Ansible - Introduction
SockJS Intro
Ansible tips & tricks
A language for the Internet: Why JavaScript and Node.js is right for Internet...
Ansible for beginners ...?
(WS14) Sasa Matijasic - Node.js i "novi" web
Ansible - Swiss Army Knife Orchestration
Using Ansible Dynamic Inventory with Amazon EC2
Start using vagrant now!
Ansible presentation
Development of Ansible modules
Asynchronous PHP and Real-time Messaging
Automation with ansible
2 docker engine_hands_on
 
Ansible
Ansible fest Presentation slides
Ad

Viewers also liked (20)

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

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

ODP
Nmap Scripting Engine and http-enumeration
PDF
Immutable AWS Deployments with Packer and Jenkins
PDF
Composer
PDF
Nmap scripting engine
PDF
Privilege Escalation Techniques and methodology.pdf
PDF
Terraform 0.9 + good practices
PPTX
Terraform day03
PPTX
Baking in the cloud with packer and puppet
PPTX
It's 10pm: Do You Know Where Your Writes Are?
PDF
Ansible inside
PDF
대용량 데이타 쉽고 빠르게 분석하기 :: 김일호 솔루션즈 아키텍트 :: Gaming on AWS 2016
PDF
Automating Container Deployments on Virtualization with Ansible: OpenShift on...
PDF
AWS EC2
PPTX
Using the Azure Container Service in your company
PDF
New Jersey Red Hat Users Group Presentation: Provisioning anywhere
PDF
Terraform in deployment pipeline
PDF
Zabbix LLD from a C Module by Jan-Piet Mens
PPT
Laboratory exercise - Network security - Penetration testing
PDF
Puppet at Opera Sofware - PuppetCamp Oslo 2013
PDF
Instant DevOps
Nmap Scripting Engine and http-enumeration
Immutable AWS Deployments with Packer and Jenkins
Composer
Nmap scripting engine
Privilege Escalation Techniques and methodology.pdf
Terraform 0.9 + good practices
Terraform day03
Baking in the cloud with packer and puppet
It's 10pm: Do You Know Where Your Writes Are?
Ansible inside
대용량 데이타 쉽고 빠르게 분석하기 :: 김일호 솔루션즈 아키텍트 :: Gaming on AWS 2016
Automating Container Deployments on Virtualization with Ansible: OpenShift on...
AWS EC2
Using the Azure Container Service in your company
New Jersey Red Hat Users Group Presentation: Provisioning anywhere
Terraform in deployment pipeline
Zabbix LLD from a C Module by Jan-Piet Mens
Laboratory exercise - Network security - Penetration testing
Puppet at Opera Sofware - PuppetCamp Oslo 2013
Instant DevOps

Rapid dev env DevOps Warsaw July 2014