Post on 22-Jan-2018
foreman_provision
Infrastructure as Code
Gent, Nils Domrose
02.02.2016cfgmgmtlogo http://cfgmgmtcamp.eu
About me
2
Head of IT @ inovex GmbH
• Systems Engineer• Automation• Architecture• Security• Network Engineering
@endyman
The Problem
3
The Problem
4
The Problem
5
The Problem
6
The Problem
7
The Problem
8
The Problem
9
repeat the last steps for each system….
• 2 Loadbalancers• 2 Webservers• 2 Middleware Servers• 2 KeyValue Stores= 8 Systemes
The Problem
10
... in each environment
• Dev• Demo• Stage• Production= 36 Systems*
*with smallest prod sizing
The Problem
11
The Problem
http://www.memgenerator.net 12
The Solution
13
Working with the API
14
foreman_provison
Foreman Logo http://theforeman.github.io 15
Getting Started
16
Accessing the API
17
Provisioning Data
18
Provisioning Data
19
Provisioning Data
20
Dry-Run
21
Provisioning
22
Result
23
VMware? VMware!
24
More Examples
25
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
Possible Alternatives
27
• theforeman/foreman_deployments• Terraform Provider
https://github.com/mattwilmott/terraform-foreman
Deployment Pipeline
Logogs: https://wiki.jenkins-ci.org, http://theforeman.github.io 28
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
30
We are hiring
http://www.inovexperts.com
Thank You!Nils Domrose
Head of IT
inovex GmbH
Ludwig-Erhard-Allee 6
76131 Karlsruhe