SlideShare une entreprise Scribd logo
1  sur  23
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

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
 

Tendances (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
 

En vedette

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
 

En vedette (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
 

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de 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
 

Dernier

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 

Dernier (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

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