SlideShare a Scribd company logo
1 of 23
Download to read offline
provisionamento
orquestrado nas nuvens
com JuJu
Thiago Rondon, b-datum.com

7masters, cloud computing,
30 de outubro de 2013

Wednesday, October 30, 13
o que é ?
• Ubuntu, Go, OpenSource
• Escale com deploy e integração.
• Monitoramento e Diagnóstico
• AWS, Azure, HP Cloud, OpenStack, MAAS
• Provisionamento orquestrado
Wednesday, October 30, 13
charms

Wednesday, October 30, 13
metadata.yaml
name: vanilla
summary: Vanilla is an open-source, pluggable, themeable, multi-lingual forum.
maintainer: Your Name <your@email.tld>
description: |
Vanilla is designed to deploy and grow small communities to scale.
This charm deploys Vanilla Forums as outlined by the Vanilla Forums installation guide.
categories:
- applications
provides:
website:
interface: http
requires:
database:
interface: mysql

Wednesday, October 30, 13
Hooks
•
•
•
•

Wednesday, October 30, 13

install, start, stop
config-changed, upgrade-charm
relation-joined, relation-changed
relation-departed, relation-broken
cenário clássico
jenkins

jenkins-slave

nagios

Wednesday, October 30, 13
bootstrap
state machine
jenkins
jenkins-slave
nagios

Wednesday, October 30, 13

$	
  juju	
  bootstrap	
  

$	
  juju	
  deploy	
  jenkins	
  

$	
  juju	
  deploy	
  jenkins-­‐slave	
  

$	
  juju	
  deploy	
  nagios
relacionamento
jenkins

jenkins-slave

$	
  juju	
  add-­‐relation	
  jenkins	
  jenkins-­‐slave	
  

Wednesday, October 30, 13
para o mundo
$	
  juju	
  set	
  jenkins	
  password=imasters	
  
$	
  juju	
  expose	
  jenkins

Wednesday, October 30, 13
para o mundo
➜	
  	
  ~	
  	
  juju	
  status	
  jenkins
environment:	
  amazon
machines:
	
  	
  "1":
	
  	
  	
  	
  agent-­‐state:	
  started
	
  	
  	
  	
  agent-­‐version:	
  1.16.0
	
  	
  	
  	
  dns-­‐name:	
  ec2-­‐54-­‐205-­‐44-­‐5.compute-­‐1.amazonaws.com
	
  	
  	
  	
  instance-­‐id:	
  i-­‐0db6ad75
	
  	
  	
  	
  instance-­‐state:	
  running
	
  	
  	
  	
  series:	
  precise
	
  	
  	
  	
  hardware:	
  arch=amd64	
  cpu-­‐cores=1	
  cpu-­‐power=100	
  mem=1740M	
  root-­‐disk=8192M
services:
	
  	
  jenkins:
	
  	
  	
  	
  charm:	
  cs:precise/jenkins-­‐8
	
  	
  	
  	
  exposed:	
  true
	
  	
  	
  	
  relations:
	
  	
  	
  	
  	
  	
  master:
	
  	
  	
  	
  	
  	
  -­‐	
  jenkins-­‐slave
	
  	
  	
  	
  units:
	
  	
  	
  	
  	
  	
  jenkins/0:
	
  	
  	
  	
  	
  	
  	
  	
  agent-­‐state:	
  error
	
  	
  	
  	
  	
  	
  	
  	
  agent-­‐state-­‐info:	
  'hook	
  failed:	
  "master-­‐relation-­‐changed"'
	
  	
  	
  	
  	
  	
  	
  	
  agent-­‐version:	
  1.16.0
	
  	
  	
  	
  	
  	
  	
  	
  machine:	
  "1"
	
  	
  	
  	
  	
  	
  	
  	
  open-­‐ports:
	
  	
  	
  	
  	
  	
  	
  	
  -­‐	
  8080/tcp
	
  	
  	
  	
  	
  	
  	
  	
  public-­‐address:	
  ec2-­‐54-­‐205-­‐44-­‐5.compute-­‐1.amazonaws.com
Wednesday, October 30, 13
escalando
jenkins-slave
jenkins
jenkins-slave

$	
  juju	
  add-­‐unit	
  jenkins-­‐slave	
  

Wednesday, October 30, 13
relacionando
nagios

jenkins
$	
  juju	
  add-­‐relation	
  nagios	
  jenkins
$	
  juju	
  add-­‐relation	
  nagios	
  jenkins-­‐slave

Wednesday, October 30, 13

jenkins-slave

jenkins-slave
configurando
nagios

$	
  juju	
  expose	
  nagios
$	
  juju	
  ssh	
  nagios/0	
  sudo	
  cat	
  /var/lib/juju/nagios.passwd

Wednesday, October 30, 13
serviço subordinado
nrpe

$	
  juju	
  deploy	
  nrpe
$	
  juju	
  add-­‐relation	
  nrpe	
  jenkins
$	
  juju	
  add-­‐relation	
  nrpe	
  jenkins-­‐slave
$	
  juju	
  add-­‐relation	
  nrpe:monitors	
  nagios:monitors

Wednesday, October 30, 13
state machine

jenkins
jenkins-slave
jenkins-slave

Wednesday, October 30, 13

nrpe

nagios
resumindo...
➜	
  	
  ~	
  	
  juju	
  bootstrap
➜	
  	
  ~	
  	
  juju	
  deploy	
  jenkins
➜	
  	
  ~	
  	
  juju	
  deploy	
  jenkins-­‐slave
➜	
  	
  ~	
  	
  juju	
  add-­‐relation	
  jenkins	
  jenkins-­‐slave
➜	
  	
  ~	
  	
  juju	
  deploy	
  nagios
➜	
  	
  ~	
  	
  juju	
  set	
  jenkins	
  password=imasters
➜	
  	
  ~	
  	
  juju	
  expose	
  jenkins
➜	
  	
  ~	
  	
  juju	
  add-­‐unit	
  jenkins-­‐slave
➜	
  	
  ~	
  	
  juju	
  add-­‐relation	
  nagios	
  jenkins
➜	
  	
  ~	
  	
  juju	
  expose	
  nagios
➜	
  	
  ~	
  	
  juju	
  add-­‐relation	
  nagios	
  jenkins-­‐slave
➜	
  	
  ~	
  	
  juju	
  deploy	
  nrpe
➜	
  	
  ~	
  	
  juju	
  add-­‐relation	
  nrpe	
  jenkins
➜	
  	
  ~	
  	
  juju	
  add-­‐relation	
  nrpe	
  jenkins-­‐slave
➜	
  	
  ~	
  	
  juju	
  add-­‐relation	
  nrpe:monitors	
  nagios:monitors

Wednesday, October 30, 13
juju GUI
juju-gui

$	
  juju	
  deploy	
  juju-­‐gui
$	
  juju	
  expose	
  juju-­‐gui

Wednesday, October 30, 13
juju GUI

Wednesday, October 30, 13
juju GUI

Wednesday, October 30, 13
como esta ?
$	
  juju	
  status
$	
  juju	
  status	
  service*
$	
  juju	
  status	
  -­‐e	
  local
$	
  juju	
  status	
  -­‐-­‐format=json
$	
  juju	
  ssh	
  wordpress/1
$	
  juju	
  debug-­‐log

Wednesday, October 30, 13
escalando
$	
  juju	
  add-­‐unit	
  -­‐n	
  5	
  mysql
$	
  juju	
  add-­‐machine
$	
  juju	
  deploy	
  -­‐-­‐constraints=”mem=4G”

Wednesday, October 30, 13
destroy/remove
$	
  juju	
  remove-­‐unit	
  mysql/6
$	
  juju	
  destroy-­‐environment	
  -­‐e	
  amazon
$	
  juju	
  detroy-­‐relation	
  service	
  mysql

Wednesday, October 30, 13
http://juju.ubuntu.com
https://code.launchpad.net/~juju

Wednesday, October 30, 13

More Related Content

What's hot

First there was the command line
First there was the command lineFirst there was the command line
First there was the command lineAdrian Cardenas
 
Learning the command line
Learning the command lineLearning the command line
Learning the command lineAdrian Cardenas
 
Conquering the Command Line
Conquering the Command LineConquering the Command Line
Conquering the Command LineAdrian Cardenas
 
NUMOSS 4th Week - Commandline Tutorial
NUMOSS 4th Week - Commandline TutorialNUMOSS 4th Week - Commandline Tutorial
NUMOSS 4th Week - Commandline TutorialGagah Arifianto
 
puppet @techlifecookpad
puppet @techlifecookpadpuppet @techlifecookpad
puppet @techlifecookpadNaoya Nakazawa
 
Link it smart 7688 MEETUP - Bangkok
Link it smart 7688 MEETUP - BangkokLink it smart 7688 MEETUP - Bangkok
Link it smart 7688 MEETUP - BangkokNat Weerawan
 
You Don't Need Lodash
You Don't Need Lodash You Don't Need Lodash
You Don't Need Lodash UpsideTravel
 
Konfigurasi freeradius server
Konfigurasi freeradius serverKonfigurasi freeradius server
Konfigurasi freeradius serverWalid Umar
 
Elasticsearch sur Azure : Make sense of your (BIG) data !
Elasticsearch sur Azure : Make sense of your (BIG) data !Elasticsearch sur Azure : Make sense of your (BIG) data !
Elasticsearch sur Azure : Make sense of your (BIG) data !Microsoft
 
Sudo &amp; su commands
Sudo &amp; su commandsSudo &amp; su commands
Sudo &amp; su commandsMeenu Chopra
 
26. oktober.hq mixx and more else
26. oktober.hq mixx and more else26. oktober.hq mixx and more else
26. oktober.hq mixx and more elsegasica77
 

What's hot (20)

First there was the command line
First there was the command lineFirst there was the command line
First there was the command line
 
Learning the command line
Learning the command lineLearning the command line
Learning the command line
 
Conquering the Command Line
Conquering the Command LineConquering the Command Line
Conquering the Command Line
 
Couchdb
CouchdbCouchdb
Couchdb
 
NUMOSS 4th Week - Commandline Tutorial
NUMOSS 4th Week - Commandline TutorialNUMOSS 4th Week - Commandline Tutorial
NUMOSS 4th Week - Commandline Tutorial
 
What's new in Rails5?
What's new in Rails5?What's new in Rails5?
What's new in Rails5?
 
Linux Command Line
Linux Command LineLinux Command Line
Linux Command Line
 
puppet @techlifecookpad
puppet @techlifecookpadpuppet @techlifecookpad
puppet @techlifecookpad
 
ubunturef
ubunturefubunturef
ubunturef
 
Link it smart 7688 MEETUP - Bangkok
Link it smart 7688 MEETUP - BangkokLink it smart 7688 MEETUP - Bangkok
Link it smart 7688 MEETUP - Bangkok
 
You Don't Need Lodash
You Don't Need Lodash You Don't Need Lodash
You Don't Need Lodash
 
Konfigurasi freeradius server
Konfigurasi freeradius serverKonfigurasi freeradius server
Konfigurasi freeradius server
 
Elasticsearch sur Azure : Make sense of your (BIG) data !
Elasticsearch sur Azure : Make sense of your (BIG) data !Elasticsearch sur Azure : Make sense of your (BIG) data !
Elasticsearch sur Azure : Make sense of your (BIG) data !
 
19. CodeIgniter imagini in mysql
19. CodeIgniter imagini in mysql19. CodeIgniter imagini in mysql
19. CodeIgniter imagini in mysql
 
RG講義_SSH
RG講義_SSHRG講義_SSH
RG講義_SSH
 
Cria db.sql
Cria db.sqlCria db.sql
Cria db.sql
 
Sudo &amp; su commands
Sudo &amp; su commandsSudo &amp; su commands
Sudo &amp; su commands
 
Leaks & Zombies
Leaks & ZombiesLeaks & Zombies
Leaks & Zombies
 
26. oktober.hq mixx and more else
26. oktober.hq mixx and more else26. oktober.hq mixx and more else
26. oktober.hq mixx and more else
 
Dicas de SSH
Dicas de SSHDicas de SSH
Dicas de SSH
 

Viewers also liked

IOTA - Open Indicators of Transparency and Accountability
IOTA - Open Indicators of Transparency and AccountabilityIOTA - Open Indicators of Transparency and Accountability
IOTA - Open Indicators of Transparency and AccountabilityThiago Rondon
 
Dados abertos é inovação
Dados abertos é inovaçãoDados abertos é inovação
Dados abertos é inovaçãoThiago Rondon
 
You, me and Opendata - v2
You, me and Opendata - v2You, me and Opendata - v2
You, me and Opendata - v2Thiago Rondon
 
AppCívico - Tecnologias cívicas estão impactando políticas públicas
AppCívico - Tecnologias cívicas estão impactando políticas públicasAppCívico - Tecnologias cívicas estão impactando políticas públicas
AppCívico - Tecnologias cívicas estão impactando políticas públicasThiago Rondon
 

Viewers also liked (6)

IOTA - Open Indicators of Transparency and Accountability
IOTA - Open Indicators of Transparency and AccountabilityIOTA - Open Indicators of Transparency and Accountability
IOTA - Open Indicators of Transparency and Accountability
 
Politics and code
Politics and codePolitics and code
Politics and code
 
Dados abertos é inovação
Dados abertos é inovaçãoDados abertos é inovação
Dados abertos é inovação
 
Iota
IotaIota
Iota
 
You, me and Opendata - v2
You, me and Opendata - v2You, me and Opendata - v2
You, me and Opendata - v2
 
AppCívico - Tecnologias cívicas estão impactando políticas públicas
AppCívico - Tecnologias cívicas estão impactando políticas públicasAppCívico - Tecnologias cívicas estão impactando políticas públicas
AppCívico - Tecnologias cívicas estão impactando políticas públicas
 

Similar to Provisionamento orquestrado nas nuvens com Juju

(WEB307) Scalable Site Management Using AWS OpsWorks | AWS re:Invent 2014
(WEB307) Scalable Site Management Using AWS OpsWorks | AWS re:Invent 2014(WEB307) Scalable Site Management Using AWS OpsWorks | AWS re:Invent 2014
(WEB307) Scalable Site Management Using AWS OpsWorks | AWS re:Invent 2014Amazon Web Services
 
Introduction to Vaadin 7
Introduction to Vaadin 7Introduction to Vaadin 7
Introduction to Vaadin 7lastrand
 
Great Hiroshima with Python 170830
Great Hiroshima with Python 170830Great Hiroshima with Python 170830
Great Hiroshima with Python 170830Takuya Nishimoto
 
Chef - Configuration Management for the Cloud
Chef - Configuration Management for the CloudChef - Configuration Management for the Cloud
Chef - Configuration Management for the CloudJames Casey
 
Infrastructure as Data - PuppetConf 2013
Infrastructure as Data - PuppetConf 2013Infrastructure as Data - PuppetConf 2013
Infrastructure as Data - PuppetConf 2013Puppet
 
Monitoring at/with SUSE 2015
Monitoring at/with SUSE 2015Monitoring at/with SUSE 2015
Monitoring at/with SUSE 2015Lars Vogdt
 
Building scalable applications while scaling your infrastructure by rhommel l...
Building scalable applications while scaling your infrastructure by rhommel l...Building scalable applications while scaling your infrastructure by rhommel l...
Building scalable applications while scaling your infrastructure by rhommel l...NETWAYS
 
OSMC 2015:The road to lazy monitoring with Icinga 2 and Puppet by Tom de Vylder
OSMC 2015:The road to lazy monitoring with Icinga 2 and Puppet by Tom de VylderOSMC 2015:The road to lazy monitoring with Icinga 2 and Puppet by Tom de Vylder
OSMC 2015:The road to lazy monitoring with Icinga 2 and Puppet by Tom de VylderNETWAYS
 
OSMC 2015 | The Road to Lazy Monitoring with Icinga 2 & Puppet by Tom De Vylder
OSMC 2015 | The Road to Lazy Monitoring with Icinga 2 & Puppet by Tom De VylderOSMC 2015 | The Road to Lazy Monitoring with Icinga 2 & Puppet by Tom De Vylder
OSMC 2015 | The Road to Lazy Monitoring with Icinga 2 & Puppet by Tom De VylderNETWAYS
 
Building scalable applications while scaling your infrastructure by rhommel l...
Building scalable applications while scaling your infrastructure by rhommel l...Building scalable applications while scaling your infrastructure by rhommel l...
Building scalable applications while scaling your infrastructure by rhommel l...Puppet
 
Islands: Puppet at Bulletproof Networks
Islands: Puppet at Bulletproof NetworksIslands: Puppet at Bulletproof Networks
Islands: Puppet at Bulletproof NetworksLindsay Holmwood
 
SiteGround Tech TeamBuilding
SiteGround Tech TeamBuildingSiteGround Tech TeamBuilding
SiteGround Tech TeamBuildingMarian Marinov
 
PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22Yuya Takei
 
Creating "Secure" PHP applications, Part 2, Server Hardening
Creating "Secure" PHP applications, Part 2, Server HardeningCreating "Secure" PHP applications, Part 2, Server Hardening
Creating "Secure" PHP applications, Part 2, Server Hardeningarchwisp
 

Similar to Provisionamento orquestrado nas nuvens com Juju (20)

Backups
BackupsBackups
Backups
 
(WEB307) Scalable Site Management Using AWS OpsWorks | AWS re:Invent 2014
(WEB307) Scalable Site Management Using AWS OpsWorks | AWS re:Invent 2014(WEB307) Scalable Site Management Using AWS OpsWorks | AWS re:Invent 2014
(WEB307) Scalable Site Management Using AWS OpsWorks | AWS re:Invent 2014
 
Vaadin 7
Vaadin 7Vaadin 7
Vaadin 7
 
Introduction to Vaadin 7
Introduction to Vaadin 7Introduction to Vaadin 7
Introduction to Vaadin 7
 
Great Hiroshima with Python 170830
Great Hiroshima with Python 170830Great Hiroshima with Python 170830
Great Hiroshima with Python 170830
 
Chef - Configuration Management for the Cloud
Chef - Configuration Management for the CloudChef - Configuration Management for the Cloud
Chef - Configuration Management for the Cloud
 
Dtalk shell
Dtalk shellDtalk shell
Dtalk shell
 
Infrastructure as Data - PuppetConf 2013
Infrastructure as Data - PuppetConf 2013Infrastructure as Data - PuppetConf 2013
Infrastructure as Data - PuppetConf 2013
 
Monitoring at/with SUSE 2015
Monitoring at/with SUSE 2015Monitoring at/with SUSE 2015
Monitoring at/with SUSE 2015
 
Informology - Introduction to juju
Informology - Introduction to jujuInformology - Introduction to juju
Informology - Introduction to juju
 
Building scalable applications while scaling your infrastructure by rhommel l...
Building scalable applications while scaling your infrastructure by rhommel l...Building scalable applications while scaling your infrastructure by rhommel l...
Building scalable applications while scaling your infrastructure by rhommel l...
 
OSMC 2015:The road to lazy monitoring with Icinga 2 and Puppet by Tom de Vylder
OSMC 2015:The road to lazy monitoring with Icinga 2 and Puppet by Tom de VylderOSMC 2015:The road to lazy monitoring with Icinga 2 and Puppet by Tom de Vylder
OSMC 2015:The road to lazy monitoring with Icinga 2 and Puppet by Tom de Vylder
 
OSMC 2015 | The Road to Lazy Monitoring with Icinga 2 & Puppet by Tom De Vylder
OSMC 2015 | The Road to Lazy Monitoring with Icinga 2 & Puppet by Tom De VylderOSMC 2015 | The Road to Lazy Monitoring with Icinga 2 & Puppet by Tom De Vylder
OSMC 2015 | The Road to Lazy Monitoring with Icinga 2 & Puppet by Tom De Vylder
 
Building scalable applications while scaling your infrastructure by rhommel l...
Building scalable applications while scaling your infrastructure by rhommel l...Building scalable applications while scaling your infrastructure by rhommel l...
Building scalable applications while scaling your infrastructure by rhommel l...
 
Islands: Puppet at Bulletproof Networks
Islands: Puppet at Bulletproof NetworksIslands: Puppet at Bulletproof Networks
Islands: Puppet at Bulletproof Networks
 
SiteGround Tech TeamBuilding
SiteGround Tech TeamBuildingSiteGround Tech TeamBuilding
SiteGround Tech TeamBuilding
 
Ubic
UbicUbic
Ubic
 
Ubic-public
Ubic-publicUbic-public
Ubic-public
 
PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22
 
Creating "Secure" PHP applications, Part 2, Server Hardening
Creating "Secure" PHP applications, Part 2, Server HardeningCreating "Secure" PHP applications, Part 2, Server Hardening
Creating "Secure" PHP applications, Part 2, Server Hardening
 

More from Thiago Rondon

Democracia nas eleições
Democracia nas eleiçõesDemocracia nas eleições
Democracia nas eleiçõesThiago Rondon
 
YAPC::2014 Accountability
YAPC::2014 AccountabilityYAPC::2014 Accountability
YAPC::2014 AccountabilityThiago Rondon
 
introducción a la Red Latinoamericana
introducción a la Red Latinoamericanaintroducción a la Red Latinoamericana
introducción a la Red LatinoamericanaThiago Rondon
 
TDC 2012 - You, Me and Opendata
TDC 2012 - You, Me and Opendata TDC 2012 - You, Me and Opendata
TDC 2012 - You, Me and Opendata Thiago Rondon
 
OGP: You, Me and Opendata
OGP: You, Me and OpendataOGP: You, Me and Opendata
OGP: You, Me and OpendataThiago Rondon
 
Statim, time series interface for Perl.
Statim, time series interface for Perl.Statim, time series interface for Perl.
Statim, time series interface for Perl.Thiago Rondon
 
Opendata - Não posso fazer tijolos sem barro !
Opendata - Não posso fazer tijolos sem barro !Opendata - Não posso fazer tijolos sem barro !
Opendata - Não posso fazer tijolos sem barro !Thiago Rondon
 
Dados abertos do wikipedia ao governo
Dados abertos do wikipedia ao governoDados abertos do wikipedia ao governo
Dados abertos do wikipedia ao governoThiago Rondon
 
Para onde foi o meu dinheiro ?
Para onde foi o meu dinheiro ?Para onde foi o meu dinheiro ?
Para onde foi o meu dinheiro ?Thiago Rondon
 
Datos abiertos, Gobierno y la sociedad en conjunto.
Datos abiertos, Gobierno y la sociedad en conjunto.Datos abiertos, Gobierno y la sociedad en conjunto.
Datos abiertos, Gobierno y la sociedad en conjunto.Thiago Rondon
 
OpenData-BR, [Captando] Dados públicos brasileiros
OpenData-BR, [Captando] Dados públicos brasileirosOpenData-BR, [Captando] Dados públicos brasileiros
OpenData-BR, [Captando] Dados públicos brasileirosThiago Rondon
 
Net::RabbitMQ(::Simple)
Net::RabbitMQ(::Simple)Net::RabbitMQ(::Simple)
Net::RabbitMQ(::Simple)Thiago Rondon
 
Cache, Concorrência e Sincronização.
Cache, Concorrência e Sincronização.Cache, Concorrência e Sincronização.
Cache, Concorrência e Sincronização.Thiago Rondon
 
HTTP, Requisição e Resposta
HTTP, Requisição e RespostaHTTP, Requisição e Resposta
HTTP, Requisição e RespostaThiago Rondon
 
YAPC::Brasil 2009, OpenSIPS e PERL
YAPC::Brasil 2009, OpenSIPS e PERLYAPC::Brasil 2009, OpenSIPS e PERL
YAPC::Brasil 2009, OpenSIPS e PERLThiago Rondon
 
YAPC::Brasil 2009, POE
YAPC::Brasil 2009, POEYAPC::Brasil 2009, POE
YAPC::Brasil 2009, POEThiago Rondon
 

More from Thiago Rondon (20)

Democracia nas eleições
Democracia nas eleiçõesDemocracia nas eleições
Democracia nas eleições
 
YAPC::2014 Accountability
YAPC::2014 AccountabilityYAPC::2014 Accountability
YAPC::2014 Accountability
 
IOTA
IOTAIOTA
IOTA
 
Docker
DockerDocker
Docker
 
Auto Scaling AWS
Auto Scaling AWSAuto Scaling AWS
Auto Scaling AWS
 
introducción a la Red Latinoamericana
introducción a la Red Latinoamericanaintroducción a la Red Latinoamericana
introducción a la Red Latinoamericana
 
TDC 2012 - You, Me and Opendata
TDC 2012 - You, Me and Opendata TDC 2012 - You, Me and Opendata
TDC 2012 - You, Me and Opendata
 
OGP: You, Me and Opendata
OGP: You, Me and OpendataOGP: You, Me and Opendata
OGP: You, Me and Opendata
 
Onde Acontece ?
Onde Acontece ?Onde Acontece ?
Onde Acontece ?
 
Statim, time series interface for Perl.
Statim, time series interface for Perl.Statim, time series interface for Perl.
Statim, time series interface for Perl.
 
Opendata - Não posso fazer tijolos sem barro !
Opendata - Não posso fazer tijolos sem barro !Opendata - Não posso fazer tijolos sem barro !
Opendata - Não posso fazer tijolos sem barro !
 
Dados abertos do wikipedia ao governo
Dados abertos do wikipedia ao governoDados abertos do wikipedia ao governo
Dados abertos do wikipedia ao governo
 
Para onde foi o meu dinheiro ?
Para onde foi o meu dinheiro ?Para onde foi o meu dinheiro ?
Para onde foi o meu dinheiro ?
 
Datos abiertos, Gobierno y la sociedad en conjunto.
Datos abiertos, Gobierno y la sociedad en conjunto.Datos abiertos, Gobierno y la sociedad en conjunto.
Datos abiertos, Gobierno y la sociedad en conjunto.
 
OpenData-BR, [Captando] Dados públicos brasileiros
OpenData-BR, [Captando] Dados públicos brasileirosOpenData-BR, [Captando] Dados públicos brasileiros
OpenData-BR, [Captando] Dados públicos brasileiros
 
Net::RabbitMQ(::Simple)
Net::RabbitMQ(::Simple)Net::RabbitMQ(::Simple)
Net::RabbitMQ(::Simple)
 
Cache, Concorrência e Sincronização.
Cache, Concorrência e Sincronização.Cache, Concorrência e Sincronização.
Cache, Concorrência e Sincronização.
 
HTTP, Requisição e Resposta
HTTP, Requisição e RespostaHTTP, Requisição e Resposta
HTTP, Requisição e Resposta
 
YAPC::Brasil 2009, OpenSIPS e PERL
YAPC::Brasil 2009, OpenSIPS e PERLYAPC::Brasil 2009, OpenSIPS e PERL
YAPC::Brasil 2009, OpenSIPS e PERL
 
YAPC::Brasil 2009, POE
YAPC::Brasil 2009, POEYAPC::Brasil 2009, POE
YAPC::Brasil 2009, POE
 

Recently uploaded

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 

Recently uploaded (20)

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 

Provisionamento orquestrado nas nuvens com Juju

  • 1. provisionamento orquestrado nas nuvens com JuJu Thiago Rondon, b-datum.com 7masters, cloud computing, 30 de outubro de 2013 Wednesday, October 30, 13
  • 2. o que é ? • Ubuntu, Go, OpenSource • Escale com deploy e integração. • Monitoramento e Diagnóstico • AWS, Azure, HP Cloud, OpenStack, MAAS • Provisionamento orquestrado Wednesday, October 30, 13
  • 4. metadata.yaml name: vanilla summary: Vanilla is an open-source, pluggable, themeable, multi-lingual forum. maintainer: Your Name <your@email.tld> description: | Vanilla is designed to deploy and grow small communities to scale. This charm deploys Vanilla Forums as outlined by the Vanilla Forums installation guide. categories: - applications provides: website: interface: http requires: database: interface: mysql Wednesday, October 30, 13
  • 5. Hooks • • • • Wednesday, October 30, 13 install, start, stop config-changed, upgrade-charm relation-joined, relation-changed relation-departed, relation-broken
  • 7. bootstrap state machine jenkins jenkins-slave nagios Wednesday, October 30, 13 $  juju  bootstrap   $  juju  deploy  jenkins   $  juju  deploy  jenkins-­‐slave   $  juju  deploy  nagios
  • 8. relacionamento jenkins jenkins-slave $  juju  add-­‐relation  jenkins  jenkins-­‐slave   Wednesday, October 30, 13
  • 9. para o mundo $  juju  set  jenkins  password=imasters   $  juju  expose  jenkins Wednesday, October 30, 13
  • 10. para o mundo ➜    ~    juju  status  jenkins environment:  amazon machines:    "1":        agent-­‐state:  started        agent-­‐version:  1.16.0        dns-­‐name:  ec2-­‐54-­‐205-­‐44-­‐5.compute-­‐1.amazonaws.com        instance-­‐id:  i-­‐0db6ad75        instance-­‐state:  running        series:  precise        hardware:  arch=amd64  cpu-­‐cores=1  cpu-­‐power=100  mem=1740M  root-­‐disk=8192M services:    jenkins:        charm:  cs:precise/jenkins-­‐8        exposed:  true        relations:            master:            -­‐  jenkins-­‐slave        units:            jenkins/0:                agent-­‐state:  error                agent-­‐state-­‐info:  'hook  failed:  "master-­‐relation-­‐changed"'                agent-­‐version:  1.16.0                machine:  "1"                open-­‐ports:                -­‐  8080/tcp                public-­‐address:  ec2-­‐54-­‐205-­‐44-­‐5.compute-­‐1.amazonaws.com Wednesday, October 30, 13
  • 11. escalando jenkins-slave jenkins jenkins-slave $  juju  add-­‐unit  jenkins-­‐slave   Wednesday, October 30, 13
  • 12. relacionando nagios jenkins $  juju  add-­‐relation  nagios  jenkins $  juju  add-­‐relation  nagios  jenkins-­‐slave Wednesday, October 30, 13 jenkins-slave jenkins-slave
  • 13. configurando nagios $  juju  expose  nagios $  juju  ssh  nagios/0  sudo  cat  /var/lib/juju/nagios.passwd Wednesday, October 30, 13
  • 14. serviço subordinado nrpe $  juju  deploy  nrpe $  juju  add-­‐relation  nrpe  jenkins $  juju  add-­‐relation  nrpe  jenkins-­‐slave $  juju  add-­‐relation  nrpe:monitors  nagios:monitors Wednesday, October 30, 13
  • 16. resumindo... ➜    ~    juju  bootstrap ➜    ~    juju  deploy  jenkins ➜    ~    juju  deploy  jenkins-­‐slave ➜    ~    juju  add-­‐relation  jenkins  jenkins-­‐slave ➜    ~    juju  deploy  nagios ➜    ~    juju  set  jenkins  password=imasters ➜    ~    juju  expose  jenkins ➜    ~    juju  add-­‐unit  jenkins-­‐slave ➜    ~    juju  add-­‐relation  nagios  jenkins ➜    ~    juju  expose  nagios ➜    ~    juju  add-­‐relation  nagios  jenkins-­‐slave ➜    ~    juju  deploy  nrpe ➜    ~    juju  add-­‐relation  nrpe  jenkins ➜    ~    juju  add-­‐relation  nrpe  jenkins-­‐slave ➜    ~    juju  add-­‐relation  nrpe:monitors  nagios:monitors Wednesday, October 30, 13
  • 17. juju GUI juju-gui $  juju  deploy  juju-­‐gui $  juju  expose  juju-­‐gui Wednesday, October 30, 13
  • 20. como esta ? $  juju  status $  juju  status  service* $  juju  status  -­‐e  local $  juju  status  -­‐-­‐format=json $  juju  ssh  wordpress/1 $  juju  debug-­‐log Wednesday, October 30, 13
  • 21. escalando $  juju  add-­‐unit  -­‐n  5  mysql $  juju  add-­‐machine $  juju  deploy  -­‐-­‐constraints=”mem=4G” Wednesday, October 30, 13
  • 22. destroy/remove $  juju  remove-­‐unit  mysql/6 $  juju  destroy-­‐environment  -­‐e  amazon $  juju  detroy-­‐relation  service  mysql Wednesday, October 30, 13