Hack your way to cloud!

Post on 15-Jul-2015

140 views 0 download

Tags:

Transcript of Hack your way to cloud!

Ilkka Tengvall2014-2-11

Hack your way to cloud@HappyHackingDay 2014

2013-03-12 Ilkka Tengvall / Cybercom Finland

What is there to hack in the cloud?

Comes as Given?

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

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

2013-03-12 Ilkka Tengvall / Cybercom Finland

Meet the hackers in the story

Harry the Hacker Hermione the Hacker

2013-03-12 Ilkka Tengvall / Cybercom Finland

Other guys in the story, meet...

Lucius Bad UncleVolde­Dude

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!

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!

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

2013-03-12 Ilkka Tengvall / Cybercom Finland

So much stuff to choose from

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!

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

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

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

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

2013-03-12 Ilkka Tengvall / Cybercom Finland

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

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.

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

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

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud machine interfaces (API)

About anything in the cloud can be controlled via APIs

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

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

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud user interfaces

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

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud automation

How about one spell to rule all the different clouds?

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud automation

How about one spell to rule all the different clouds?

E.g. Deltacloud, Fog, jclouds

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!

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

2013-03-12 Ilkka Tengvall / Cybercom Finland

cloud monitoring

What is there afterCeilometer + Nagios + Zenoss

?

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...

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!

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!

2013-03-12 Ilkka Tengvall / Cybercom Finland

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

practice powerful hackery!

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!

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

Thank You – Kiitos !

ilkka.tengvall@cybercom.comcybercom.com

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