36
Ilkka Tengvall 2014-2-11 Hack your way to cloud @HappyHackingDay 2014

Hack your way to cloud!

Embed Size (px)

Citation preview

Page 1: Hack your way to cloud!

Ilkka Tengvall2014-2-11

Hack your way to cloud@HappyHackingDay 2014

Page 2: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

What is there to hack in the cloud?

Comes as Given?

Page 3: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

What is there to hack in the cloud?

Comes as Given?

Yes, if you stick to these guys who want to sell you their products and

lock you in to be theirs truly

Page 4: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

What is there to hack in the cloud?

Comes as Given?

Everything is open, if you choose to select differently

Page 5: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

Meet the hackers in the story

Harry the Hacker Hermione the Hacker

Page 6: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

Other guys in the story, meet...

Lucius Bad UncleVolde­Dude

Page 7: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

Harry

17.3.2014 Cybercom Finland7

I want to hack things. I have a goal: Find powerful stuff,

perfect my magic, fight the battle and WIN!

Page 8: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

Hermione

17.3.2014 Cybercom Finland8

I like to learn a lot of things, I want to know how the magic

works. I want to create a community with whom to win

together!

Page 9: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

The magic ingredients – The stuff

cloud guest server templates

cloud host machinery

cloud machine interfaces (API)

cloud user interfaces

cloud automation

cloud monitoring

Page 10: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

So much stuff to choose from

Page 11: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

So much stuff to choose from

We want the one that has the most hackers involved with it, and active events and magical

community around it!

Page 12: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud guest server templates

<template>

<name>ubuntu_12.04_x86_64</name>

<os>

<name>Ubuntu</name>

<version>12.04</version>

<arch>x86_64</arch>

<install type='iso'>

<iso>http://ftp.funet.fi/pub/Linux/INSTALL/Ubuntu/r

eleases/precise/ubuntu-12.04.3-server-

amd64.iso</iso>

</install>

</os>

<description>Ubuntu 12.04</description>

<disk>

<size>5</size>

</disk>

<packages>

<!--package name='puppetmaster'/ -->

<package name='puppet'/>

</packages>

Meet Oz

Page 13: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud guest server templates

<template>

<name>ubuntu_12.04_x86_64</name>

<os>

<name>Ubuntu</name>

<version>12.04</version>

<arch>x86_64</arch>

<install type='iso'>

<iso>http://ftp.funet.fi/pub/Linux/INSTALL/Ubuntu/r

eleases/precise/ubuntu-12.04.3-server-

amd64.iso</iso>

</install>

</os>

<description>Ubuntu 12.04</description>

<disk>

<size>5</size>

</disk>

<packages>

<!--package name='puppetmaster'/ -->

<package name='puppet'/>

</packages>

Meet Oz

● Oz is a tool written in python● Oz likes to create cloud template machines of different operating systems

● https://github.com/clalancette/oz●yum install oz

Page 14: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

Pick your $favourite_linux_distribution

● There is plenty to tune in host operating system

– Kernel networking layer

– KVM/Xen/LXC layer

– OpenStack virtualization management layer

cloud host machinery

Page 15: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

Pick your $favourite_linux_distribution

● There is plenty to tune in host operating system

– Kernel networking layer

– KVM/Xen/LXC layer

– OpenStack virtualization management layer

cloud host machinery

Let's use the magic puppet forge to control it all!http://forge.puppetlabs.com/puppetlabs/openstack

Page 16: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

Hey, I found a secret map, what is it?

Page 17: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

I know, I've seen it.It's OpenStack architecture

description!

I recall it's all documented here:

http://docs.openstack.org

Along with all the installation, operational and API documentation.

Page 18: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

Go check the OpenStack pages

● Plenty of documentation● Community page lists different ways to get involved● All blueprints and decisions are open

● There is plenty of projects to get hacking in different areas of cloud

Page 19: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

Several ways to install

● Development installations for the cloud● $ git clone https://github.com/openstack-dev/devstack.git● $ cd devstack; ./stack.sh

● The Red Hat family way● $ sudo yum install -y openstack-packstack● $ sudo yum install -y http://rdo.fedorapeople.org/rdo-release.rpm

● All major OS install instructions are in the openstack docs

● Check puppet for openstack!● https://github.com/stackforge/puppet-openstack

Page 20: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud machine interfaces (API)

About anything in the cloud can be controlled via APIs

Page 21: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud machine interfaces (API)

Yes! That means I can script about everything in the cloud!

About anything in the cloud can be controlled via APIs

Page 22: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud machine interfaces (API)

Yes! That means I can script about everything in the cloud!

About anything in the cloud can be controlled via APIs

http://docs.openstack.org/api/quick-start/content/http://api.openstack.org/api-ref.html

Page 23: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud user interfaces

Page 24: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

Web wizards, unite and do your magic at http://docs.openstack.org/developer/horizon/intro.html

cloud user interfaces

Page 25: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud automation

How about one spell to rule all the different clouds?

Page 26: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud automation

How about one spell to rule all the different clouds?

E.g. Deltacloud, Fog, jclouds

Page 27: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud automation

I've been training the beasts at Puppet Forge, feeding them with Chef recipes and using cloud-init to multiply them!

Page 28: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud automation

I've been training the beasts at Puppet Forge, feeding them with Chef recipes and using cloud-init to multiply them!

http://forge.puppetlabs.comhttp://community.opscode.com/cookbookshttp://cloudinit.readthedocs.org/en/latesthttps://wiki.openstack.org/wiki/Heat

Page 29: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud monitoring

What is there afterCeilometer + Nagios + Zenoss

?

Page 30: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud monitoring

What is there afterCeilometer + Nagios + Zenoss

?

Some clever hacker could start a proper billing and statistics view project...

Page 31: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

Always remember

In many places, there are people&”officials” sneaking behind your back and watching over your shoulder!

Page 32: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

Always remember

In many places, there are people&”officials” sneaking behind your back and watching over your shoulder!

Page 33: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

With the selected ingredients we've created a safe forge to

practice powerful hackery!

Page 34: Hack your way to cloud!

2013-03-12 Ilkka Tengvall / Cybercom Finland

With the selected ingredients we've created a safe forge to

practice powerful hackery!

We are ready for the big WIN!

Page 35: Hack your way to cloud!

2013-03-12 Cybercom Finland2013-03-12 Cybercom Finland35

Thank You – Kiitos !

[email protected]

Page 36: Hack your way to cloud!

2013-03-12 Cybercom FinlandCybercom Finland362013-03-12