44
Automated Deployment … of Debian & Ubuntu Michael Prokop

Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

  • Upload
    others

  • View
    27

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Automated Deployment

… of Debian & Ubuntu

Michael Prokop

Page 2: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

About MeDebian Developer

Project lead of Grml.orgFounder of Grml-Forensic.org

Involved in FAI, initramfs-tools, etc.Member in Debian Forensic Team

Author of Book ,,Open SourceProjektmanagement"

IT Consultant

Page 3: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

DisclaimersDeployment focuses on Linux

Several tools mentioned, but there exist even more :)

We'll cover some sections in more detail than others

There's no one-size-fits-all solution – identify what works for you

Page 4: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Infrastructure Development

Orchestration / Automation

Monitoring + Updates

Provisioning / Bootstrapping

Service Deployment

Configuration Management

Visualization/Trends/Metrics + Logs

SystemsManagement

Cloud

Documentation

DevOps

Page 5: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Systems Management

Page 6: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Remote Access

ipmi, HP iLO, IBM RSA,...

Page 7: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Firmware Management

$Vendor Tools

Page 8: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Provisioning / Bootstrapping

Page 9: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

F(ully) A(utomatic) I(nstallation)Debian, Ubuntu, CentOS + Scientific Linux

http://fai-project.org/

Page 10: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

JujuUbuntu „Charms“

https://juju.ubuntu.com/

Page 11: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

grml-debootstrapnetscript=http://example.org/netscript.sh

http://grml.org/

Page 12: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

d-i preseedingauto url=http://debian.org/releases/\

squeeze/example-preseed.txt

http://wiki.debian.org/DebianInstaller/Preseed

Page 13: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Kickstart

Page 14: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Cobbler

Page 15: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Foreman

Page 16: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

AutoYaST, openQRM, Spacewalk,...

Page 17: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Orchestration / Automation

Page 18: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Fabric (Python)% cat fabfile.pyfrom fabric.api import run

def host_type(): run('uname -s')

% fab -H host1, host2,host3 host_type

Page 19: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Capistrano (Ruby)% cat Capfilerole :hosts, "host1", "host2", "host3"

task :host_type, :roles => :hosts do run "uname -s"end

% cap host_type

Page 20: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Rundeck

Page 21: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

apt-dater

% cat .config/apt-dater/hosts.conf[example.org][email protected];[email protected];...

Page 22: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

ControlTier, Func, MCollective,...

ClusterSSH, dsh, TakTuk,...

Cobbler, Foreman, openQRM, Spacewalk,...

Page 23: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Configuration Management

Page 24: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

PuppetEnvironments (production/staging/development)

●http://anonscm.debian.org/gitweb/?p=mirror/dsa-puppet.git●https://github.com/grml/gsa-puppet●https://labs.riseup.net/code/projects/sharedpuppetmodules●...

Page 25: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Augeas

% augtoolset /files/etc/hosts/01/ipaddr 192.168.0.1set /files/etc/hosts/01/canonical klug.example.orgsave

Page 26: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

bcfg2, cfengine, chef + ohai

Page 27: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Monitoring / Updates

Page 28: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Repository Handling/Proxyapt-cacher-ng

repreprosquid

...

Page 29: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

unattended-upgrades

Unattended-Upgrade::Allowed-Origins { "${distro_id} stable"; "${distro_id} ${distro_codename}-security"; "${distro_id} ${distro_codename}-updates";};

Page 30: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

MonitoringCacti, Nagios/Icinga, OpenNMS, Zabbix, Zenos,...

Monit, Runit, Upstart,...

Page 31: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Nagios / Icingasecurity updates, running kernel version,..

git clone git://anonscm.debian.org/mirror/dsa-nagios.git

Page 32: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Service Deployment

Page 33: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Debian Packagingdpkg [v3] + debhelper [v8]

dh-make, dh-make-perl, dh-make-php, dh-make-ruby/gem2debfpm [https://github.com/jordansissel/fpm]

{cvs,svn,git,...}-buildpackage

cowbuilder/pbuilder/sbuild/...

Page 34: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

RubyBundler

http://gembundler.com/

Page 35: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Pythonvirtualenv/pip/pbundler

Page 36: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Continuous Integration & Jenkins

Page 37: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

CloudEucalyptus, OpenStack, Cloudstack

Page 38: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Visualization/Trends/Metrics + LogsLogstash, Graylog2, Splunk

Cacti, Munin, Collectd, Ganglia, Graphite

Page 39: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Infrastructure Development + Testing

Page 40: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Vagrant

% vagrant box add base \http://files.vagrantup.com/lucid32.box% vagrant init% vagrant up

http://vagrantup.com/ + http://www.vagrantbox.es/

Page 41: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Veewee

% bundle install --path vendor% alias veewee='bundle exec veewee'

% veewee vbox define CustomDebian-6.0.4 \ Debian-6.0.4-amd64-netboot% $EDITOR definitions/CustomDebian-6.0.4/*% veewee vbox build 'CustomDebian-6.0.4'% veewee vbox validate CustomDebian-6.0.4

% vagrant package --base CustomDebian-6.0.4

https://github.com/jedi4ever/veewee

Page 42: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Jenkins

Cucumber-PuppetRSpec-Puppet

Guard::Cucumber

Page 43: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

DocumentationWiki

VCS (Git!)Asciidoc, Sphinx, txt2tags

Password Management...

Page 44: Automated Deployment … of Debian & Ubuntu · Automated Deployment … of Debian & Ubuntu Michael Prokop. About Me Debian Developer Project lead of Grml.org Founder of Grml-Forensic.org

Questions || Wishes?

@mikagrmlmika @ github

michael-prokop.at/blog/