foreman_provision – infrastructure as code
TRANSCRIPT
![Page 1: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/1.jpg)
foreman_provision
Infrastructure as Code
Gent, Nils Domrose
02.02.2016cfgmgmtlogo http://cfgmgmtcamp.eu
![Page 2: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/2.jpg)
About me
2
Head of IT @ inovex GmbH
• Systems Engineer• Automation• Architecture• Security• Network Engineering
@endyman
![Page 3: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/3.jpg)
The Problem
3
![Page 4: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/4.jpg)
The Problem
4
![Page 5: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/5.jpg)
The Problem
5
![Page 6: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/6.jpg)
The Problem
6
![Page 7: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/7.jpg)
The Problem
7
![Page 8: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/8.jpg)
The Problem
8
![Page 9: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/9.jpg)
The Problem
9
repeat the last steps for each system….
• 2 Loadbalancers• 2 Webservers• 2 Middleware Servers• 2 KeyValue Stores= 8 Systemes
![Page 10: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/10.jpg)
The Problem
10
... in each environment
• Dev• Demo• Stage• Production= 36 Systems*
*with smallest prod sizing
![Page 11: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/11.jpg)
The Problem
11
![Page 12: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/12.jpg)
The Problem
http://www.memgenerator.net 12
![Page 13: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/13.jpg)
The Solution
13
![Page 14: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/14.jpg)
Working with the API
14
![Page 15: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/15.jpg)
foreman_provison
Foreman Logo http://theforeman.github.io 15
![Page 16: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/16.jpg)
Getting Started
16
![Page 17: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/17.jpg)
Accessing the API
17
![Page 18: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/18.jpg)
Provisioning Data
18
![Page 19: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/19.jpg)
Provisioning Data
19
![Page 20: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/20.jpg)
Provisioning Data
20
![Page 21: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/21.jpg)
Dry-Run
21
![Page 22: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/22.jpg)
Provisioning
22
![Page 23: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/23.jpg)
Result
23
![Page 24: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/24.jpg)
VMware? VMware!
24
![Page 25: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/25.jpg)
More Examples
25
![Page 26: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/26.jpg)
Limitations
26
• Currently Objects can only be checked or created• no update• no delete
• Fragile to changes in compute resources (fog updates)
• Issue #14 - Use apipie bindings
![Page 27: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/27.jpg)
Possible Alternatives
27
• theforeman/foreman_deployments• Terraform Provider
https://github.com/mattwilmott/terraform-foreman
![Page 28: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/28.jpg)
Deployment Pipeline
Logogs: https://wiki.jenkins-ci.org, http://theforeman.github.io 28
![Page 29: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/29.jpg)
Links
29
Arnold‘s inovex Blog Post:https://goo.gl/hnAfu3
Source Code @ Github: https://github.com/FILIADATAGmbH/foreman_provision
Slideshare:http://de.slideshare.net/inovex
![Page 30: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/30.jpg)
30
We are hiring
http://www.inovexperts.com
![Page 31: foreman_provision – Infrastructure as code](https://reader031.vdocuments.us/reader031/viewer/2022022001/58ed591e1a28abed248b4719/html5/thumbnails/31.jpg)
Thank You!Nils Domrose
Head of IT
inovex GmbH
Ludwig-Erhard-Allee 6
76131 Karlsruhe