SlideShare une entreprise Scribd logo
1  sur  47
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 1Cisco Confidential© 2010 Cisco and/or its affiliates. All rights reserved. 1
Foreman&Puppet Integrated Solution
for OpenStack Auto Deployment
Yating Yang
Feb 10 2015
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
• Foreman&Puppet Solution for OpenStack deployment introduction (20min )
• Foreman introduction (30min )
• Puppet introduction (Optionnal:10min)
• Q&A (10min)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
http://www.chenshake.com/openstack-deployment-tool-summary/
• Fuel (Mirantis)
• Devstack
• Crowbar
• Cobbler
• RDO
• Packstack
• TripleO
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
Foreman & Puppet
Network
Controller
Compute
Compute
Compute
Compute
Network
Controller
Compute
Compute
Compute
Compute
Ironic
VM
VM
VM
VM
Bare
metal
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
Foreman Server
(include Puppet Master +PXE server)
Bare Metal #1
Ubuntu14.04 #1
with Puppet agent
Control Node
Bare Metal #2
Ubuntu14.04 #2
with Puppet agent
Computer Node
Bare Metal #3
Ubuntu14.04 #3
with Puppet agent
Network Node
Bare Metal #4
Ubuntu14.04 #4
with Puppet agent
Ironic Node
PXE
Puppet
PXE PXE PXE
PuppetPuppetPuppet
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
Foreman
GUI
Add Preseed
Templates
Add Partition
Template
Add Ubuntu
14.04 OS
Add a
Domain
Ubuntu
14.04 Bare Metal Add a Host
Add 2
Subnet
CIMC (change BIOS
boot from PXE, Reboot)
CIMC (change BIOS boot
from HardDisk, Reboot)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
Puppet
OpenStack
Module Install
common.yaml
configuration
site.pp
configuration
OpenStack
auto
Deployment
Start
Puppet
OpenStack
Module Insta
Computer
Network
Control
Wait 2 hours,
Installation is
done
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16
• The puppetlabs-openstack module is used to deploy a multi-
node, all-in-one, or swift-only installation of OpenStack.
• Install puppet module
puppet module install puppetlabs-openstack
or git clone https://github.com/puppetlabs/puppetlabs-openstack.git
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 18
Each node needs a minimum of two network interfaces, and up to four.
The network interfaces are divided into two groups.
• Public interfaces:
API network.
External network.
• Internal interfaces:
Management network.
Data network.
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 19
openstack::region: 'openstack’
######## Networks
openstack::network::api: '10.74.116.0/24'
openstack::network::external: '10.74.116.0/24'
openstack::network::management: '10.74.15.0/24'
openstack::network::data: '10.74.15.0/24’
openstack::network::external::ippool::start: 10.74.116.165
openstack::network::external::ippool::end: 10.74.116.168
openstack::network::external::gateway: 10.74.116.1
openstack::network::external::dns: 64.104.123.144
]
######## Private Neutron Network
openstack::network::neutron::private: '10.0.0.0/24'
######## Fixed IPs (controllers)
openstack::controller::address::api: '10.74.116.163'
openstack::controller::address::management: '10.74.15.85'
openstack::storage::address::api: '10.74.116.163'
openstack::storage::address::management: '10.74.15.85'
######## Database
openstack::mysql::root_password: 'spam-gak'
openstack::mysql::service_password: 'fuva-wax'
openstack::mysql::allowed_hosts: ['localhost', '127.0.0.1',
'10.74.15.%’
… …
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20
node 'control' {
include ::openstack::role::controller
}
node 'network' {
include ::openstack::role::network
}
node 'compute' {
include ::openstack::role::compute
}
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 21
Controller Node
nova-api
nova-cert
nova-conductor
nova-consoleauth
nova-novncproxy
nova-scheduler
keystone
neutron-server
glance-api
glance-registry
dashboard
MySQL Server
RabbitMQ Server
NTP
Network Node Compute Node Ironic Node
neutron-dhcp-agent
neutron-l3-agent
neutron-metadata-agent
neutron-ovs-cleanup
neutron-plugin-
openvswitch-agent
RabbitMQ Client
NTP
nova-compute
neutron-ovs-cleanup
neutron-plugin-
openvswitch-agent
RabbitMQ Client
NTP
Hypervisor + libvirt
MySQL Client
tftp-hpa
openipmi
NTP
ironic-api
ironic-conductor
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 22Cisco Confidential© 2010 Cisco and/or its affiliates. All rights reserved. 22
Foreman TOI
Yating Yang
Feb 10 2015
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 23
 Foreman is a complete lifecycle management tool for physical
and virtual servers.
 Foreman is an open source tool that can help with the
management of servers, by providing an easy way to interact with
Puppet (or Chef) to automate tasks and application deployment.
 Foreman provides a robust web user interface, API, and CLI
which can be used to provision, configure, and monitor your
servers.
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 25
• The Smart Proxy is a project which provides a restful API to various sub-systems
• DHCP - ISC DHCP and MS DHCP Servers
• DNS - Bind and MS DNS Servers
• TFTP - any UNIX based tftp server
• Puppet - Any Puppet server from 0.24.x
• Puppet CA - Manage certificate signing, cleaning and autosign on a Puppet CA server
• Realm - Manage host registration to a realm (e.g. FreeIPA)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 26
• A lot of options
• Interactive installation: -I
• Enables/disables stuff
• Creates a puppet tree skeleton
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 27
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 28
• Bare metal and virtual machine
• Install any distribution
• Configure almost everything
• Decentralized (control remote TFTP, DNS, DHCP)
• ERB Scripting
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 29
• Trigger Puppet runs
• Advanced use: parameters,…
• History of changes
• ENC ( External Node Classifiers ) is optional
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 30
• Visualize changes
• See the full logs
• View the facts
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 31
• Libvirt
• EC2
• OpenStack
• Google Compute Engine
• oVirt
• VMWare
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 32
• Depending on the provider
• Unattended installation
• Image-based install
• Power management
• Console (noVNC)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 33
• CentOS/RHEL
• Fedora
• Ubuntu/Debian
• Suse
• Solaris
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 34
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 35
• Puppet-ca proxy
• Takes care of signing certificates
• Trigger first puppet run
• Run first puppet run in loop (before reboot)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 36
• Very detailed
• History
• Host Configuration Status
• Overview of the last reports
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 37
• Default provisioning parameters
• Puppet classes
• Network configuration
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 38
• Command line to foreman
• Scripting
• Automation
• Without browser (e.g no http(s) access)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 39
• Multiple Puppet Masters
• Multiple Smart Proxies
• Foreman talks with the CA
• Multiple compute resources
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 40
• Foreman plugins are implemented as gems
• RPM Installations
• Debian Installations
• Gems Installations
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 41
• From small labs to larger environments
• Interactions with RESTful API
• Complete puppet management
• Bare Metal and virtual machines
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 42Cisco Confidential© 2010 Cisco and/or its affiliates. All rights reserved. 42
Puppet TOI
Yating Yang
Feb 10 2015
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 43
• Puppet is a configuration management system that allows you to define
the state of your IT infrastructure, then automatically enforces the
correct state.
• Fact colletction
• Catalog compilation
• Enforcement
• Report
• Report sharing
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 44
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 45
• stackforge/puppet-ceph
• stackforge/puppet-cinder
• stackforge/puppet-designate
• stackforge/puppet-glance
• stackforge/puppet-heat
• stackforge/puppet-horizon
• stackforge/puppet-ironic
• stackforge/puppet-keystone
• stackforge/puppet-manila
• stackforge/puppet-neutron
• stackforge/puppet-nova
• stackforge/puppet-openstack
• stackforge/puppet-sahara
• stackforge/puppet-swift
• stackforge/puppet-tempest
• stackforge/puppet-trove
• stackforge/puppet-tuskar
• stackforge/puppet-vswitch
• stackforge/puppet-openstacklib
• stackforge/puppet-openstack-specs
• stackforge/puppet-openstack_extras
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 46
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 47

Contenu connexe

Tendances

Managing your SaltStack Minions with Foreman
Managing your SaltStack Minions with ForemanManaging your SaltStack Minions with Foreman
Managing your SaltStack Minions with ForemanStephen Benjamin
 
Linux host orchestration with Foreman, Puppet and Gitlab
Linux host orchestration with Foreman, Puppet and GitlabLinux host orchestration with Foreman, Puppet and Gitlab
Linux host orchestration with Foreman, Puppet and GitlabBen Tullis
 
Full Stack Automation with Katello & The Foreman
Full Stack Automation with Katello & The ForemanFull Stack Automation with Katello & The Foreman
Full Stack Automation with Katello & The ForemanWeston Bassler
 
Foreman presentation
Foreman presentationForeman presentation
Foreman presentationGlen Ogilvie
 
Auto infra with_foreman_katello
Auto infra with_foreman_katelloAuto infra with_foreman_katello
Auto infra with_foreman_katelloSachin Ghai
 
Deploying Foreman in Enterprise Environments
Deploying Foreman in Enterprise EnvironmentsDeploying Foreman in Enterprise Environments
Deploying Foreman in Enterprise Environmentsinovex GmbH
 
CfgMgmtCamp 2015 - Managing the Content Lifecycle with Katello
CfgMgmtCamp 2015 - Managing the Content Lifecycle with KatelloCfgMgmtCamp 2015 - Managing the Content Lifecycle with Katello
CfgMgmtCamp 2015 - Managing the Content Lifecycle with KatelloStephen Benjamin
 
Foreman in Your Data Center :OSDC 2015
Foreman in Your Data Center :OSDC 2015Foreman in Your Data Center :OSDC 2015
Foreman in Your Data Center :OSDC 2015Stephen Benjamin
 
OpenNebula, the foreman and CentOS play nice, too
OpenNebula, the foreman and CentOS play nice, tooOpenNebula, the foreman and CentOS play nice, too
OpenNebula, the foreman and CentOS play nice, tooinovex GmbH
 
PXEless Discovery with Foreman
PXEless Discovery with ForemanPXEless Discovery with Foreman
PXEless Discovery with ForemanStephen Benjamin
 
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam RuzickaOSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam RuzickaNETWAYS
 
Cobbler - Fast and reliable multi-OS provisioning
Cobbler - Fast and reliable multi-OS provisioningCobbler - Fast and reliable multi-OS provisioning
Cobbler - Fast and reliable multi-OS provisioningRUDDER
 
PuppetCamp Sydney 2012 - Building a Multimaster Environment
PuppetCamp Sydney 2012 - Building a Multimaster EnvironmentPuppetCamp Sydney 2012 - Building a Multimaster Environment
PuppetCamp Sydney 2012 - Building a Multimaster EnvironmentGreg Cockburn
 
Extending Foreman the easy way with foreman_hooks
Extending Foreman the easy way with foreman_hooksExtending Foreman the easy way with foreman_hooks
Extending Foreman the easy way with foreman_hooksDominic Cleal
 
SaltConf14 - Matthew Williams, Flowroute - Salt Virt for Linux contatiners an...
SaltConf14 - Matthew Williams, Flowroute - Salt Virt for Linux contatiners an...SaltConf14 - Matthew Williams, Flowroute - Salt Virt for Linux contatiners an...
SaltConf14 - Matthew Williams, Flowroute - Salt Virt for Linux contatiners an...SaltStack
 
Making your first contribution to Foreman
Making your first contribution to ForemanMaking your first contribution to Foreman
Making your first contribution to ForemanDominic Cleal
 
Spot Trading - A case study in continuous delivery for mission critical finan...
Spot Trading - A case study in continuous delivery for mission critical finan...Spot Trading - A case study in continuous delivery for mission critical finan...
Spot Trading - A case study in continuous delivery for mission critical finan...SaltStack
 
High availability for puppet - 2016
High availability for puppet - 2016High availability for puppet - 2016
High availability for puppet - 2016Zack Smith
 
Ksplice - Keep your Database systems up to date with no downtime
Ksplice - Keep your Database systems up to date with no downtime Ksplice - Keep your Database systems up to date with no downtime
Ksplice - Keep your Database systems up to date with no downtime Luis Marques
 
OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27Kentaro Ebisawa
 

Tendances (20)

Managing your SaltStack Minions with Foreman
Managing your SaltStack Minions with ForemanManaging your SaltStack Minions with Foreman
Managing your SaltStack Minions with Foreman
 
Linux host orchestration with Foreman, Puppet and Gitlab
Linux host orchestration with Foreman, Puppet and GitlabLinux host orchestration with Foreman, Puppet and Gitlab
Linux host orchestration with Foreman, Puppet and Gitlab
 
Full Stack Automation with Katello & The Foreman
Full Stack Automation with Katello & The ForemanFull Stack Automation with Katello & The Foreman
Full Stack Automation with Katello & The Foreman
 
Foreman presentation
Foreman presentationForeman presentation
Foreman presentation
 
Auto infra with_foreman_katello
Auto infra with_foreman_katelloAuto infra with_foreman_katello
Auto infra with_foreman_katello
 
Deploying Foreman in Enterprise Environments
Deploying Foreman in Enterprise EnvironmentsDeploying Foreman in Enterprise Environments
Deploying Foreman in Enterprise Environments
 
CfgMgmtCamp 2015 - Managing the Content Lifecycle with Katello
CfgMgmtCamp 2015 - Managing the Content Lifecycle with KatelloCfgMgmtCamp 2015 - Managing the Content Lifecycle with Katello
CfgMgmtCamp 2015 - Managing the Content Lifecycle with Katello
 
Foreman in Your Data Center :OSDC 2015
Foreman in Your Data Center :OSDC 2015Foreman in Your Data Center :OSDC 2015
Foreman in Your Data Center :OSDC 2015
 
OpenNebula, the foreman and CentOS play nice, too
OpenNebula, the foreman and CentOS play nice, tooOpenNebula, the foreman and CentOS play nice, too
OpenNebula, the foreman and CentOS play nice, too
 
PXEless Discovery with Foreman
PXEless Discovery with ForemanPXEless Discovery with Foreman
PXEless Discovery with Foreman
 
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam RuzickaOSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
 
Cobbler - Fast and reliable multi-OS provisioning
Cobbler - Fast and reliable multi-OS provisioningCobbler - Fast and reliable multi-OS provisioning
Cobbler - Fast and reliable multi-OS provisioning
 
PuppetCamp Sydney 2012 - Building a Multimaster Environment
PuppetCamp Sydney 2012 - Building a Multimaster EnvironmentPuppetCamp Sydney 2012 - Building a Multimaster Environment
PuppetCamp Sydney 2012 - Building a Multimaster Environment
 
Extending Foreman the easy way with foreman_hooks
Extending Foreman the easy way with foreman_hooksExtending Foreman the easy way with foreman_hooks
Extending Foreman the easy way with foreman_hooks
 
SaltConf14 - Matthew Williams, Flowroute - Salt Virt for Linux contatiners an...
SaltConf14 - Matthew Williams, Flowroute - Salt Virt for Linux contatiners an...SaltConf14 - Matthew Williams, Flowroute - Salt Virt for Linux contatiners an...
SaltConf14 - Matthew Williams, Flowroute - Salt Virt for Linux contatiners an...
 
Making your first contribution to Foreman
Making your first contribution to ForemanMaking your first contribution to Foreman
Making your first contribution to Foreman
 
Spot Trading - A case study in continuous delivery for mission critical finan...
Spot Trading - A case study in continuous delivery for mission critical finan...Spot Trading - A case study in continuous delivery for mission critical finan...
Spot Trading - A case study in continuous delivery for mission critical finan...
 
High availability for puppet - 2016
High availability for puppet - 2016High availability for puppet - 2016
High availability for puppet - 2016
 
Ksplice - Keep your Database systems up to date with no downtime
Ksplice - Keep your Database systems up to date with no downtime Ksplice - Keep your Database systems up to date with no downtime
Ksplice - Keep your Database systems up to date with no downtime
 
OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27
 

Similaire à Foreman-and-Puppet-for-Openstack-Audo-Deployment

Considerations for Operating An OpenStack Cloud
Considerations for Operating An OpenStack CloudConsiderations for Operating An OpenStack Cloud
Considerations for Operating An OpenStack CloudMark Voelker
 
Considerations for Operating an OpenStack Cloud
Considerations for Operating an OpenStack CloudConsiderations for Operating an OpenStack Cloud
Considerations for Operating an OpenStack CloudAll Things Open
 
3 Years of Puppet at Cisco: The Secrets to Our Success - PuppetConf 2013
3 Years of Puppet at Cisco: The Secrets to Our Success - PuppetConf 20133 Years of Puppet at Cisco: The Secrets to Our Success - PuppetConf 2013
3 Years of Puppet at Cisco: The Secrets to Our Success - PuppetConf 2013Puppet
 
Поиск и устранение неисправностей в вычислительной системе Cisco UCS
Поиск и устранение неисправностей в вычислительной системе Cisco UCSПоиск и устранение неисправностей в вычислительной системе Cisco UCS
Поиск и устранение неисправностей в вычислительной системе Cisco UCSCisco Russia
 
Puppet for Production in WebEx - PuppetConf 2013
Puppet for Production in WebEx - PuppetConf 2013Puppet for Production in WebEx - PuppetConf 2013
Puppet for Production in WebEx - PuppetConf 2013Puppet
 
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStackAutomated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStackNTT Communications Technology Development
 
NSO: Network Service Orchestrator enabled by Tail-f Hands-on Lab
NSO: Network Service Orchestrator enabled by Tail-f Hands-on LabNSO: Network Service Orchestrator enabled by Tail-f Hands-on Lab
NSO: Network Service Orchestrator enabled by Tail-f Hands-on LabCisco Canada
 
DEVNET-1148 Leveraging Cisco OpenStack Private Cloud for Developers
DEVNET-1148	Leveraging Cisco OpenStack Private Cloud for DevelopersDEVNET-1148	Leveraging Cisco OpenStack Private Cloud for Developers
DEVNET-1148 Leveraging Cisco OpenStack Private Cloud for DevelopersCisco DevNet
 
2014/09/02 Cisco UCS HPC @ ANL
2014/09/02 Cisco UCS HPC @ ANL2014/09/02 Cisco UCS HPC @ ANL
2014/09/02 Cisco UCS HPC @ ANLdgoodell
 
BRKDCT-2445 Agile OpenStack Networking with Cisco Solutions-Cisco Live! US 20...
BRKDCT-2445 Agile OpenStack Networking with Cisco Solutions-Cisco Live! US 20...BRKDCT-2445 Agile OpenStack Networking with Cisco Solutions-Cisco Live! US 20...
BRKDCT-2445 Agile OpenStack Networking with Cisco Solutions-Cisco Live! US 20...Rohit Agarwalla
 
Understanding and Troubleshooting ASA NAT
Understanding and Troubleshooting ASA NATUnderstanding and Troubleshooting ASA NAT
Understanding and Troubleshooting ASA NATCisco Russia
 
PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...
PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...
PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...PROIDEA
 
CCNA2 Verson6 Chapter10
CCNA2 Verson6 Chapter10CCNA2 Verson6 Chapter10
CCNA2 Verson6 Chapter10Chaing Ravuth
 
Autoscaling OpenStack Natively with Heat, Ceilometer and LBaaS
Autoscaling OpenStack Natively with Heat, Ceilometer and LBaaSAutoscaling OpenStack Natively with Heat, Ceilometer and LBaaS
Autoscaling OpenStack Natively with Heat, Ceilometer and LBaaSShixiong Shang
 
Решения Cisco для Автоматизации Облачных Услуг - Cisco Intelligent Automation...
Решения Cisco для Автоматизации Облачных Услуг - Cisco Intelligent Automation...Решения Cisco для Автоматизации Облачных Услуг - Cisco Intelligent Automation...
Решения Cisco для Автоматизации Облачных Услуг - Cisco Intelligent Automation...Cisco Russia
 
OpenStack: Everything You Need To Know to Get Started (ATO2014)
OpenStack: Everything You Need To Know to Get Started (ATO2014)OpenStack: Everything You Need To Know to Get Started (ATO2014)
OpenStack: Everything You Need To Know to Get Started (ATO2014)Mark Voelker
 
PLNOG14: Service orchestration in provider network, Tail-f - Przemysław Borek
PLNOG14: Service orchestration in provider network, Tail-f - Przemysław BorekPLNOG14: Service orchestration in provider network, Tail-f - Przemysław Borek
PLNOG14: Service orchestration in provider network, Tail-f - Przemysław BorekPROIDEA
 

Similaire à Foreman-and-Puppet-for-Openstack-Audo-Deployment (20)

Considerations for Operating An OpenStack Cloud
Considerations for Operating An OpenStack CloudConsiderations for Operating An OpenStack Cloud
Considerations for Operating An OpenStack Cloud
 
Considerations for Operating an OpenStack Cloud
Considerations for Operating an OpenStack CloudConsiderations for Operating an OpenStack Cloud
Considerations for Operating an OpenStack Cloud
 
3 Years of Puppet at Cisco: The Secrets to Our Success - PuppetConf 2013
3 Years of Puppet at Cisco: The Secrets to Our Success - PuppetConf 20133 Years of Puppet at Cisco: The Secrets to Our Success - PuppetConf 2013
3 Years of Puppet at Cisco: The Secrets to Our Success - PuppetConf 2013
 
Поиск и устранение неисправностей в вычислительной системе Cisco UCS
Поиск и устранение неисправностей в вычислительной системе Cisco UCSПоиск и устранение неисправностей в вычислительной системе Cisco UCS
Поиск и устранение неисправностей в вычислительной системе Cisco UCS
 
Puppet for Production in WebEx - PuppetConf 2013
Puppet for Production in WebEx - PuppetConf 2013Puppet for Production in WebEx - PuppetConf 2013
Puppet for Production in WebEx - PuppetConf 2013
 
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStackAutomated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
 
NSO: Network Service Orchestrator enabled by Tail-f Hands-on Lab
NSO: Network Service Orchestrator enabled by Tail-f Hands-on LabNSO: Network Service Orchestrator enabled by Tail-f Hands-on Lab
NSO: Network Service Orchestrator enabled by Tail-f Hands-on Lab
 
DEVNET-1148 Leveraging Cisco OpenStack Private Cloud for Developers
DEVNET-1148	Leveraging Cisco OpenStack Private Cloud for DevelopersDEVNET-1148	Leveraging Cisco OpenStack Private Cloud for Developers
DEVNET-1148 Leveraging Cisco OpenStack Private Cloud for Developers
 
2014/09/02 Cisco UCS HPC @ ANL
2014/09/02 Cisco UCS HPC @ ANL2014/09/02 Cisco UCS HPC @ ANL
2014/09/02 Cisco UCS HPC @ ANL
 
BRKDCT-2445 Agile OpenStack Networking with Cisco Solutions-Cisco Live! US 20...
BRKDCT-2445 Agile OpenStack Networking with Cisco Solutions-Cisco Live! US 20...BRKDCT-2445 Agile OpenStack Networking with Cisco Solutions-Cisco Live! US 20...
BRKDCT-2445 Agile OpenStack Networking with Cisco Solutions-Cisco Live! US 20...
 
Understanding and Troubleshooting ASA NAT
Understanding and Troubleshooting ASA NATUnderstanding and Troubleshooting ASA NAT
Understanding and Troubleshooting ASA NAT
 
PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...
PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...
PLNOG16: Automatyzacja kreaowania usług operatorskich w separacji od rodzaju ...
 
CCNA2 Verson6 Chapter10
CCNA2 Verson6 Chapter10CCNA2 Verson6 Chapter10
CCNA2 Verson6 Chapter10
 
5 cisco open_stack
5 cisco open_stack5 cisco open_stack
5 cisco open_stack
 
Cuc pcd tac_toi
Cuc pcd tac_toiCuc pcd tac_toi
Cuc pcd tac_toi
 
Autoscaling OpenStack Natively with Heat, Ceilometer and LBaaS
Autoscaling OpenStack Natively with Heat, Ceilometer and LBaaSAutoscaling OpenStack Natively with Heat, Ceilometer and LBaaS
Autoscaling OpenStack Natively with Heat, Ceilometer and LBaaS
 
Neutron CI Run on Docker
Neutron CI Run on DockerNeutron CI Run on Docker
Neutron CI Run on Docker
 
Решения Cisco для Автоматизации Облачных Услуг - Cisco Intelligent Automation...
Решения Cisco для Автоматизации Облачных Услуг - Cisco Intelligent Automation...Решения Cisco для Автоматизации Облачных Услуг - Cisco Intelligent Automation...
Решения Cisco для Автоматизации Облачных Услуг - Cisco Intelligent Automation...
 
OpenStack: Everything You Need To Know to Get Started (ATO2014)
OpenStack: Everything You Need To Know to Get Started (ATO2014)OpenStack: Everything You Need To Know to Get Started (ATO2014)
OpenStack: Everything You Need To Know to Get Started (ATO2014)
 
PLNOG14: Service orchestration in provider network, Tail-f - Przemysław Borek
PLNOG14: Service orchestration in provider network, Tail-f - Przemysław BorekPLNOG14: Service orchestration in provider network, Tail-f - Przemysław Borek
PLNOG14: Service orchestration in provider network, Tail-f - Przemysław Borek
 

Foreman-and-Puppet-for-Openstack-Audo-Deployment

  • 1. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 1Cisco Confidential© 2010 Cisco and/or its affiliates. All rights reserved. 1 Foreman&Puppet Integrated Solution for OpenStack Auto Deployment Yating Yang Feb 10 2015
  • 2. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2 • Foreman&Puppet Solution for OpenStack deployment introduction (20min ) • Foreman introduction (30min ) • Puppet introduction (Optionnal:10min) • Q&A (10min)
  • 3. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3 http://www.chenshake.com/openstack-deployment-tool-summary/ • Fuel (Mirantis) • Devstack • Crowbar • Cobbler • RDO • Packstack • TripleO
  • 4. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4 Foreman & Puppet Network Controller Compute Compute Compute Compute Network Controller Compute Compute Compute Compute Ironic VM VM VM VM Bare metal
  • 5. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5 Foreman Server (include Puppet Master +PXE server) Bare Metal #1 Ubuntu14.04 #1 with Puppet agent Control Node Bare Metal #2 Ubuntu14.04 #2 with Puppet agent Computer Node Bare Metal #3 Ubuntu14.04 #3 with Puppet agent Network Node Bare Metal #4 Ubuntu14.04 #4 with Puppet agent Ironic Node PXE Puppet PXE PXE PXE PuppetPuppetPuppet
  • 6. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
  • 7. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7 Foreman GUI Add Preseed Templates Add Partition Template Add Ubuntu 14.04 OS Add a Domain Ubuntu 14.04 Bare Metal Add a Host Add 2 Subnet CIMC (change BIOS boot from PXE, Reboot) CIMC (change BIOS boot from HardDisk, Reboot)
  • 8. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
  • 9. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
  • 10. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
  • 11. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
  • 12. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
  • 13. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
  • 14. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
  • 15. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15 Puppet OpenStack Module Install common.yaml configuration site.pp configuration OpenStack auto Deployment Start Puppet OpenStack Module Insta Computer Network Control Wait 2 hours, Installation is done
  • 16. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16 • The puppetlabs-openstack module is used to deploy a multi- node, all-in-one, or swift-only installation of OpenStack. • Install puppet module puppet module install puppetlabs-openstack or git clone https://github.com/puppetlabs/puppetlabs-openstack.git
  • 17. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17
  • 18. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 18 Each node needs a minimum of two network interfaces, and up to four. The network interfaces are divided into two groups. • Public interfaces: API network. External network. • Internal interfaces: Management network. Data network.
  • 19. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 19 openstack::region: 'openstack’ ######## Networks openstack::network::api: '10.74.116.0/24' openstack::network::external: '10.74.116.0/24' openstack::network::management: '10.74.15.0/24' openstack::network::data: '10.74.15.0/24’ openstack::network::external::ippool::start: 10.74.116.165 openstack::network::external::ippool::end: 10.74.116.168 openstack::network::external::gateway: 10.74.116.1 openstack::network::external::dns: 64.104.123.144 ] ######## Private Neutron Network openstack::network::neutron::private: '10.0.0.0/24' ######## Fixed IPs (controllers) openstack::controller::address::api: '10.74.116.163' openstack::controller::address::management: '10.74.15.85' openstack::storage::address::api: '10.74.116.163' openstack::storage::address::management: '10.74.15.85' ######## Database openstack::mysql::root_password: 'spam-gak' openstack::mysql::service_password: 'fuva-wax' openstack::mysql::allowed_hosts: ['localhost', '127.0.0.1', '10.74.15.%’ … …
  • 20. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20 node 'control' { include ::openstack::role::controller } node 'network' { include ::openstack::role::network } node 'compute' { include ::openstack::role::compute }
  • 21. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 21 Controller Node nova-api nova-cert nova-conductor nova-consoleauth nova-novncproxy nova-scheduler keystone neutron-server glance-api glance-registry dashboard MySQL Server RabbitMQ Server NTP Network Node Compute Node Ironic Node neutron-dhcp-agent neutron-l3-agent neutron-metadata-agent neutron-ovs-cleanup neutron-plugin- openvswitch-agent RabbitMQ Client NTP nova-compute neutron-ovs-cleanup neutron-plugin- openvswitch-agent RabbitMQ Client NTP Hypervisor + libvirt MySQL Client tftp-hpa openipmi NTP ironic-api ironic-conductor
  • 22. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 22Cisco Confidential© 2010 Cisco and/or its affiliates. All rights reserved. 22 Foreman TOI Yating Yang Feb 10 2015
  • 23. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 23  Foreman is a complete lifecycle management tool for physical and virtual servers.  Foreman is an open source tool that can help with the management of servers, by providing an easy way to interact with Puppet (or Chef) to automate tasks and application deployment.  Foreman provides a robust web user interface, API, and CLI which can be used to provision, configure, and monitor your servers.
  • 24. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24
  • 25. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 25 • The Smart Proxy is a project which provides a restful API to various sub-systems • DHCP - ISC DHCP and MS DHCP Servers • DNS - Bind and MS DNS Servers • TFTP - any UNIX based tftp server • Puppet - Any Puppet server from 0.24.x • Puppet CA - Manage certificate signing, cleaning and autosign on a Puppet CA server • Realm - Manage host registration to a realm (e.g. FreeIPA)
  • 26. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 26 • A lot of options • Interactive installation: -I • Enables/disables stuff • Creates a puppet tree skeleton
  • 27. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 27
  • 28. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 28 • Bare metal and virtual machine • Install any distribution • Configure almost everything • Decentralized (control remote TFTP, DNS, DHCP) • ERB Scripting
  • 29. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 29 • Trigger Puppet runs • Advanced use: parameters,… • History of changes • ENC ( External Node Classifiers ) is optional
  • 30. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 30 • Visualize changes • See the full logs • View the facts
  • 31. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 31 • Libvirt • EC2 • OpenStack • Google Compute Engine • oVirt • VMWare
  • 32. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 32 • Depending on the provider • Unattended installation • Image-based install • Power management • Console (noVNC)
  • 33. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 33 • CentOS/RHEL • Fedora • Ubuntu/Debian • Suse • Solaris
  • 34. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 34
  • 35. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 35 • Puppet-ca proxy • Takes care of signing certificates • Trigger first puppet run • Run first puppet run in loop (before reboot)
  • 36. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 36 • Very detailed • History • Host Configuration Status • Overview of the last reports
  • 37. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 37 • Default provisioning parameters • Puppet classes • Network configuration
  • 38. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 38 • Command line to foreman • Scripting • Automation • Without browser (e.g no http(s) access)
  • 39. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 39 • Multiple Puppet Masters • Multiple Smart Proxies • Foreman talks with the CA • Multiple compute resources
  • 40. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 40 • Foreman plugins are implemented as gems • RPM Installations • Debian Installations • Gems Installations
  • 41. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 41 • From small labs to larger environments • Interactions with RESTful API • Complete puppet management • Bare Metal and virtual machines
  • 42. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 42Cisco Confidential© 2010 Cisco and/or its affiliates. All rights reserved. 42 Puppet TOI Yating Yang Feb 10 2015
  • 43. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 43 • Puppet is a configuration management system that allows you to define the state of your IT infrastructure, then automatically enforces the correct state. • Fact colletction • Catalog compilation • Enforcement • Report • Report sharing
  • 44. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 44
  • 45. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 45 • stackforge/puppet-ceph • stackforge/puppet-cinder • stackforge/puppet-designate • stackforge/puppet-glance • stackforge/puppet-heat • stackforge/puppet-horizon • stackforge/puppet-ironic • stackforge/puppet-keystone • stackforge/puppet-manila • stackforge/puppet-neutron • stackforge/puppet-nova • stackforge/puppet-openstack • stackforge/puppet-sahara • stackforge/puppet-swift • stackforge/puppet-tempest • stackforge/puppet-trove • stackforge/puppet-tuskar • stackforge/puppet-vswitch • stackforge/puppet-openstacklib • stackforge/puppet-openstack-specs • stackforge/puppet-openstack_extras
  • 46. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 46
  • 47. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 47

Notes de l'éditeur

  1. 关于 Mirantis Mirantis,一家很牛逼的openstack服务集成商,他是社区贡献排名前5名中唯一一个靠软件和服务吃饭的公司(其他分别是Red Hat, HP, IBM, Rackspace)。相对于其他几个社区发行版,Fuel的版本节奏很快,平均每两个月就能提供一个相对稳定的社区版。 Fuel 是什么? Fuel 是一个为openstack 端到端”一键部署“设计的工具,其功能含盖自动的PXE方式的操作系统安装,DHCP服务,Orchestration服务 和puppet 配置管理相关服务等,此外还有openstack 关键业务健康检查和log 实时查看等非常好用的服务。
  2. Initrd ramdisk或者""initrd""是指一个临时文件系统,它在启动阶段被Linux内核调用。initrd主要用于当“根”文件系统被挂载之前,进行准备工作 tftp服务器就会给客户端主机提供一个pxe的文件、这个文件就是pxelinux.0,他相当于我们的bootloader、而这个文件是由syslinux这个程序包提供的
  3. kickstart是Red Hat公司针对自动安装Red Hat、Fedora与CentOS这3种同一体系的操作系统而制定的问答规范。它一般会以.cfg作为文件后缀名,不仅可以自动应答一些简单问题,还可 以指定操作系统需要安装的各种软件包,更可以在操作系统完装完成后自动执行一些脚本,这些脚本可以让我们直接配置系统。 通常,kickstart配置文件通过命令行工具system-config-kickstart生成。当然,我们更喜欢在CentOS图形界面环境下生 成用于定制操作系统安装的配置文件。 preseed则是Debian/Ubuntu操作系统自动安装的问答规范,同样可以预定义Ubuntu如何安装,其配置更多通过手动处理。
  4. mysql/postgresql/sqlite Amazon Elastic Compute Cloud (Amazon EC2)
  5. ERB is a feature of Ruby that enables you to conveniently generate any kind of text, in any quantity, from templates. The templates themselves combine plain text with Ruby code for variable substitution and flow control, which makes them easy to write and maintain.
  6. An external node classifier is an executable that can be called by puppet master; it doesn’t have to be written in Ruby. Its only argument is the name of the node to be classified, and it returns a YAML document describing the node.
  7. Libvirt 库是一种实现 Linux 虚拟化功能的 Linux® API,它支持各种虚拟机监控程序,包括 Xen 和 KVM,以及 QEMU 和用于其他操作系统的一些虚拟产品。
  8. puppetca is the application for managing Puppet’s certification authority.