32. 32
Vagrantfile
Vgatcniue"" d |ofg
arn.ofgr(2) o cni|
cni.mbx="rjc_ae
ofgv.o
poetnm"
cni.mbxul="tp/flsvgatpcmpeie4bx
ofgv.o_r
ht:/ie.arnu.o/rcs6.o"
cni.mntok:rvt_ewr,i:"9.6.310
ofgv.ewr piaentok p 12183.0"
ed
n
33. 33
...Vagrant's Success Story
1. Put a Vagrantfile into the project root
2. $ vagrant up
3. $ vagrant ssh
4. Profit! ..???
5. Deployment
37. 37
Ansible playbook
-hss dvlpv
ot: eeo-m
sd:ys
uo e
tss
ak:
nm:esr atccei u t dt
ae nue p ah s p o ae
ato:atudt_ah=e
cin p paecceys
http://www.ansibleworks.com/docs/modules.html
38. 38
Ansible meets Vagrant
$asbepabo .pabo.m - .hss- nil-lyok /lyokyl i /ot v
uvgat- prmk -piae
arn c aaio -rvtky$OE.arn./neuepiaeky
e=HM/vgatdiscr_rvt_e
or
$vgatpoiin
arn rvso
39. 39
Ansible - Vagrant Integration
#Vgatie
arnfl
Vgatcniue"" d |ofg
arn.ofgr(2) o cni|
#..
.
cni.mpoiin:nil d |nil|
ofgv.rvso asbe o asbe
asbepabo ="/lyokyl
nil.lyok
.pabo.m"
asbeivnoypt ="/ot"
nil.netr_ah
.hss
asbevroe=""
nil.ebs
v
ed
n
ed
n
41. 41
Web Server Gateway Interface
Standardized by PEP 333, PEP 3333
dfapiainevrn satrsos)
e plcto(nio, tr_epne:
satrsos(20O' ['otn-ye,'etpan))
tr_epne'0 K, (CnetTp' tx/li']
yed'el Wrdn
il Hlo ol'