0
INSTALLING OPENSTACK
USING SALTSTACK

Yazz D. Atlas
A dvanced
T echnology
G roup

© Copyright 2014 Hewlett-Packard Develop...
WHO IS THIS GUY?
¡  I’ve been poking at Linux servers back in late 90’s
¡  Actively trying to replace myself with small ...
WHY ARE YOU HERE?
¡  You might have tried DevStack to try OpenStack.
¡  You have setup a Salt Master before.
¡  You wan...
THINGS CHANGE.
¡  /etc/keystone
¡  /etc/nova
¡  /etc/glance
¡  /etc/swift
¡  /etc/????

© Copyright 2014 Hewlett-Pack...
NOW WHAT?
¡  Look beyond your current infrastructure.
¡  Think about how others have deployed OpenStack.
¡  Make the de...
SALT-MASTER

FILE_ROOTS

file_roots:
base:
- /srv/salt/state/formulae
- /srv/salt/state/base
dbaas_ae1_az1:
- /srv/salt/st...
SALT-MASTER

PILLAR_ROOTS

pillar_roots:
base:
- /srv/salt/pillar/base
dbaas_ae1_az1:
- /srv/salt/pillar/dbaas_ae1_az1
dba...
PILLAR
base:
'*':
- users
- groups
- headers
- openstack
- secrets

TOP.SLS

The top.sls is actually a symbolic link to th...
PILLAR

ENVIRONMENTS

/sr v/salt/pillar/dbaas_ae1_az1/endpoints-ae1az1-v1 .sls ->
../base/endpoints-ae1az1-v1 .sls
/sr v/s...
PILLAR

ENVIRONMENTS

© Copyright 2014 Hewlett-Packard Development Company, L.P.
STATES
base:
'*':
- users
- packages
- grains
dbaas_ae1_az1:
'ps-ae1az1-*':
- datadog
- dbaas_networking
'ps-ae1az1-dbcpu*...
LEAVE IT OUT OF THE TOP.SLS
¡  If you only plan to run it only once you most likely don’t need it
in your top.sls
¡  Ins...
STILL LEARNING
¡  What new features are out there
¡  Check in on IRC and ask questions
¡  Hangout and answer some quest...
STILL LEARNING

“Ancora imparo’
(I am still learning.)
(At age 87 in 1562)”
- Michelangelo
© Copyright 2014 Hewlett-Packar...
SHOW AND TELL
¡  https://github.com/EntropyWorks/salt-openstack
¡  The “formula” branch eventually will replace the “mas...
Upcoming SlideShare
Loading in...5
×

Salt conf 2014-installing-openstack-using-saltstack-v02

989

Published on

OpenStack is an open source implementation of cloud computing, potentially at very large scale. However, it has many moving parts and is complex to operate. SaltStack appears to provide scalable and secure orchestration for OpenStack. But like all powerful solutions to complex problems, a great deal of the useful know-how has to be discovered by actual practice and hard-won experience. This session will share the inside knowledge gained through practical experience. This is not a howto install OpenStack.

Published in: Technology, Business
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
989
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
22
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Transcript of "Salt conf 2014-installing-openstack-using-saltstack-v02"

  1. 1. INSTALLING OPENSTACK USING SALTSTACK Yazz D. Atlas A dvanced T echnology G roup © Copyright 2014 Hewlett-Packard Development Company, L.P. P r i n c i p l e E n g i n e e r, Hewlett Packard Januar y 29, 2014
  2. 2. WHO IS THIS GUY? ¡  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 © Copyright 2014 Hewlett-Packard Development Company, L.P.
  3. 3. WHY ARE YOU HERE? ¡  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. © Copyright 2014 Hewlett-Packard Development Company, L.P.
  4. 4. THINGS CHANGE. ¡  /etc/keystone ¡  /etc/nova ¡  /etc/glance ¡  /etc/swift ¡  /etc/???? © Copyright 2014 Hewlett-Packard Development Company, L.P.
  5. 5. NOW WHAT? ¡  Look beyond your current infrastructure. ¡  Think about how others have deployed OpenStack. ¡  Make the decision early to keep secrets out of your repos. © Copyright 2014 Hewlett-Packard Development Company, L.P.
  6. 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. 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. 8. PILLAR base: '*': - users - groups - headers - openstack - secrets TOP.SLS The top.sls is actually a symbolic link to the file top-ae1.sls openstack.sls is a symbolic link to openstack-ae1.sls dbaas_ae1_az1: 'ps-ae1az1-db*': - endpoints-ae1az1-v1 - secrets-ae1az1-v1 dbaas_ae1_az2: 'ps-ae1az2-db*': - endpoints-ae1az2-v1 - secrets-ae1az2-v1 These are links too but slightly different © Copyright 2014 Hewlett-Packard Development Company, L.P.
  9. 9. PILLAR ENVIRONMENTS /sr v/salt/pillar/dbaas_ae1_az1/endpoints-ae1az1-v1 .sls -> ../base/endpoints-ae1az1-v1 .sls /sr v/salt/pillar/dbaas_ae1_az1/secrets-ae1az1-v1 .sls -> ../base/secrets-ae1az1-v1 .sls /sr v/salt/pillar/dbaas_ae1_az2/endpoints-ae1az2-v1 .sls -> ../base/endpoints-ae1az2-v1 .sls /sr v/salt/pillar/dbaas_ae1_az2/secrets-ae1az2-v1 .sls -> ../base/secrets-ae1az2-v1 .sls 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. 10. PILLAR ENVIRONMENTS © Copyright 2014 Hewlett-Packard Development Company, L.P.
  11. 11. STATES 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 TOP.SLS Notice there is nothing here about the MySQL DB No RabbitMQ either © Copyright 2014 Hewlett-Packard Development Company, L.P.
  12. 12. LEAVE IT OUT OF THE TOP.SLS ¡  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-of f state director y for one of f .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 © Copyright 2014 Hewlett-Packard Development Company, L.P.
  13. 13. STILL LEARNING ¡  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? © Copyright 2014 Hewlett-Packard Development Company, L.P.
  14. 14. STILL LEARNING “Ancora imparo’ (I am still learning.) (At age 87 in 1562)” - Michelangelo © Copyright 2014 Hewlett-Packard Development Company, L.P.
  15. 15. SHOW AND TELL ¡  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...) © Copyright 2014 Hewlett-Packard Development Company, L.P.
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×