SlideShare a Scribd company logo
1 of 15
Download to read offline
Yazz D. Atlas
Advanced
Technology
Group
Principle Engineer,
Hewlett Packard
January 29, 2014
INSTALLING OPENSTACK
USING SALTSTACK
© Copyright 2014 Hewlett-Packard Development Company, L.P.
¡  I’ve been poking at Linux servers back in late 90’s
¡  Actively trying to replace myself with small scripts.
§  Bash
§  Cfengine
§  Puppet
§  Capistrano
§  Chef
§  Salt
WHO IS THIS GUY?
© Copyright 2014 Hewlett-Packard Development Company, L.P.
¡  You might have tried DevStack to try OpenStack.
¡  You have setup a Salt Master before.
¡  You want to see how I solved some of my headaches
using Salt.
¡  You are want something answered.
¡  The other rooms were full and this one has an open
power outlet.
WHY ARE YOU HERE?
© Copyright 2014 Hewlett-Packard Development Company, L.P.
¡  /etc/keystone
¡  /etc/nova
¡  /etc/glance
¡  /etc/swift
¡  /etc/????
THINGS CHANGE.
© Copyright 2014 Hewlett-Packard Development Company, L.P.
¡  Look beyond your current infrastructure.
¡  Think about how others have deployed OpenStack.
¡  Make the decision early to keep secrets out of your repos.
NOW WHAT?
© Copyright 2014 Hewlett-Packard Development Company, L.P.
SALT-MASTER FILE_ROOTS
file_roots:
base:
- /srv/salt/state/formulae
- /srv/salt/state/base
dbaas_ae1_az1:
- /srv/salt/state/dbaas_ae1_az1
dbaas_ae1_az2:
- /srv/salt/state/dbaas_ae1_az2
dbaas_ae1_az3:
- /srv/salt/state/dbaas_ae1_az3
© Copyright 2014 Hewlett-Packard Development Company, L.P.
SALT-MASTER PILLAR_ROOTS
pillar_roots:
base:
- /srv/salt/pillar/base
dbaas_ae1_az1:
- /srv/salt/pillar/dbaas_ae1_az1
dbaas_ae1_az2:
- /srv/salt/pillar/dbaas_ae1_az2
dbaas_ae1_az3:
- /srv/salt/pillar/dbaas_ae1_az3
© Copyright 2014 Hewlett-Packard Development Company, L.P.
PILLAR TOP.SLS
base:
'*':
- users
- groups
- headers
- openstack
- secrets
dbaas_ae1_az1:
'ps-ae1az1-db*':
- endpoints-ae1az1-v1
- secrets-ae1az1-v1
dbaas_ae1_az2:
'ps-ae1az2-db*':
- endpoints-ae1az2-v1
- secrets-ae1az2-v1
The top.sls is actually a symbolic link to the
file top-ae1.sls
openstack.sls is a symbolic link to
openstack-ae1.sls
These are links too but
slightly different
© Copyright 2014 Hewlett-Packard Development Company, L.P.
/srv/salt/pillar/dbaas_ae1_az1/endpoints-ae1az1-v1.sls ->
../base/endpoints-ae1az1-v1.sls
/srv/salt/pillar/dbaas_ae1_az1/secrets-ae1az1-v1.sls ->
../base/secrets-ae1az1-v1.sls
/srv/salt/pillar/dbaas_ae1_az2/endpoints-ae1az2-v1.sls ->
../base/endpoints-ae1az2-v1.sls
/srv/salt/pillar/dbaas_ae1_az2/secrets-ae1az2-v1.sls ->
../base/secrets-ae1az2-v1.sls
PILLAR ENVIRONMENTS
It is much easier to diff two or more files than it is to
search one long file.
© Copyright 2014 Hewlett-Packard Development Company, L.P.
PILLAR ENVIRONMENTS
© Copyright 2014 Hewlett-Packard Development Company, L.P.
STATES TOP.SLS
base:
'*':
- users
- packages
- grains
dbaas_ae1_az1:
'ps-ae1az1-*':
- datadog
- dbaas_networking
'ps-ae1az1-dbcpu*':
- openstack.memcached
- openstack.haproxy
- openstack.nova-compute
'ps-ae1az1-dbhead0002*':
- openstack.memcached
- openstack.haproxy
- openstack.keystone
- openstack.glance
- openstack.nova-controller
Notice there is
nothing here about
the MySQL DB
No RabbitMQ
either
© Copyright 2014 Hewlett-Packard Development Company, L.P.
¡  If you only plan to run it only once you most likely don’t need it
in your top.sls
¡  Installing RabbitMQ
¡  Installing MySQL DB
¡  Creating your OpenStack API Endpoints
¡  Creating your OpenStack users
¡  Modifying the MySQL DB
¡  Create a one-off state directory for one off .sls
¡  Use unique names for your .sls files
¡  <project>-<ticket number>.sls
¡  Prevent executions on the wrong host
¡  Use simple lock files and or grain values to prevent second runs
LEAVE IT OUT OF THE TOP.SLS
© Copyright 2014 Hewlett-Packard Development Company, L.P.
¡  What new features are out there
¡  Check in on IRC and ask questions
¡  Hangout and answer some questions
¡  Are you alone in your company working with Salt?
STILL LEARNING
© Copyright 2014 Hewlett-Packard Development Company, L.P.
STILL LEARNING
© Copyright 2014 Hewlett-Packard Development Company, L.P.
“Ancora imparo’
(I am still learning.)
(At age 87 in 1562)”
- Michelangelo
¡  https://github.com/EntropyWorks/salt-openstack
¡  The “formula” branch eventually will replace the “master”
¡  yazz.atlas@hp.com
¡  @EntropyWorks
¡  (I should have used the HP ppt templates...)
SHOW AND TELL
© Copyright 2014 Hewlett-Packard Development Company, L.P.

More Related Content

What's hot

Salty OPS – Saltstack Introduction
Salty OPS – Saltstack IntroductionSalty OPS – Saltstack Introduction
Salty OPS – Saltstack Introduction
Walter Liu
 
Python Deployment with Fabric
Python Deployment with FabricPython Deployment with Fabric
Python Deployment with Fabric
andymccurdy
 
Steve Singer - Managing PostgreSQL with Puppet @ Postgres Open
Steve Singer - Managing PostgreSQL with Puppet @ Postgres OpenSteve Singer - Managing PostgreSQL with Puppet @ Postgres Open
Steve Singer - Managing PostgreSQL with Puppet @ Postgres Open
PostgresOpen
 

What's hot (20)

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...
 
Salty OPS – Saltstack Introduction
Salty OPS – Saltstack IntroductionSalty OPS – Saltstack Introduction
Salty OPS – Saltstack Introduction
 
Python Deployment with Fabric
Python Deployment with FabricPython Deployment with Fabric
Python Deployment with Fabric
 
[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)
[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)
[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)
 
SaltConf14 - Saurabh Surana, HP Cloud - Automating operations and support wit...
SaltConf14 - Saurabh Surana, HP Cloud - Automating operations and support wit...SaltConf14 - Saurabh Surana, HP Cloud - Automating operations and support wit...
SaltConf14 - Saurabh Surana, HP Cloud - Automating operations and support wit...
 
[오픈소스컨설팅] EFK Stack 소개와 설치 방법
[오픈소스컨설팅] EFK Stack 소개와 설치 방법[오픈소스컨설팅] EFK Stack 소개와 설치 방법
[오픈소스컨설팅] EFK Stack 소개와 설치 방법
 
Load Balancing MySQL with HAProxy - Slides
Load Balancing MySQL with HAProxy - SlidesLoad Balancing MySQL with HAProxy - Slides
Load Balancing MySQL with HAProxy - Slides
 
SaltStack Configuration Management
SaltStack Configuration ManagementSaltStack Configuration Management
SaltStack Configuration Management
 
Automating the Network
Automating the NetworkAutomating the Network
Automating the Network
 
Apache Traffic Server & Lua
Apache Traffic Server & LuaApache Traffic Server & Lua
Apache Traffic Server & Lua
 
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce
 
How to monitor NGINX
How to monitor NGINXHow to monitor NGINX
How to monitor NGINX
 
[TechTalks] Learning Configuration Management with SaltStack (Advanced Concepts)
[TechTalks] Learning Configuration Management with SaltStack (Advanced Concepts)[TechTalks] Learning Configuration Management with SaltStack (Advanced Concepts)
[TechTalks] Learning Configuration Management with SaltStack (Advanced Concepts)
 
Steve Singer - Managing PostgreSQL with Puppet @ Postgres Open
Steve Singer - Managing PostgreSQL with Puppet @ Postgres OpenSteve Singer - Managing PostgreSQL with Puppet @ Postgres Open
Steve Singer - Managing PostgreSQL with Puppet @ Postgres Open
 
Configuration management and orchestration with Salt
Configuration management and orchestration with SaltConfiguration management and orchestration with Salt
Configuration management and orchestration with Salt
 
How To Set Up SQL Load Balancing with HAProxy - Slides
How To Set Up SQL Load Balancing with HAProxy - SlidesHow To Set Up SQL Load Balancing with HAProxy - Slides
How To Set Up SQL Load Balancing with HAProxy - Slides
 
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...
 
StackiFest16: Building a Cart
StackiFest16: Building a CartStackiFest16: Building a Cart
StackiFest16: Building a Cart
 
StackiFest 16: Stacki Overview- Anoop Rajendra
StackiFest 16: Stacki Overview- Anoop Rajendra StackiFest 16: Stacki Overview- Anoop Rajendra
StackiFest 16: Stacki Overview- Anoop Rajendra
 
Puppet in the Pipeline
Puppet in the PipelinePuppet in the Pipeline
Puppet in the Pipeline
 

Viewers also liked

Viewers also liked (6)

Integration testing for salt states using aws ec2 container service
Integration testing for salt states using aws ec2 container serviceIntegration testing for salt states using aws ec2 container service
Integration testing for salt states using aws ec2 container service
 
Adding to your Python Armory - OpenWest 2013
Adding to your Python Armory - OpenWest 2013Adding to your Python Armory - OpenWest 2013
Adding to your Python Armory - OpenWest 2013
 
SaltConf14 - Craig Sebenik, LinkedIn - SaltStack at Web Scale
SaltConf14 - Craig Sebenik, LinkedIn - SaltStack at Web ScaleSaltConf14 - Craig Sebenik, LinkedIn - SaltStack at Web Scale
SaltConf14 - Craig Sebenik, LinkedIn - SaltStack at Web Scale
 
Configuration Management - Finding the tool to fit your needs
Configuration Management - Finding the tool to fit your needsConfiguration Management - Finding the tool to fit your needs
Configuration Management - Finding the tool to fit your needs
 
Introduction to SaltStack
Introduction to SaltStackIntroduction to SaltStack
Introduction to SaltStack
 
Salt Air 19 - Intro to SaltStack RAET (reliable asyncronous event transport)
Salt Air 19 - Intro to SaltStack RAET (reliable asyncronous event transport)Salt Air 19 - Intro to SaltStack RAET (reliable asyncronous event transport)
Salt Air 19 - Intro to SaltStack RAET (reliable asyncronous event transport)
 

Similar to SaltConf14 - Yazz Atlas, HP Cloud - Installing OpenStack using SaltStack

Getting Started with OpenStack Development
Getting Started with OpenStack Development Getting Started with OpenStack Development
Getting Started with OpenStack Development
Rackspace
 
Triple o 를 이용한 빠르고 쉬운 open stack 설치
Triple o 를 이용한 빠르고 쉬운 open stack 설치Triple o 를 이용한 빠르고 쉬운 open stack 설치
Triple o 를 이용한 빠르고 쉬운 open stack 설치
SangWook Byun
 
OpenStack LA meetup Feb 18, 2015
OpenStack LA meetup Feb 18, 2015OpenStack LA meetup Feb 18, 2015
OpenStack LA meetup Feb 18, 2015
Tesora
 

Similar to SaltConf14 - Yazz Atlas, HP Cloud - Installing OpenStack using SaltStack (20)

Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02
 
Ceph and cloud stack apr 2014
Ceph and cloud stack   apr 2014Ceph and cloud stack   apr 2014
Ceph and cloud stack apr 2014
 
[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치
[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치
[OpenStack Day in Korea 2015] Track 1 - Triple O를 이용한 빠르고 쉬운 OpenStack 설치
 
Getting Started with OpenStack Development
Getting Started with OpenStack Development Getting Started with OpenStack Development
Getting Started with OpenStack Development
 
2012 09-08-josug-jeff
2012 09-08-josug-jeff2012 09-08-josug-jeff
2012 09-08-josug-jeff
 
Triple o 를 이용한 빠르고 쉬운 open stack 설치
Triple o 를 이용한 빠르고 쉬운 open stack 설치Triple o 를 이용한 빠르고 쉬운 open stack 설치
Triple o 를 이용한 빠르고 쉬운 open stack 설치
 
How to master OpenStack in 2 hours
How to master OpenStack in 2 hoursHow to master OpenStack in 2 hours
How to master OpenStack in 2 hours
 
OpenStack vagrant & dashboard
OpenStack vagrant & dashboardOpenStack vagrant & dashboard
OpenStack vagrant & dashboard
 
DevOps for Humans - Ansible for Drupal Deployment Victory!
DevOps for Humans - Ansible for Drupal Deployment Victory!DevOps for Humans - Ansible for Drupal Deployment Victory!
DevOps for Humans - Ansible for Drupal Deployment Victory!
 
Ceph Deployment at Target: Customer Spotlight
Ceph Deployment at Target: Customer SpotlightCeph Deployment at Target: Customer Spotlight
Ceph Deployment at Target: Customer Spotlight
 
Ceph Deployment at Target: Customer Spotlight
Ceph Deployment at Target: Customer SpotlightCeph Deployment at Target: Customer Spotlight
Ceph Deployment at Target: Customer Spotlight
 
How to deploy spark instance using ansible 2.0 in fiware lab v2
How to deploy spark instance using ansible 2.0 in fiware lab v2How to deploy spark instance using ansible 2.0 in fiware lab v2
How to deploy spark instance using ansible 2.0 in fiware lab v2
 
How to Deploy Spark Instance Using Ansible 2.0 in FIWARE Lab
How to Deploy Spark Instance Using Ansible 2.0 in FIWARE LabHow to Deploy Spark Instance Using Ansible 2.0 in FIWARE Lab
How to Deploy Spark Instance Using Ansible 2.0 in FIWARE Lab
 
Colin McNamara - Surviving your first check-in: An engineers guide to contrib...
Colin McNamara - Surviving your first check-in: An engineers guide to contrib...Colin McNamara - Surviving your first check-in: An engineers guide to contrib...
Colin McNamara - Surviving your first check-in: An engineers guide to contrib...
 
OpenStack LA meetup Feb 18, 2015
OpenStack LA meetup Feb 18, 2015OpenStack LA meetup Feb 18, 2015
OpenStack LA meetup Feb 18, 2015
 
Dr. Ike Nassi, Founder, TidalScale at MLconf NYC - 4/15/16
Dr. Ike Nassi, Founder, TidalScale at MLconf NYC - 4/15/16Dr. Ike Nassi, Founder, TidalScale at MLconf NYC - 4/15/16
Dr. Ike Nassi, Founder, TidalScale at MLconf NYC - 4/15/16
 
A CI/CD Pipeline to Deploy and Maintain OpenStack - cfgmgmtcamp2015
A CI/CD Pipeline to Deploy and Maintain OpenStack - cfgmgmtcamp2015A CI/CD Pipeline to Deploy and Maintain OpenStack - cfgmgmtcamp2015
A CI/CD Pipeline to Deploy and Maintain OpenStack - cfgmgmtcamp2015
 
CI/CD Pipeline to Deploy and Maintain an OpenStack IaaS Cloud
CI/CD Pipeline to Deploy and Maintain an OpenStack IaaS CloudCI/CD Pipeline to Deploy and Maintain an OpenStack IaaS Cloud
CI/CD Pipeline to Deploy and Maintain an OpenStack IaaS Cloud
 
OpenStack in 10 minutes with Devstack
OpenStack in 10 minutes with DevstackOpenStack in 10 minutes with Devstack
OpenStack in 10 minutes with Devstack
 
Core os dna_automacon
Core os dna_automaconCore os dna_automacon
Core os dna_automacon
 

More from SaltStack

More from SaltStack (10)

SaltConf14 - Anita Kuno, HP & OpenStack - Using SaltStack for event-driven or...
SaltConf14 - Anita Kuno, HP & OpenStack - Using SaltStack for event-driven or...SaltConf14 - Anita Kuno, HP & OpenStack - Using SaltStack for event-driven or...
SaltConf14 - Anita Kuno, HP & OpenStack - Using SaltStack for event-driven or...
 
SaltConf14 - Brendan Burns, Google - Management at Google Scale
SaltConf14 - Brendan Burns, Google - Management at Google ScaleSaltConf14 - Brendan Burns, Google - Management at Google Scale
SaltConf14 - Brendan Burns, Google - Management at Google Scale
 
SaltConf14 - Justin Carmony, Deseret Digital Media - Teaching Devs About DevOps
SaltConf14 - Justin Carmony, Deseret Digital Media - Teaching Devs About DevOpsSaltConf14 - Justin Carmony, Deseret Digital Media - Teaching Devs About DevOps
SaltConf14 - Justin Carmony, Deseret Digital Media - Teaching Devs About DevOps
 
SaltConf14 - Thomas Jackson, LinkedIn - Safety with Power Tools
SaltConf14 - Thomas Jackson, LinkedIn - Safety with Power ToolsSaltConf14 - Thomas Jackson, LinkedIn - Safety with Power Tools
SaltConf14 - Thomas Jackson, LinkedIn - Safety with Power Tools
 
SaltConf14 - Eric johnson, Google - Orchestrating Google Compute Engine with ...
SaltConf14 - Eric johnson, Google - Orchestrating Google Compute Engine with ...SaltConf14 - Eric johnson, Google - Orchestrating Google Compute Engine with ...
SaltConf14 - Eric johnson, Google - Orchestrating Google Compute Engine with ...
 
SaltStack - An open source software story
SaltStack - An open source software storySaltStack - An open source software story
SaltStack - An open source software story
 
Real-time Cloud Management with SaltStack
Real-time Cloud Management with SaltStackReal-time Cloud Management with SaltStack
Real-time Cloud Management with SaltStack
 
A user's perspective on SaltStack and other configuration management tools
A user's perspective on SaltStack and other configuration management toolsA user's perspective on SaltStack and other configuration management tools
A user's perspective on SaltStack and other configuration management tools
 
Real-time Infrastructure Management with SaltStack - OpenWest 2013
Real-time Infrastructure Management with SaltStack - OpenWest 2013Real-time Infrastructure Management with SaltStack - OpenWest 2013
Real-time Infrastructure Management with SaltStack - OpenWest 2013
 
Writing SaltStack Modules - OpenWest 2013
Writing SaltStack Modules - OpenWest 2013Writing SaltStack Modules - OpenWest 2013
Writing SaltStack Modules - OpenWest 2013
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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 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...
 
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?
 
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
 
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...
 
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...
 
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
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
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...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
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
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 

SaltConf14 - Yazz Atlas, HP Cloud - Installing OpenStack using SaltStack

  • 1. Yazz D. Atlas Advanced Technology Group Principle Engineer, Hewlett Packard January 29, 2014 INSTALLING OPENSTACK USING SALTSTACK © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 2. ¡  I’ve been poking at Linux servers back in late 90’s ¡  Actively trying to replace myself with small scripts. §  Bash §  Cfengine §  Puppet §  Capistrano §  Chef §  Salt WHO IS THIS GUY? © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 3. ¡  You might have tried DevStack to try OpenStack. ¡  You have setup a Salt Master before. ¡  You want to see how I solved some of my headaches using Salt. ¡  You are want something answered. ¡  The other rooms were full and this one has an open power outlet. WHY ARE YOU HERE? © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 4. ¡  /etc/keystone ¡  /etc/nova ¡  /etc/glance ¡  /etc/swift ¡  /etc/???? THINGS CHANGE. © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 5. ¡  Look beyond your current infrastructure. ¡  Think about how others have deployed OpenStack. ¡  Make the decision early to keep secrets out of your repos. NOW WHAT? © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 6. SALT-MASTER FILE_ROOTS file_roots: base: - /srv/salt/state/formulae - /srv/salt/state/base dbaas_ae1_az1: - /srv/salt/state/dbaas_ae1_az1 dbaas_ae1_az2: - /srv/salt/state/dbaas_ae1_az2 dbaas_ae1_az3: - /srv/salt/state/dbaas_ae1_az3 © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 7. SALT-MASTER PILLAR_ROOTS pillar_roots: base: - /srv/salt/pillar/base dbaas_ae1_az1: - /srv/salt/pillar/dbaas_ae1_az1 dbaas_ae1_az2: - /srv/salt/pillar/dbaas_ae1_az2 dbaas_ae1_az3: - /srv/salt/pillar/dbaas_ae1_az3 © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 8. PILLAR TOP.SLS base: '*': - users - groups - headers - openstack - secrets dbaas_ae1_az1: 'ps-ae1az1-db*': - endpoints-ae1az1-v1 - secrets-ae1az1-v1 dbaas_ae1_az2: 'ps-ae1az2-db*': - endpoints-ae1az2-v1 - secrets-ae1az2-v1 The top.sls is actually a symbolic link to the file top-ae1.sls openstack.sls is a symbolic link to openstack-ae1.sls These are links too but slightly different © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 9. /srv/salt/pillar/dbaas_ae1_az1/endpoints-ae1az1-v1.sls -> ../base/endpoints-ae1az1-v1.sls /srv/salt/pillar/dbaas_ae1_az1/secrets-ae1az1-v1.sls -> ../base/secrets-ae1az1-v1.sls /srv/salt/pillar/dbaas_ae1_az2/endpoints-ae1az2-v1.sls -> ../base/endpoints-ae1az2-v1.sls /srv/salt/pillar/dbaas_ae1_az2/secrets-ae1az2-v1.sls -> ../base/secrets-ae1az2-v1.sls PILLAR ENVIRONMENTS It is much easier to diff two or more files than it is to search one long file. © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 10. PILLAR ENVIRONMENTS © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 11. STATES TOP.SLS base: '*': - users - packages - grains dbaas_ae1_az1: 'ps-ae1az1-*': - datadog - dbaas_networking 'ps-ae1az1-dbcpu*': - openstack.memcached - openstack.haproxy - openstack.nova-compute 'ps-ae1az1-dbhead0002*': - openstack.memcached - openstack.haproxy - openstack.keystone - openstack.glance - openstack.nova-controller Notice there is nothing here about the MySQL DB No RabbitMQ either © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 12. ¡  If you only plan to run it only once you most likely don’t need it in your top.sls ¡  Installing RabbitMQ ¡  Installing MySQL DB ¡  Creating your OpenStack API Endpoints ¡  Creating your OpenStack users ¡  Modifying the MySQL DB ¡  Create a one-off state directory for one off .sls ¡  Use unique names for your .sls files ¡  <project>-<ticket number>.sls ¡  Prevent executions on the wrong host ¡  Use simple lock files and or grain values to prevent second runs LEAVE IT OUT OF THE TOP.SLS © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 13. ¡  What new features are out there ¡  Check in on IRC and ask questions ¡  Hangout and answer some questions ¡  Are you alone in your company working with Salt? STILL LEARNING © Copyright 2014 Hewlett-Packard Development Company, L.P.
  • 14. STILL LEARNING © Copyright 2014 Hewlett-Packard Development Company, L.P. “Ancora imparo’ (I am still learning.) (At age 87 in 1562)” - Michelangelo
  • 15. ¡  https://github.com/EntropyWorks/salt-openstack ¡  The “formula” branch eventually will replace the “master” ¡  yazz.atlas@hp.com ¡  @EntropyWorks ¡  (I should have used the HP ppt templates...) SHOW AND TELL © Copyright 2014 Hewlett-Packard Development Company, L.P.