SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Downloaden Sie, um offline zu lesen
MAAS and Juju
Introduction
Leonardo Borda
Technical Account Manager
Presented at the:
http://www.devopsmtl.com
March 2014
1 2
3 4
A few things about Canonical
+ INTRODUCTION
MAAS Juju
Hands-on demo Questions!
Agenda
A few things
about Canonical
We are the company
behind Ubuntu.
EMPLOYEES
London
Boston
Shanghai
Taipei
600+ COUNTRIES
30+FOUNDED
2004
Beijing Tokyo
MAAS
Desktop, Tablet
& Mobile Ubuntu
Server & Cloud
Infrastructure
Two main areas
Ubuntu
The Cloud OS
OpenStack
The Cloud Infrastructure
What we offer
Juju
Service Orchestration
Landscape
Cloud Management
MAAS
Hardware provisioning with Metal-As-A-
Service
1
Physical servers on demand
easily scale up and scale down
2
Hardware discovery and inventory
for policy based management
3
Orchestration of workloads via Juju
on bare metal hardware.
MAAS : Metal As A Service
MAAS
Brings the language of the cloud to physical servers.
Do I really need MAAS ??
Texas Advanced Computing Center
Texas Advanced Computing Center
MAAS : Metal As A Service
MAAS : Metal As A Service
I like the old way. Okay?!
- setup pxeboot, tftp
- setup dhcpd, bind
- setup preseed files, .ks, scripts,
etc...
Drawbacks:
- No fancy GUI
- No API
- No 3-step provisioning process
- No Hardware inventory
MAAS : Metal As A Service
MAAS Architecture
CLUSTER
CONTROLLER
TFTP
(PXE)
DHCP
CLUSTER
NODES
CLUSTER
CONTROLLER
TFTP
(PXE)
DHCP
CLUSTER
NODES
REGION
CONTROLLER
Highly available
WEB UI API
Cross data centers
provisioning and visibility
Controllers deployment
in HA mode
Supports cluster grouping
constructs to provide visibility
into large pools of hardware
API and UI interfaces
Landscape Integration to deliver
role-based access controls, higher
level view
1 2 3
Rapid provisioning at cloud scale
3-step provisioning process
Install MAAS
on first server
Discover
Nodes
Power on
Nodes
Automatically discover nodes
Enlist nodes via PXE boot
or manually enter MAC addresses
Hypervisor or OS
provisioned automatically
1
2
3
Hardware provisioning workflow
Enlistment
Commissionin
g
Provisioning
DHCP boot in an ephemeral environment
Register with cluster controller
Adds temporary IPMI MAAS credentials to BMC
Boot in a ephemeral environment
Hardware inventoried
Permanent IPMI MAAS credentials set in BMC
Other user-commissioning actions
(firmware configuration, smoke tests, etc.)
Happens when a node is requested
Installs requested Ubuntu version
Installing MAAS
Two options:
- from the Ubuntu Server boot media
- from the archive ( described below )
$ ssh-keygen -t rsa
$ sudo add-apt-repository cloud-archive:tools
$ sudo apt-get update; sudo apt-get upgrade
$ sudo apt-get install maas maas-dhcp maas-dns
Post-install tasks
$ sudo maas createadmin --username=root --email=MYEMAIL@EXAMPLE.COM
Get the MAAS Api Key <key> through the GUI or through this hack script
$ maas login <profile-name> http://<hostname_or_ip>/MAAS/api/1.0 <key>
Add user’s ssh key
$ pub=$(cat /home/lborda/.ssh/id_rsa.pub)
$ maas-cli maas sshkeys new "key=${pub}"
$ maas-cli maas sshkeys read <id>
...
Installing MAAS continued...
Configuring DHCP and DNS.
$ uuid=$(maas <profile-name> node-groups list | grep uuid | cut -d" -f4)
$ maas <profile-name> node-group-interface update $uuid eth0 
ip_range_high=192.168.123.200 
ip_range_low=192.168.123.100 
management=2 
broadcast_ip=192.168.123.255 
router_ip=192.168.123.1
How to help or get helped
The two channels you can use to get help debugging a MAAS issue are:
❏ The Ask Ubuntu website.
❏ The Freenode #maas IRC channel.
Report bugs:
❏ https://bugs.launchpad.net/maas
Check out MAAS it’s open source:
❏ https://launchpad.net/maas
Automating workloads
with Juju
Applications.
Anywhere.
Instantly.
Application deployment at radical velocity
What can you do with Juju ? On which platforms ?
Deploy
Scale-Out Integrate
Clouds
Bare Metal
Linux
Containers
What’s Juju anyways?
Deb Packages (host level) Your infrastructure (services)
$ apt-get install -y cowsay $ juju deploy <my_custom_app>
juju provides you with sharable, reusable, and repeatable
expressions of devops best practices
The best solution to orchestrate your services
Why use Juju?
Ease of provisioning
Pluggable provisioning backend, from
local machines to large clouds
Event-based
React to changes in environment,
self configuring
Scalable
Templates designed to scale
by adding more units
Language independence
Hooks can be written in any language
Bundle charms and instantly deploy these solutions
Charms package services
Service definition Instant deployment
Encapsulate application
configurations
Define service
scalability hooks
Define service
deployment
1
2
3
Deploy services
$ juju deploy wordpress
$ juju deploy mysql
Create relationships
$ juju add-relation wordpress mysql
Expose app to the outside world
$ juju expose wordpress
Scale out the application
$ juju add-unit -n 5 wordpress
Scale down the application
$ juju remove-unit -n 2 wordpress
Create charms and deploy your services
Anatomy of a Charm
Charm Tools Instant deployment
my-charm
├── config.yaml
├── hooks
│ ├── config-changed
│ ├── install
│ ├── relation-name-relation-broken
│ ├── relation-name-relation-changed
│ ├── relation-name-relation-
departed
│ ├── relation-name-relation-joined
│ ├── start
│ ├── stop
│ └── upgrade-charm
├── icon.svg
├── metadata.yaml
├── README.ex
└── revision
$ sudo add-apt-repository ppa:juju/stable
$ sudo apt-get update
$ sudo apt-get install charm-tools
$ juju charm create my-charm
Hundreds of charms are available today
A growing Charm ecosystem
Charms are rated and reviewed
for quality assurance
Drag and drop Charms
to create services
Support for private and
mixed mode Charm store
Publicly available Charm Store
...
Juju GUI Store
Configure and manage your services
Juju Architecture
Juju Client
(HTML5, UI, CLI)
Juju State Server (in HA mode)
Deployment Environment
Provisioning
Server
API Server
Provisioning
Server
API Server
Mongo Mongo
Compute Instance Compute
LXCWorkloadJuju Agent LXC
KVM
Juju Agent
Workload
Installing Juju
1. Install Juju
$ ssh-keygen -t rsa (if you don’t have one)
$ sudo add-apt-repository ppa:juju/stable
$ sudo apt-get update && sudo apt-get install juju-core
2. Generate base ~/.juju/environments.yaml configuration file
$ juju generate-config
3. Configure to use a particular cloud provider.
Modify ~/.juju/environments.yaml to suite one or more of the following cloud providers:
● Configuring for Amazon AWS
● Configuring for Windows Azure
● Configuring for HP Cloud
● Configuring for OpenStack
● Configuring for MAAS
● Configuring for LXC local provider (Linux)
3. Final step: bootstrap the environment
$ juju bootstrap -v
$ juju status
4. If you want to destroy the environment
$ juju destroy-environment
How to help or get helped
The three channels you can use to get help debugging a MAAS issue are:
❏ The Ask Ubuntu website.
❏ Join the mailing list.
❏ The Freenode #juju IRC channel.
Report bugs:
❏ Report Bugs
Check out Juju it’s open source:
❏ https://launchpad.net/juju-core
DEMO
- Deploy wordpress using MAAS + Juju
- Scale up
- Scale down
Other cool stuff
- Running juju locally on lxc containers
3
Questions ?
4
Leonardo Borda
leonardoborda@gmail.com / leonardo.borda@canonical.com
#IRC-freenode: lborda
blog: http://leonardoborda.com
Thank you!!
DevOpsMtl, Metal edition – MaaS and Juju

Weitere ähnliche Inhalte

Was ist angesagt?

Veeam back up and replication presentation
Veeam back up and replication presentation Veeam back up and replication presentation
Veeam back up and replication presentation BlueChipICT
 
Cloud stack vs openstack vs eucalyptus
Cloud stack vs openstack vs eucalyptusCloud stack vs openstack vs eucalyptus
Cloud stack vs openstack vs eucalyptusAshok Kumar
 
Server virtualization by VMWare
Server virtualization by VMWareServer virtualization by VMWare
Server virtualization by VMWaresgurnam73
 
Building Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
Building Multi-Site and Multi-OpenStack Cloud with OpenStack CascadingBuilding Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
Building Multi-Site and Multi-OpenStack Cloud with OpenStack CascadingJoe Huang
 
VMware Tanzu Introduction
VMware Tanzu IntroductionVMware Tanzu Introduction
VMware Tanzu IntroductionVMware Tanzu
 
Veeam Solutions for SMB_2022.pptx
Veeam Solutions for SMB_2022.pptxVeeam Solutions for SMB_2022.pptx
Veeam Solutions for SMB_2022.pptxPrince Joseph
 
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013The World Bank
 
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-RegionJi-Woong Choi
 
vSAN architecture components
vSAN architecture componentsvSAN architecture components
vSAN architecture componentsDavid Pasek
 
An Introduction to VMware NSX
An Introduction to VMware NSXAn Introduction to VMware NSX
An Introduction to VMware NSXScott Lowe
 
OpenStack Introduction
OpenStack IntroductionOpenStack Introduction
OpenStack Introductionopenstackindia
 
Esxi troubleshooting
Esxi troubleshootingEsxi troubleshooting
Esxi troubleshootingOvi Chis
 
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)Roman Kharkovski
 
VMware vSphere technical presentation
VMware vSphere technical presentationVMware vSphere technical presentation
VMware vSphere technical presentationaleyeldean
 
VMware Cloud Foundation - PnP presentation 8_6_18 EN.pptx
VMware Cloud Foundation - PnP presentation 8_6_18 EN.pptxVMware Cloud Foundation - PnP presentation 8_6_18 EN.pptx
VMware Cloud Foundation - PnP presentation 8_6_18 EN.pptxBradLai3
 
VMware vSphere Vs. Microsoft Hyper-V: A Technical Analysis
VMware vSphere Vs. Microsoft Hyper-V: A Technical AnalysisVMware vSphere Vs. Microsoft Hyper-V: A Technical Analysis
VMware vSphere Vs. Microsoft Hyper-V: A Technical AnalysisCorporate Technologies
 
Meraki Cloud Networking Workshop
Meraki Cloud Networking WorkshopMeraki Cloud Networking Workshop
Meraki Cloud Networking WorkshopCisco Canada
 
MySQL operator for_kubernetes
MySQL operator for_kubernetesMySQL operator for_kubernetes
MySQL operator for_kubernetesrockplace
 

Was ist angesagt? (20)

Veeam back up and replication presentation
Veeam back up and replication presentation Veeam back up and replication presentation
Veeam back up and replication presentation
 
Cloud stack vs openstack vs eucalyptus
Cloud stack vs openstack vs eucalyptusCloud stack vs openstack vs eucalyptus
Cloud stack vs openstack vs eucalyptus
 
Server virtualization by VMWare
Server virtualization by VMWareServer virtualization by VMWare
Server virtualization by VMWare
 
PIW ISE best practices
PIW ISE best practicesPIW ISE best practices
PIW ISE best practices
 
Building Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
Building Multi-Site and Multi-OpenStack Cloud with OpenStack CascadingBuilding Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
Building Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
 
VMware Tanzu Introduction
VMware Tanzu IntroductionVMware Tanzu Introduction
VMware Tanzu Introduction
 
Azure migration
Azure migrationAzure migration
Azure migration
 
Veeam Solutions for SMB_2022.pptx
Veeam Solutions for SMB_2022.pptxVeeam Solutions for SMB_2022.pptx
Veeam Solutions for SMB_2022.pptx
 
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
 
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region
 
vSAN architecture components
vSAN architecture componentsvSAN architecture components
vSAN architecture components
 
An Introduction to VMware NSX
An Introduction to VMware NSXAn Introduction to VMware NSX
An Introduction to VMware NSX
 
OpenStack Introduction
OpenStack IntroductionOpenStack Introduction
OpenStack Introduction
 
Esxi troubleshooting
Esxi troubleshootingEsxi troubleshooting
Esxi troubleshooting
 
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
 
VMware vSphere technical presentation
VMware vSphere technical presentationVMware vSphere technical presentation
VMware vSphere technical presentation
 
VMware Cloud Foundation - PnP presentation 8_6_18 EN.pptx
VMware Cloud Foundation - PnP presentation 8_6_18 EN.pptxVMware Cloud Foundation - PnP presentation 8_6_18 EN.pptx
VMware Cloud Foundation - PnP presentation 8_6_18 EN.pptx
 
VMware vSphere Vs. Microsoft Hyper-V: A Technical Analysis
VMware vSphere Vs. Microsoft Hyper-V: A Technical AnalysisVMware vSphere Vs. Microsoft Hyper-V: A Technical Analysis
VMware vSphere Vs. Microsoft Hyper-V: A Technical Analysis
 
Meraki Cloud Networking Workshop
Meraki Cloud Networking WorkshopMeraki Cloud Networking Workshop
Meraki Cloud Networking Workshop
 
MySQL operator for_kubernetes
MySQL operator for_kubernetesMySQL operator for_kubernetes
MySQL operator for_kubernetes
 

Ähnlich wie DevOpsMtl, Metal edition – MaaS and Juju

Itb session v_memcached
Itb session v_memcachedItb session v_memcached
Itb session v_memcachedSkills Matter
 
How to manage Microsoft Azure with open source
How to manage Microsoft Azure with open sourceHow to manage Microsoft Azure with open source
How to manage Microsoft Azure with open sourceTaehee Jang
 
Python Deployment with Fabric
Python Deployment with FabricPython Deployment with Fabric
Python Deployment with Fabricandymccurdy
 
Deployment with Fabric
Deployment with FabricDeployment with Fabric
Deployment with Fabricandymccurdy
 
NDC 2011 - Let me introduce my Moncai
NDC 2011 - Let me introduce my MoncaiNDC 2011 - Let me introduce my Moncai
NDC 2011 - Let me introduce my Moncaimoncai
 
Word press, the automated way
Word press, the automated wayWord press, the automated way
Word press, the automated wayMichaël Perrin
 
Virtualization and Cloud Computing with Elastic Server On Demand
Virtualization and Cloud Computing with Elastic Server On DemandVirtualization and Cloud Computing with Elastic Server On Demand
Virtualization and Cloud Computing with Elastic Server On DemandYan Pritzker
 
Writing & Sharing Great Modules - Puppet Camp Boston
Writing & Sharing Great Modules - Puppet Camp BostonWriting & Sharing Great Modules - Puppet Camp Boston
Writing & Sharing Great Modules - Puppet Camp BostonPuppet
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...Amazon Web Services
 
Richard Cole of Amazon Gives Lightning Tallk at BigDataCamp
Richard Cole of Amazon Gives Lightning Tallk at BigDataCampRichard Cole of Amazon Gives Lightning Tallk at BigDataCamp
Richard Cole of Amazon Gives Lightning Tallk at BigDataCampBigDataCamp
 
Drupal Efficiency using open source technologies from Sun
Drupal Efficiency using open source technologies from SunDrupal Efficiency using open source technologies from Sun
Drupal Efficiency using open source technologies from Sunsmattoon
 
Salt Cloud vmware-orchestration
Salt Cloud vmware-orchestrationSalt Cloud vmware-orchestration
Salt Cloud vmware-orchestrationMo Rawi
 
How to Contribute Code to MySQL?
How to Contribute Code to MySQL?How to Contribute Code to MySQL?
How to Contribute Code to MySQL?Thava Alagu
 
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltStack
 
Linux Desktop Automation
Linux Desktop AutomationLinux Desktop Automation
Linux Desktop AutomationRui Lapa
 
[Hands-on 필수 준비 사항] 쇼핑몰 예제를 통한 Microservice 개발/배포 실습 - 황주필 부장 / 강인호 부장, 한국오라클
[Hands-on 필수 준비 사항] 쇼핑몰 예제를 통한 Microservice 개발/배포 실습 - 황주필 부장 / 강인호 부장, 한국오라클[Hands-on 필수 준비 사항] 쇼핑몰 예제를 통한 Microservice 개발/배포 실습 - 황주필 부장 / 강인호 부장, 한국오라클
[Hands-on 필수 준비 사항] 쇼핑몰 예제를 통한 Microservice 개발/배포 실습 - 황주필 부장 / 강인호 부장, 한국오라클Oracle Korea
 

Ähnlich wie DevOpsMtl, Metal edition – MaaS and Juju (20)

Informology - Introduction to juju
Informology - Introduction to jujuInformology - Introduction to juju
Informology - Introduction to juju
 
Itb session v_memcached
Itb session v_memcachedItb session v_memcached
Itb session v_memcached
 
How to manage Azure with open source
How to manage Azure with open sourceHow to manage Azure with open source
How to manage Azure with open source
 
How to manage Microsoft Azure with open source
How to manage Microsoft Azure with open sourceHow to manage Microsoft Azure with open source
How to manage Microsoft Azure with open source
 
Deploying SharePoint @ Cloud
Deploying SharePoint @ CloudDeploying SharePoint @ Cloud
Deploying SharePoint @ Cloud
 
Python Deployment with Fabric
Python Deployment with FabricPython Deployment with Fabric
Python Deployment with Fabric
 
Deployment with Fabric
Deployment with FabricDeployment with Fabric
Deployment with Fabric
 
NDC 2011 - Let me introduce my Moncai
NDC 2011 - Let me introduce my MoncaiNDC 2011 - Let me introduce my Moncai
NDC 2011 - Let me introduce my Moncai
 
Word press, the automated way
Word press, the automated wayWord press, the automated way
Word press, the automated way
 
infra-as-code
infra-as-codeinfra-as-code
infra-as-code
 
Virtualization and Cloud Computing with Elastic Server On Demand
Virtualization and Cloud Computing with Elastic Server On DemandVirtualization and Cloud Computing with Elastic Server On Demand
Virtualization and Cloud Computing with Elastic Server On Demand
 
Writing & Sharing Great Modules - Puppet Camp Boston
Writing & Sharing Great Modules - Puppet Camp BostonWriting & Sharing Great Modules - Puppet Camp Boston
Writing & Sharing Great Modules - Puppet Camp Boston
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
 
Richard Cole of Amazon Gives Lightning Tallk at BigDataCamp
Richard Cole of Amazon Gives Lightning Tallk at BigDataCampRichard Cole of Amazon Gives Lightning Tallk at BigDataCamp
Richard Cole of Amazon Gives Lightning Tallk at BigDataCamp
 
Drupal Efficiency using open source technologies from Sun
Drupal Efficiency using open source technologies from SunDrupal Efficiency using open source technologies from Sun
Drupal Efficiency using open source technologies from Sun
 
Salt Cloud vmware-orchestration
Salt Cloud vmware-orchestrationSalt Cloud vmware-orchestration
Salt Cloud vmware-orchestration
 
How to Contribute Code to MySQL?
How to Contribute Code to MySQL?How to Contribute Code to MySQL?
How to Contribute Code to MySQL?
 
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
 
Linux Desktop Automation
Linux Desktop AutomationLinux Desktop Automation
Linux Desktop Automation
 
[Hands-on 필수 준비 사항] 쇼핑몰 예제를 통한 Microservice 개발/배포 실습 - 황주필 부장 / 강인호 부장, 한국오라클
[Hands-on 필수 준비 사항] 쇼핑몰 예제를 통한 Microservice 개발/배포 실습 - 황주필 부장 / 강인호 부장, 한국오라클[Hands-on 필수 준비 사항] 쇼핑몰 예제를 통한 Microservice 개발/배포 실습 - 황주필 부장 / 강인호 부장, 한국오라클
[Hands-on 필수 준비 사항] 쇼핑몰 예제를 통한 Microservice 개발/배포 실습 - 황주필 부장 / 강인호 부장, 한국오라클
 

Kürzlich hochgeladen

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
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
 
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
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
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
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
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
 
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
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
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
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 

Kürzlich hochgeladen (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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
 
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
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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?
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
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
 
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
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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...
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

DevOpsMtl, Metal edition – MaaS and Juju

  • 1. MAAS and Juju Introduction Leonardo Borda Technical Account Manager Presented at the: http://www.devopsmtl.com March 2014
  • 2. 1 2 3 4 A few things about Canonical + INTRODUCTION MAAS Juju Hands-on demo Questions! Agenda
  • 3. A few things about Canonical
  • 4. We are the company behind Ubuntu.
  • 6. MAAS Desktop, Tablet & Mobile Ubuntu Server & Cloud Infrastructure Two main areas
  • 7. Ubuntu The Cloud OS OpenStack The Cloud Infrastructure What we offer Juju Service Orchestration Landscape Cloud Management
  • 8. MAAS Hardware provisioning with Metal-As-A- Service
  • 9. 1 Physical servers on demand easily scale up and scale down 2 Hardware discovery and inventory for policy based management 3 Orchestration of workloads via Juju on bare metal hardware. MAAS : Metal As A Service MAAS Brings the language of the cloud to physical servers.
  • 10. Do I really need MAAS ??
  • 13. MAAS : Metal As A Service
  • 14. MAAS : Metal As A Service I like the old way. Okay?! - setup pxeboot, tftp - setup dhcpd, bind - setup preseed files, .ks, scripts, etc... Drawbacks: - No fancy GUI - No API - No 3-step provisioning process - No Hardware inventory
  • 15. MAAS : Metal As A Service
  • 16. MAAS Architecture CLUSTER CONTROLLER TFTP (PXE) DHCP CLUSTER NODES CLUSTER CONTROLLER TFTP (PXE) DHCP CLUSTER NODES REGION CONTROLLER Highly available WEB UI API Cross data centers provisioning and visibility Controllers deployment in HA mode Supports cluster grouping constructs to provide visibility into large pools of hardware API and UI interfaces Landscape Integration to deliver role-based access controls, higher level view
  • 17. 1 2 3 Rapid provisioning at cloud scale 3-step provisioning process Install MAAS on first server Discover Nodes Power on Nodes Automatically discover nodes Enlist nodes via PXE boot or manually enter MAC addresses Hypervisor or OS provisioned automatically
  • 18. 1 2 3 Hardware provisioning workflow Enlistment Commissionin g Provisioning DHCP boot in an ephemeral environment Register with cluster controller Adds temporary IPMI MAAS credentials to BMC Boot in a ephemeral environment Hardware inventoried Permanent IPMI MAAS credentials set in BMC Other user-commissioning actions (firmware configuration, smoke tests, etc.) Happens when a node is requested Installs requested Ubuntu version
  • 19. Installing MAAS Two options: - from the Ubuntu Server boot media - from the archive ( described below ) $ ssh-keygen -t rsa $ sudo add-apt-repository cloud-archive:tools $ sudo apt-get update; sudo apt-get upgrade $ sudo apt-get install maas maas-dhcp maas-dns Post-install tasks $ sudo maas createadmin --username=root --email=MYEMAIL@EXAMPLE.COM Get the MAAS Api Key <key> through the GUI or through this hack script $ maas login <profile-name> http://<hostname_or_ip>/MAAS/api/1.0 <key> Add user’s ssh key $ pub=$(cat /home/lborda/.ssh/id_rsa.pub) $ maas-cli maas sshkeys new "key=${pub}" $ maas-cli maas sshkeys read <id> ...
  • 20. Installing MAAS continued... Configuring DHCP and DNS. $ uuid=$(maas <profile-name> node-groups list | grep uuid | cut -d" -f4) $ maas <profile-name> node-group-interface update $uuid eth0 ip_range_high=192.168.123.200 ip_range_low=192.168.123.100 management=2 broadcast_ip=192.168.123.255 router_ip=192.168.123.1
  • 21. How to help or get helped The two channels you can use to get help debugging a MAAS issue are: ❏ The Ask Ubuntu website. ❏ The Freenode #maas IRC channel. Report bugs: ❏ https://bugs.launchpad.net/maas Check out MAAS it’s open source: ❏ https://launchpad.net/maas
  • 23. Application deployment at radical velocity What can you do with Juju ? On which platforms ? Deploy Scale-Out Integrate Clouds Bare Metal Linux Containers
  • 24. What’s Juju anyways? Deb Packages (host level) Your infrastructure (services) $ apt-get install -y cowsay $ juju deploy <my_custom_app> juju provides you with sharable, reusable, and repeatable expressions of devops best practices
  • 25. The best solution to orchestrate your services Why use Juju? Ease of provisioning Pluggable provisioning backend, from local machines to large clouds Event-based React to changes in environment, self configuring Scalable Templates designed to scale by adding more units Language independence Hooks can be written in any language
  • 26. Bundle charms and instantly deploy these solutions Charms package services Service definition Instant deployment Encapsulate application configurations Define service scalability hooks Define service deployment 1 2 3 Deploy services $ juju deploy wordpress $ juju deploy mysql Create relationships $ juju add-relation wordpress mysql Expose app to the outside world $ juju expose wordpress Scale out the application $ juju add-unit -n 5 wordpress Scale down the application $ juju remove-unit -n 2 wordpress
  • 27. Create charms and deploy your services Anatomy of a Charm Charm Tools Instant deployment my-charm ├── config.yaml ├── hooks │ ├── config-changed │ ├── install │ ├── relation-name-relation-broken │ ├── relation-name-relation-changed │ ├── relation-name-relation- departed │ ├── relation-name-relation-joined │ ├── start │ ├── stop │ └── upgrade-charm ├── icon.svg ├── metadata.yaml ├── README.ex └── revision $ sudo add-apt-repository ppa:juju/stable $ sudo apt-get update $ sudo apt-get install charm-tools $ juju charm create my-charm
  • 28. Hundreds of charms are available today A growing Charm ecosystem Charms are rated and reviewed for quality assurance Drag and drop Charms to create services Support for private and mixed mode Charm store Publicly available Charm Store ...
  • 29. Juju GUI Store Configure and manage your services
  • 30. Juju Architecture Juju Client (HTML5, UI, CLI) Juju State Server (in HA mode) Deployment Environment Provisioning Server API Server Provisioning Server API Server Mongo Mongo Compute Instance Compute LXCWorkloadJuju Agent LXC KVM Juju Agent Workload
  • 31. Installing Juju 1. Install Juju $ ssh-keygen -t rsa (if you don’t have one) $ sudo add-apt-repository ppa:juju/stable $ sudo apt-get update && sudo apt-get install juju-core 2. Generate base ~/.juju/environments.yaml configuration file $ juju generate-config 3. Configure to use a particular cloud provider. Modify ~/.juju/environments.yaml to suite one or more of the following cloud providers: ● Configuring for Amazon AWS ● Configuring for Windows Azure ● Configuring for HP Cloud ● Configuring for OpenStack ● Configuring for MAAS ● Configuring for LXC local provider (Linux) 3. Final step: bootstrap the environment $ juju bootstrap -v $ juju status 4. If you want to destroy the environment $ juju destroy-environment
  • 32. How to help or get helped The three channels you can use to get help debugging a MAAS issue are: ❏ The Ask Ubuntu website. ❏ Join the mailing list. ❏ The Freenode #juju IRC channel. Report bugs: ❏ Report Bugs Check out Juju it’s open source: ❏ https://launchpad.net/juju-core
  • 33. DEMO - Deploy wordpress using MAAS + Juju - Scale up - Scale down Other cool stuff - Running juju locally on lxc containers 3
  • 35. Leonardo Borda leonardoborda@gmail.com / leonardo.borda@canonical.com #IRC-freenode: lborda blog: http://leonardoborda.com Thank you!!