SlideShare ist ein Scribd-Unternehmen logo
1 von 47
Downloaden Sie, um offline zu lesen
Salt – A Scalable Systems
Management Solution for Datacenters
Open Source Data Center Conference April 26-28, 2016
Sebastian Meyer
Linux Consultant & Trainer
B1 Systems GmbH
meyer@b1-systems.de
B1 Systems GmbH - Linux/Open Source Consulting,Training, Support & Development
Introducing B1 Systems
founded in 2004
operating both nationally and internationally
nearly 100 employees
provider for IBM, SUSE, Oracle & HP
vendor-independent (hardware and software)
focus:
consulting
support
development
training
operations
solutions
B1 Systems GmbH Salt – Scalable Systems Management 2 / 47
Areas of Expertise
B1 Systems GmbH Salt – Scalable Systems Management 3 / 47
Salt – Introduction
B1 Systems GmbH Salt – Scalable Systems Management 4 / 47
Yet Another Systems Management Solution?
takes inspiration from Puppet, Chef or Ansible
focuses on the entire system life cycle
easily scalable to a few thousand systems
convenient and easy to learn
configuration management and remote execution
B1 Systems GmbH Salt – Scalable Systems Management 5 / 47
Salt – Concept
B1 Systems GmbH Salt – Scalable Systems Management 6 / 47
Master & Minions
B1 Systems GmbH Salt – Scalable Systems Management 7 / 47
Scalability: Masters, Syndics & Minions
B1 Systems GmbH Salt – Scalable Systems Management 8 / 47
High Availability: Multiple Masters& Minions
B1 Systems GmbH Salt – Scalable Systems Management 9 / 47
Salt Modes
minions pull from master
master pushes to Minions
minions apply states locally
master applies states on minions via SSH
B1 Systems GmbH Salt – Scalable Systems Management 10 / 47
Remote Execution System
B1 Systems GmbH Salt – Scalable Systems Management 11 / 47
Salt Command
B1 Systems GmbH Salt – Scalable Systems Management 12 / 47
Grains
B1 Systems GmbH Salt – Scalable Systems Management 13 / 47
Configuration Management
B1 Systems GmbH Salt – Scalable Systems Management 14 / 47
States
ID:
module.function:
- name: name
- argument1: value
- argument2:
- value1
- value2
B1 Systems GmbH Salt – Scalable Systems Management 15 / 47
Top File
base:
’*’:
- monitoring
- ssh
- syslog
’*lan*’:
- ntp.lan
’*dmz*’:
- ntp.dmz
- firewall
all servers:
monitoring
ssh config
syslog
servers in LAN:
ntp config
servers in DMZ:
ntp config
firewall
B1 Systems GmbH Salt – Scalable Systems Management 16 / 47
Pillars
B1 Systems GmbH Salt – Scalable Systems Management 17 / 47
Pillar Data
Pillar Example
ntp:
{% if grains[’id’].startswith(’myntpserver’) %}
ntpservers: ["0.us.pool.ntp.org","1.us.pool.ntp.org"]
comment: ’’
{% else %}
ntpservers: ["10.1.1.20","10.1.1.21"]
comment: ’myinternalservers’
{% endif %}
Source: https://github.com/saltstack-formulas/ntp-formula/blob/master/pillar.example
B1 Systems GmbH Salt – Scalable Systems Management 18 / 47
Pillars and States
States top.sls
base:
’*’:
- monitoring
- ssh
- syslog
- ntp
’*dmz*’:
- firewall
Pillar top.sls
base:
’*’:
- monitoring
- ssh
- syslog
’*lan*’:
- ntp.lan
’*dmz*’:
- ntp.dmz
- firewall
B1 Systems GmbH Salt – Scalable Systems Management 19 / 47
Deploying the State
Master pushes to minions
salt ’*’ state.highstate
salt ’*’ state.sls mystate
Minions pull from master
salt-call state.highstate
salt-call state.sls mystate
B1 Systems GmbH Salt – Scalable Systems Management 20 / 47
Reusing States: Formulas
reusing existing code
roughly the same as Puppet modules/Ansible roles
collection of States and files
github.com/saltstack-formulas/ for "official" formulas
B1 Systems GmbH Salt – Scalable Systems Management 21 / 47
Using Formulas
directly from VCS or local
extendable via include
configurable via Pillar data
variables mapped via Jinja map
requirements across Formulas possible
B1 Systems GmbH Salt – Scalable Systems Management 22 / 47
Demo
B1 Systems GmbH Salt – Scalable Systems Management 23 / 47
Returners
salt ’*’ disk.usage --return redis_return
B1 Systems GmbH Salt – Scalable Systems Management 24 / 47
Salts Event Driven Infrastructure
B1 Systems GmbH Salt – Scalable Systems Management 25 / 47
Overview
actions trigger events
events are communicated via the event bus
reactors execute trigger actions responding to events
B1 Systems GmbH Salt – Scalable Systems Management 26 / 47
Event Bus
B1 Systems GmbH Salt – Scalable Systems Management 27 / 47
Actions & Events
master# salt ’salt-minion-01’ disk.percent /srv
salt-minion-01:
11%
B1 Systems GmbH Salt – Scalable Systems Management 28 / 47
Actions & Events
20160422163250339970 {
[...]
}
salt/job/20160422163250339970/new {
"_stamp": "2016-04-22T14:32:50.340357",
"arg": [ "/srv" ],
"fun": "disk.percent",
"jid": "20160422163250339970",
"minions": [ "salt-minion-01" ],
"tgt": "salt-minion-01",
"tgt_type": "glob",
"user": "root"
}
B1 Systems GmbH Salt – Scalable Systems Management 29 / 47
Actions & Events
salt/job/20160422163250339970/ret/salt-minion-01 {
"_stamp": "2016-04-22T14:32:50.536877",
"cmd": "_return",
"fun": "disk.percent",
"fun_args": [ "/srv" ],
"id": "salt-minion-01",
"jid": "20160422163250339970",
"retcode": 0,
"return": "11%",
"success": true
}
B1 Systems GmbH Salt – Scalable Systems Management 30 / 47
Events in a State
b1/mystate/status/update:
event.send:
- data:
status: "Installation done!"
B1 Systems GmbH Salt – Scalable Systems Management 31 / 47
Beacons
hook into system on minion
create events
inotify, diskusage, load, journald ...
B1 Systems GmbH Salt – Scalable Systems Management 32 / 47
Beacons - Example
inotify Beacon
beacons:
inotify:
/etc/motd:
mask:
- modify
B1 Systems GmbH Salt – Scalable Systems Management 33 / 47
Reactors
B1 Systems GmbH Salt – Scalable Systems Management 34 / 47
Calling Reactors on Events
Reactor Example
reactor:
- ’salt/minion/*/start’:
- /srv/reactor/start.sls
- ’b1/mystate/status/*’:
- salt://reactor/status.sls
B1 Systems GmbH Salt – Scalable Systems Management 35 / 47
Demo
B1 Systems GmbH Salt – Scalable Systems Management 36 / 47
Use Cases?
load-balancing
job automation
alerting
B1 Systems GmbH Salt – Scalable Systems Management 37 / 47
Salt Cloud
B1 Systems GmbH Salt – Scalable Systems Management 38 / 47
Overview
B1 Systems GmbH Salt – Scalable Systems Management 39 / 47
Providers
Amazon EC2 Provider Example
my-ec2:
driver: ec2
id: ’MYEC2ID’
key: ’adsfrf453fMYKEYasdsadg43’
private_key: /etc/salt/my_key.pem
keyname: my_key
securitygroup: default
minion:
master: saltmaster.example.com
B1 Systems GmbH Salt – Scalable Systems Management 40 / 47
Profiles
profile name
provider
image or template
options for the instance
minion options
B1 Systems GmbH Salt – Scalable Systems Management 41 / 47
Profiles
LXC Profile Example
myfancyprofile:
provider: lxc-host01
lxc_profile:
template: ubuntu
options:
release: trusty
password: test123
B1 Systems GmbH Salt – Scalable Systems Management 42 / 47
Maps
Mapfile
profile1:
- instance_name_1
- instance_name_2
profile2:
- instance_name_3:
grains:
mykey: myvalue
- instance_name_4
Execute Mapfile
salt-cloud -m /path/to/mapfile
B1 Systems GmbH Salt – Scalable Systems Management 43 / 47
Bootstrapping a New Salt Environment
Mapfile
profile1:
- instance_name_1:
make_master: True
minion:
master: myoldmaster
local_master: True
- instance_name_2
- instance_name_3
- instance_name_4
...
B1 Systems GmbH Salt – Scalable Systems Management 44 / 47
Saltify Existing Machines 1/2
Saltify Provider
saltify-all-machines:
driver: saltify
minion:
master: mysaltmaster
Saltify Profile
salt-machine:
provider: saltify-all-machines
ssh_username: root
key_filename: ’/etc/salt/pki/master/ssh/salt-ssh.rsa’
B1 Systems GmbH Salt – Scalable Systems Management 45 / 47
Saltify Existing Machines 2/2
Mapfile
salt-machine:
- first-machine:
ssh_host: 1.2.3.4
- second-machine:
ssh_host: 1.2.3.5
- third-machine:
ssh_host: 1.2.3.6
B1 Systems GmbH Salt – Scalable Systems Management 46 / 47
Thank You!
For more information, refer to info@b1-systems.de
or +49 (0)8457 - 931096
B1 Systems GmbH - Linux/Open Source Consulting,Training, Support & Development

Weitere ähnliche Inhalte

Andere mochten auch

อาชีพ อภิ
อาชีพ อภิอาชีพ อภิ
อาชีพ อภิKris Kizt
 
P m02 inside_selling_managerswrap
P m02 inside_selling_managerswrapP m02 inside_selling_managerswrap
P m02 inside_selling_managerswrapFitira
 
презентация1
презентация1презентация1
презентация1Danil Kozlov
 
Marketing Management
Marketing ManagementMarketing Management
Marketing Managementrsinghkaurav
 
P m02 inside_selling_managerswrap
P m02 inside_selling_managerswrapP m02 inside_selling_managerswrap
P m02 inside_selling_managerswrapFitira
 
Proyecto fredy-jaramillo extenzo
Proyecto fredy-jaramillo extenzoProyecto fredy-jaramillo extenzo
Proyecto fredy-jaramillo extenzoFreddy Jaramillo
 
Cloud Computing mit OpenStack
Cloud Computing mit OpenStackCloud Computing mit OpenStack
Cloud Computing mit OpenStackB1 Systems GmbH
 
Social game의 가까운 미래
Social game의 가까운 미래Social game의 가까운 미래
Social game의 가까운 미래gndolf
 
Evaluation for the music magazine
Evaluation for the music magazineEvaluation for the music magazine
Evaluation for the music magazineLiam Wylie
 
Android vs ios
Android vs iosAndroid vs ios
Android vs iosgndolf
 
Digital Audio/Podcast Assignment
Digital Audio/Podcast AssignmentDigital Audio/Podcast Assignment
Digital Audio/Podcast AssignmentJordan Kelly
 
M02 inside selling_managers_wrap
M02 inside selling_managers_wrapM02 inside selling_managers_wrap
M02 inside selling_managers_wrapFitira
 
Common Fisheries Policy-Short Version
Common Fisheries Policy-Short VersionCommon Fisheries Policy-Short Version
Common Fisheries Policy-Short VersionAmy Durbin
 
Making strategy happen marketplace 2
Making strategy happen   marketplace 2Making strategy happen   marketplace 2
Making strategy happen marketplace 2David Food
 
R00 manual guía call center
R00 manual guía call centerR00 manual guía call center
R00 manual guía call centerFitira
 
Ontwikkelingen in het internationaal arbeidsrecht
Ontwikkelingen in het internationaal arbeidsrechtOntwikkelingen in het internationaal arbeidsrecht
Ontwikkelingen in het internationaal arbeidsrechtVeerle Van Den Eeckhout
 
Anatomyofa twitterrumor
Anatomyofa twitterrumorAnatomyofa twitterrumor
Anatomyofa twitterrumorGnip
 

Andere mochten auch (20)

อาชีพ อภิ
อาชีพ อภิอาชีพ อภิ
อาชีพ อภิ
 
P m02 inside_selling_managerswrap
P m02 inside_selling_managerswrapP m02 inside_selling_managerswrap
P m02 inside_selling_managerswrap
 
презентация1
презентация1презентация1
презентация1
 
Prezentacja1
Prezentacja1Prezentacja1
Prezentacja1
 
House for sale
House for saleHouse for sale
House for sale
 
Reference_Letter
Reference_LetterReference_Letter
Reference_Letter
 
Marketing Management
Marketing ManagementMarketing Management
Marketing Management
 
P m02 inside_selling_managerswrap
P m02 inside_selling_managerswrapP m02 inside_selling_managerswrap
P m02 inside_selling_managerswrap
 
Proyecto fredy-jaramillo extenzo
Proyecto fredy-jaramillo extenzoProyecto fredy-jaramillo extenzo
Proyecto fredy-jaramillo extenzo
 
Cloud Computing mit OpenStack
Cloud Computing mit OpenStackCloud Computing mit OpenStack
Cloud Computing mit OpenStack
 
Social game의 가까운 미래
Social game의 가까운 미래Social game의 가까운 미래
Social game의 가까운 미래
 
Evaluation for the music magazine
Evaluation for the music magazineEvaluation for the music magazine
Evaluation for the music magazine
 
Android vs ios
Android vs iosAndroid vs ios
Android vs ios
 
Digital Audio/Podcast Assignment
Digital Audio/Podcast AssignmentDigital Audio/Podcast Assignment
Digital Audio/Podcast Assignment
 
M02 inside selling_managers_wrap
M02 inside selling_managers_wrapM02 inside selling_managers_wrap
M02 inside selling_managers_wrap
 
Common Fisheries Policy-Short Version
Common Fisheries Policy-Short VersionCommon Fisheries Policy-Short Version
Common Fisheries Policy-Short Version
 
Making strategy happen marketplace 2
Making strategy happen   marketplace 2Making strategy happen   marketplace 2
Making strategy happen marketplace 2
 
R00 manual guía call center
R00 manual guía call centerR00 manual guía call center
R00 manual guía call center
 
Ontwikkelingen in het internationaal arbeidsrecht
Ontwikkelingen in het internationaal arbeidsrechtOntwikkelingen in het internationaal arbeidsrecht
Ontwikkelingen in het internationaal arbeidsrecht
 
Anatomyofa twitterrumor
Anatomyofa twitterrumorAnatomyofa twitterrumor
Anatomyofa twitterrumor
 

Ähnlich wie Salt - A Scalable Systems Management Solution for Datacenters

Creating a dynamic software deployment solution using free/libre software
Creating a dynamic software deployment solution using free/libre softwareCreating a dynamic software deployment solution using free/libre software
Creating a dynamic software deployment solution using free/libre softwareB1 Systems GmbH
 
OSDC 2019 | Running backups with Ceph-to-Ceph by Michael Raabe
OSDC 2019 | Running backups with Ceph-to-Ceph by Michael RaabeOSDC 2019 | Running backups with Ceph-to-Ceph by Michael Raabe
OSDC 2019 | Running backups with Ceph-to-Ceph by Michael RaabeNETWAYS
 
End of the Road - Facing Current Scaling Limits within OpenStack
End of the Road - Facing Current Scaling Limits within OpenStackEnd of the Road - Facing Current Scaling Limits within OpenStack
End of the Road - Facing Current Scaling Limits within OpenStackB1 Systems GmbH
 
Chef arista devops days a'dam 2015
Chef arista devops days a'dam 2015Chef arista devops days a'dam 2015
Chef arista devops days a'dam 2015Edwin Beekman
 
Cloud-Native Builds & Deployments in Bitbucket Pipelines
Cloud-Native Builds & Deployments in Bitbucket PipelinesCloud-Native Builds & Deployments in Bitbucket Pipelines
Cloud-Native Builds & Deployments in Bitbucket PipelinesAtlassian
 
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltStack
 
Linux Desktop Automation
Linux Desktop AutomationLinux Desktop Automation
Linux Desktop AutomationRui Lapa
 
Jenkins to Gitlab - Intelligent Build-Pipelines
Jenkins to Gitlab - Intelligent Build-PipelinesJenkins to Gitlab - Intelligent Build-Pipelines
Jenkins to Gitlab - Intelligent Build-PipelinesChristian Münch
 
Modern CI/CD in the microservices world with Kubernetes
Modern CI/CD in the microservices world with KubernetesModern CI/CD in the microservices world with Kubernetes
Modern CI/CD in the microservices world with KubernetesMikalai Alimenkou
 
OSDC 2016 - Hello Redfish, goodbye IPMI by Werner Fischer
OSDC 2016 - Hello Redfish, goodbye IPMI by Werner FischerOSDC 2016 - Hello Redfish, goodbye IPMI by Werner Fischer
OSDC 2016 - Hello Redfish, goodbye IPMI by Werner FischerNETWAYS
 
Webinar slides - ClusterControl 1.2.11: with support for MariaDB’s MaxScale a...
Webinar slides - ClusterControl 1.2.11: with support for MariaDB’s MaxScale a...Webinar slides - ClusterControl 1.2.11: with support for MariaDB’s MaxScale a...
Webinar slides - ClusterControl 1.2.11: with support for MariaDB’s MaxScale a...Severalnines
 
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...Sharon James
 
Chicago Docker Meetup Presentation - Mediafly
Chicago Docker Meetup Presentation - MediaflyChicago Docker Meetup Presentation - Mediafly
Chicago Docker Meetup Presentation - MediaflyMediafly
 
UKOUG Tech17 - Stay Secure With Oracle Solaris
UKOUG Tech17 - Stay Secure With Oracle SolarisUKOUG Tech17 - Stay Secure With Oracle Solaris
UKOUG Tech17 - Stay Secure With Oracle SolarisJomaSoft
 
ClickHouse on Kubernetes, by Alexander Zaitsev, Altinity CTO
ClickHouse on Kubernetes, by Alexander Zaitsev, Altinity CTOClickHouse on Kubernetes, by Alexander Zaitsev, Altinity CTO
ClickHouse on Kubernetes, by Alexander Zaitsev, Altinity CTOAltinity Ltd
 

Ähnlich wie Salt - A Scalable Systems Management Solution for Datacenters (20)

Creating a dynamic software deployment solution using free/libre software
Creating a dynamic software deployment solution using free/libre softwareCreating a dynamic software deployment solution using free/libre software
Creating a dynamic software deployment solution using free/libre software
 
OSDC 2019 | Running backups with Ceph-to-Ceph by Michael Raabe
OSDC 2019 | Running backups with Ceph-to-Ceph by Michael RaabeOSDC 2019 | Running backups with Ceph-to-Ceph by Michael Raabe
OSDC 2019 | Running backups with Ceph-to-Ceph by Michael Raabe
 
SCOM Tips and Tricks
SCOM Tips and TricksSCOM Tips and Tricks
SCOM Tips and Tricks
 
End of the Road - Facing Current Scaling Limits within OpenStack
End of the Road - Facing Current Scaling Limits within OpenStackEnd of the Road - Facing Current Scaling Limits within OpenStack
End of the Road - Facing Current Scaling Limits within OpenStack
 
Chef arista devops days a'dam 2015
Chef arista devops days a'dam 2015Chef arista devops days a'dam 2015
Chef arista devops days a'dam 2015
 
The Domino 10 RHEL 7 Primer
The Domino 10 RHEL 7 PrimerThe Domino 10 RHEL 7 Primer
The Domino 10 RHEL 7 Primer
 
Samba
SambaSamba
Samba
 
Cloud-Native Builds & Deployments in Bitbucket Pipelines
Cloud-Native Builds & Deployments in Bitbucket PipelinesCloud-Native Builds & Deployments in Bitbucket Pipelines
Cloud-Native Builds & Deployments in Bitbucket Pipelines
 
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
 
Pipelines!
Pipelines! Pipelines!
Pipelines!
 
Linux Desktop Automation
Linux Desktop AutomationLinux Desktop Automation
Linux Desktop Automation
 
Jenkins to Gitlab - Intelligent Build-Pipelines
Jenkins to Gitlab - Intelligent Build-PipelinesJenkins to Gitlab - Intelligent Build-Pipelines
Jenkins to Gitlab - Intelligent Build-Pipelines
 
Modern CI/CD in the microservices world with Kubernetes
Modern CI/CD in the microservices world with KubernetesModern CI/CD in the microservices world with Kubernetes
Modern CI/CD in the microservices world with Kubernetes
 
OSDC 2016 - Hello Redfish, goodbye IPMI by Werner Fischer
OSDC 2016 - Hello Redfish, goodbye IPMI by Werner FischerOSDC 2016 - Hello Redfish, goodbye IPMI by Werner Fischer
OSDC 2016 - Hello Redfish, goodbye IPMI by Werner Fischer
 
120240755 pppipcs
120240755 pppipcs120240755 pppipcs
120240755 pppipcs
 
Webinar slides - ClusterControl 1.2.11: with support for MariaDB’s MaxScale a...
Webinar slides - ClusterControl 1.2.11: with support for MariaDB’s MaxScale a...Webinar slides - ClusterControl 1.2.11: with support for MariaDB’s MaxScale a...
Webinar slides - ClusterControl 1.2.11: with support for MariaDB’s MaxScale a...
 
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
 
Chicago Docker Meetup Presentation - Mediafly
Chicago Docker Meetup Presentation - MediaflyChicago Docker Meetup Presentation - Mediafly
Chicago Docker Meetup Presentation - Mediafly
 
UKOUG Tech17 - Stay Secure With Oracle Solaris
UKOUG Tech17 - Stay Secure With Oracle SolarisUKOUG Tech17 - Stay Secure With Oracle Solaris
UKOUG Tech17 - Stay Secure With Oracle Solaris
 
ClickHouse on Kubernetes, by Alexander Zaitsev, Altinity CTO
ClickHouse on Kubernetes, by Alexander Zaitsev, Altinity CTOClickHouse on Kubernetes, by Alexander Zaitsev, Altinity CTO
ClickHouse on Kubernetes, by Alexander Zaitsev, Altinity CTO
 

Mehr von B1 Systems GmbH

Ubuntu-/Debian-Packaging
Ubuntu-/Debian-PackagingUbuntu-/Debian-Packaging
Ubuntu-/Debian-PackagingB1 Systems GmbH
 
Ubuntu-Server als Backup- und Fileserver betreiben
Ubuntu-Server als Backup- und Fileserver betreibenUbuntu-Server als Backup- und Fileserver betreiben
Ubuntu-Server als Backup- und Fileserver betreibenB1 Systems GmbH
 
Android mit Google Befreiung, PlayStore Apps im eigenen Repo
Android mit Google Befreiung, PlayStore Apps im eigenen RepoAndroid mit Google Befreiung, PlayStore Apps im eigenen Repo
Android mit Google Befreiung, PlayStore Apps im eigenen RepoB1 Systems GmbH
 
Ambilight, Raspberry Pi, Ubuntu & Hyperion
Ambilight, Raspberry Pi, Ubuntu & HyperionAmbilight, Raspberry Pi, Ubuntu & Hyperion
Ambilight, Raspberry Pi, Ubuntu & HyperionB1 Systems GmbH
 
B1 Thin Client Management bei der Fraport AG
B1 Thin Client Management bei der Fraport AGB1 Thin Client Management bei der Fraport AG
B1 Thin Client Management bei der Fraport AGB1 Systems GmbH
 
Systemmanagement mit Puppet und Foreman
Systemmanagement mit Puppet und ForemanSystemmanagement mit Puppet und Foreman
Systemmanagement mit Puppet und ForemanB1 Systems GmbH
 
Ausrollen von Multi-Tier-Applikationen mit Docker
Ausrollen von Multi-Tier-Applikationen mit DockerAusrollen von Multi-Tier-Applikationen mit Docker
Ausrollen von Multi-Tier-Applikationen mit DockerB1 Systems GmbH
 
Bits and Bytes im Flow - Netzwerk im Wandel der Zeit
Bits and Bytes im Flow - Netzwerk im Wandel der ZeitBits and Bytes im Flow - Netzwerk im Wandel der Zeit
Bits and Bytes im Flow - Netzwerk im Wandel der ZeitB1 Systems GmbH
 
OpenStack und Heat - Standardisierte Test- und Entwicklungsumgebungen
OpenStack und Heat - Standardisierte Test- und EntwicklungsumgebungenOpenStack und Heat - Standardisierte Test- und Entwicklungsumgebungen
OpenStack und Heat - Standardisierte Test- und EntwicklungsumgebungenB1 Systems GmbH
 
E-Mail-Verschlüsselung mit GnuPG
E-Mail-Verschlüsselung mit GnuPGE-Mail-Verschlüsselung mit GnuPG
E-Mail-Verschlüsselung mit GnuPGB1 Systems GmbH
 
Some Bashing II - Mit der Kommandozeile Abläufe automatisieren
Some Bashing II - Mit der Kommandozeile Abläufe automatisierenSome Bashing II - Mit der Kommandozeile Abläufe automatisieren
Some Bashing II - Mit der Kommandozeile Abläufe automatisierenB1 Systems GmbH
 
Entwicklungsumgebungen mit Vagrant
Entwicklungsumgebungen mit VagrantEntwicklungsumgebungen mit Vagrant
Entwicklungsumgebungen mit VagrantB1 Systems GmbH
 
Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...
Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...
Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...B1 Systems GmbH
 
Btrfs - das Dateisystem der Zukunft?
Btrfs - das Dateisystem der Zukunft?Btrfs - das Dateisystem der Zukunft?
Btrfs - das Dateisystem der Zukunft?B1 Systems GmbH
 
OpenStack Betrieb & Support - 5 Jahre OpenStack Managed Service bei der SAP SE
OpenStack Betrieb & Support - 5 Jahre OpenStack Managed Service bei der SAP SEOpenStack Betrieb & Support - 5 Jahre OpenStack Managed Service bei der SAP SE
OpenStack Betrieb & Support - 5 Jahre OpenStack Managed Service bei der SAP SEB1 Systems GmbH
 
Softwarepaketierung und Continuous Integration bei Airbus Defence and Space
Softwarepaketierung und Continuous Integration bei Airbus Defence and SpaceSoftwarepaketierung und Continuous Integration bei Airbus Defence and Space
Softwarepaketierung und Continuous Integration bei Airbus Defence and SpaceB1 Systems GmbH
 
Ceph - Software Defined Storage für die Cloud
Ceph - Software Defined Storage für die CloudCeph - Software Defined Storage für die Cloud
Ceph - Software Defined Storage für die CloudB1 Systems GmbH
 
Migrating deployment processes and Continuous Integration at SAP SE
Migrating deployment processes and Continuous Integration at SAP SEMigrating deployment processes and Continuous Integration at SAP SE
Migrating deployment processes and Continuous Integration at SAP SEB1 Systems GmbH
 
Openstack im unternehmerischen Einsatz
Openstack im unternehmerischen EinsatzOpenstack im unternehmerischen Einsatz
Openstack im unternehmerischen EinsatzB1 Systems GmbH
 

Mehr von B1 Systems GmbH (20)

Ubuntu-/Debian-Packaging
Ubuntu-/Debian-PackagingUbuntu-/Debian-Packaging
Ubuntu-/Debian-Packaging
 
Ubuntu-Server als Backup- und Fileserver betreiben
Ubuntu-Server als Backup- und Fileserver betreibenUbuntu-Server als Backup- und Fileserver betreiben
Ubuntu-Server als Backup- und Fileserver betreiben
 
Android mit Google Befreiung, PlayStore Apps im eigenen Repo
Android mit Google Befreiung, PlayStore Apps im eigenen RepoAndroid mit Google Befreiung, PlayStore Apps im eigenen Repo
Android mit Google Befreiung, PlayStore Apps im eigenen Repo
 
Ambilight, Raspberry Pi, Ubuntu & Hyperion
Ambilight, Raspberry Pi, Ubuntu & HyperionAmbilight, Raspberry Pi, Ubuntu & Hyperion
Ambilight, Raspberry Pi, Ubuntu & Hyperion
 
B1 Thin Client Management bei der Fraport AG
B1 Thin Client Management bei der Fraport AGB1 Thin Client Management bei der Fraport AG
B1 Thin Client Management bei der Fraport AG
 
Systemmanagement mit Puppet und Foreman
Systemmanagement mit Puppet und ForemanSystemmanagement mit Puppet und Foreman
Systemmanagement mit Puppet und Foreman
 
Ausrollen von Multi-Tier-Applikationen mit Docker
Ausrollen von Multi-Tier-Applikationen mit DockerAusrollen von Multi-Tier-Applikationen mit Docker
Ausrollen von Multi-Tier-Applikationen mit Docker
 
Bits and Bytes im Flow - Netzwerk im Wandel der Zeit
Bits and Bytes im Flow - Netzwerk im Wandel der ZeitBits and Bytes im Flow - Netzwerk im Wandel der Zeit
Bits and Bytes im Flow - Netzwerk im Wandel der Zeit
 
OpenStack und Heat - Standardisierte Test- und Entwicklungsumgebungen
OpenStack und Heat - Standardisierte Test- und EntwicklungsumgebungenOpenStack und Heat - Standardisierte Test- und Entwicklungsumgebungen
OpenStack und Heat - Standardisierte Test- und Entwicklungsumgebungen
 
systemd im Alltag
systemd im Alltagsystemd im Alltag
systemd im Alltag
 
E-Mail-Verschlüsselung mit GnuPG
E-Mail-Verschlüsselung mit GnuPGE-Mail-Verschlüsselung mit GnuPG
E-Mail-Verschlüsselung mit GnuPG
 
Some Bashing II - Mit der Kommandozeile Abläufe automatisieren
Some Bashing II - Mit der Kommandozeile Abläufe automatisierenSome Bashing II - Mit der Kommandozeile Abläufe automatisieren
Some Bashing II - Mit der Kommandozeile Abläufe automatisieren
 
Entwicklungsumgebungen mit Vagrant
Entwicklungsumgebungen mit VagrantEntwicklungsumgebungen mit Vagrant
Entwicklungsumgebungen mit Vagrant
 
Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...
Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...
Docker und Virtualisierung - Container Use Cases für eine isolierte, performa...
 
Btrfs - das Dateisystem der Zukunft?
Btrfs - das Dateisystem der Zukunft?Btrfs - das Dateisystem der Zukunft?
Btrfs - das Dateisystem der Zukunft?
 
OpenStack Betrieb & Support - 5 Jahre OpenStack Managed Service bei der SAP SE
OpenStack Betrieb & Support - 5 Jahre OpenStack Managed Service bei der SAP SEOpenStack Betrieb & Support - 5 Jahre OpenStack Managed Service bei der SAP SE
OpenStack Betrieb & Support - 5 Jahre OpenStack Managed Service bei der SAP SE
 
Softwarepaketierung und Continuous Integration bei Airbus Defence and Space
Softwarepaketierung und Continuous Integration bei Airbus Defence and SpaceSoftwarepaketierung und Continuous Integration bei Airbus Defence and Space
Softwarepaketierung und Continuous Integration bei Airbus Defence and Space
 
Ceph - Software Defined Storage für die Cloud
Ceph - Software Defined Storage für die CloudCeph - Software Defined Storage für die Cloud
Ceph - Software Defined Storage für die Cloud
 
Migrating deployment processes and Continuous Integration at SAP SE
Migrating deployment processes and Continuous Integration at SAP SEMigrating deployment processes and Continuous Integration at SAP SE
Migrating deployment processes and Continuous Integration at SAP SE
 
Openstack im unternehmerischen Einsatz
Openstack im unternehmerischen EinsatzOpenstack im unternehmerischen Einsatz
Openstack im unternehmerischen Einsatz
 

Kürzlich hochgeladen

『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书rnrncn29
 
ETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptxETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptxNIMMANAGANTI RAMAKRISHNA
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书rnrncn29
 
Unidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxUnidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxmibuzondetrabajo
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119APNIC
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxDyna Gilbert
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 
TRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxTRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxAndrieCagasanAkio
 
Company Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxCompany Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxMario
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 

Kürzlich hochgeladen (11)

『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
 
ETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptxETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptx
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
 
Unidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxUnidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptx
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 
TRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxTRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptx
 
Company Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxCompany Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptx
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 

Salt - A Scalable Systems Management Solution for Datacenters

  • 1. Salt – A Scalable Systems Management Solution for Datacenters Open Source Data Center Conference April 26-28, 2016 Sebastian Meyer Linux Consultant & Trainer B1 Systems GmbH meyer@b1-systems.de B1 Systems GmbH - Linux/Open Source Consulting,Training, Support & Development
  • 2. Introducing B1 Systems founded in 2004 operating both nationally and internationally nearly 100 employees provider for IBM, SUSE, Oracle & HP vendor-independent (hardware and software) focus: consulting support development training operations solutions B1 Systems GmbH Salt – Scalable Systems Management 2 / 47
  • 3. Areas of Expertise B1 Systems GmbH Salt – Scalable Systems Management 3 / 47
  • 4. Salt – Introduction B1 Systems GmbH Salt – Scalable Systems Management 4 / 47
  • 5. Yet Another Systems Management Solution? takes inspiration from Puppet, Chef or Ansible focuses on the entire system life cycle easily scalable to a few thousand systems convenient and easy to learn configuration management and remote execution B1 Systems GmbH Salt – Scalable Systems Management 5 / 47
  • 6. Salt – Concept B1 Systems GmbH Salt – Scalable Systems Management 6 / 47
  • 7. Master & Minions B1 Systems GmbH Salt – Scalable Systems Management 7 / 47
  • 8. Scalability: Masters, Syndics & Minions B1 Systems GmbH Salt – Scalable Systems Management 8 / 47
  • 9. High Availability: Multiple Masters& Minions B1 Systems GmbH Salt – Scalable Systems Management 9 / 47
  • 10. Salt Modes minions pull from master master pushes to Minions minions apply states locally master applies states on minions via SSH B1 Systems GmbH Salt – Scalable Systems Management 10 / 47
  • 11. Remote Execution System B1 Systems GmbH Salt – Scalable Systems Management 11 / 47
  • 12. Salt Command B1 Systems GmbH Salt – Scalable Systems Management 12 / 47
  • 13. Grains B1 Systems GmbH Salt – Scalable Systems Management 13 / 47
  • 14. Configuration Management B1 Systems GmbH Salt – Scalable Systems Management 14 / 47
  • 15. States ID: module.function: - name: name - argument1: value - argument2: - value1 - value2 B1 Systems GmbH Salt – Scalable Systems Management 15 / 47
  • 16. Top File base: ’*’: - monitoring - ssh - syslog ’*lan*’: - ntp.lan ’*dmz*’: - ntp.dmz - firewall all servers: monitoring ssh config syslog servers in LAN: ntp config servers in DMZ: ntp config firewall B1 Systems GmbH Salt – Scalable Systems Management 16 / 47
  • 17. Pillars B1 Systems GmbH Salt – Scalable Systems Management 17 / 47
  • 18. Pillar Data Pillar Example ntp: {% if grains[’id’].startswith(’myntpserver’) %} ntpservers: ["0.us.pool.ntp.org","1.us.pool.ntp.org"] comment: ’’ {% else %} ntpservers: ["10.1.1.20","10.1.1.21"] comment: ’myinternalservers’ {% endif %} Source: https://github.com/saltstack-formulas/ntp-formula/blob/master/pillar.example B1 Systems GmbH Salt – Scalable Systems Management 18 / 47
  • 19. Pillars and States States top.sls base: ’*’: - monitoring - ssh - syslog - ntp ’*dmz*’: - firewall Pillar top.sls base: ’*’: - monitoring - ssh - syslog ’*lan*’: - ntp.lan ’*dmz*’: - ntp.dmz - firewall B1 Systems GmbH Salt – Scalable Systems Management 19 / 47
  • 20. Deploying the State Master pushes to minions salt ’*’ state.highstate salt ’*’ state.sls mystate Minions pull from master salt-call state.highstate salt-call state.sls mystate B1 Systems GmbH Salt – Scalable Systems Management 20 / 47
  • 21. Reusing States: Formulas reusing existing code roughly the same as Puppet modules/Ansible roles collection of States and files github.com/saltstack-formulas/ for "official" formulas B1 Systems GmbH Salt – Scalable Systems Management 21 / 47
  • 22. Using Formulas directly from VCS or local extendable via include configurable via Pillar data variables mapped via Jinja map requirements across Formulas possible B1 Systems GmbH Salt – Scalable Systems Management 22 / 47
  • 23. Demo B1 Systems GmbH Salt – Scalable Systems Management 23 / 47
  • 24. Returners salt ’*’ disk.usage --return redis_return B1 Systems GmbH Salt – Scalable Systems Management 24 / 47
  • 25. Salts Event Driven Infrastructure B1 Systems GmbH Salt – Scalable Systems Management 25 / 47
  • 26. Overview actions trigger events events are communicated via the event bus reactors execute trigger actions responding to events B1 Systems GmbH Salt – Scalable Systems Management 26 / 47
  • 27. Event Bus B1 Systems GmbH Salt – Scalable Systems Management 27 / 47
  • 28. Actions & Events master# salt ’salt-minion-01’ disk.percent /srv salt-minion-01: 11% B1 Systems GmbH Salt – Scalable Systems Management 28 / 47
  • 29. Actions & Events 20160422163250339970 { [...] } salt/job/20160422163250339970/new { "_stamp": "2016-04-22T14:32:50.340357", "arg": [ "/srv" ], "fun": "disk.percent", "jid": "20160422163250339970", "minions": [ "salt-minion-01" ], "tgt": "salt-minion-01", "tgt_type": "glob", "user": "root" } B1 Systems GmbH Salt – Scalable Systems Management 29 / 47
  • 30. Actions & Events salt/job/20160422163250339970/ret/salt-minion-01 { "_stamp": "2016-04-22T14:32:50.536877", "cmd": "_return", "fun": "disk.percent", "fun_args": [ "/srv" ], "id": "salt-minion-01", "jid": "20160422163250339970", "retcode": 0, "return": "11%", "success": true } B1 Systems GmbH Salt – Scalable Systems Management 30 / 47
  • 31. Events in a State b1/mystate/status/update: event.send: - data: status: "Installation done!" B1 Systems GmbH Salt – Scalable Systems Management 31 / 47
  • 32. Beacons hook into system on minion create events inotify, diskusage, load, journald ... B1 Systems GmbH Salt – Scalable Systems Management 32 / 47
  • 33. Beacons - Example inotify Beacon beacons: inotify: /etc/motd: mask: - modify B1 Systems GmbH Salt – Scalable Systems Management 33 / 47
  • 34. Reactors B1 Systems GmbH Salt – Scalable Systems Management 34 / 47
  • 35. Calling Reactors on Events Reactor Example reactor: - ’salt/minion/*/start’: - /srv/reactor/start.sls - ’b1/mystate/status/*’: - salt://reactor/status.sls B1 Systems GmbH Salt – Scalable Systems Management 35 / 47
  • 36. Demo B1 Systems GmbH Salt – Scalable Systems Management 36 / 47
  • 37. Use Cases? load-balancing job automation alerting B1 Systems GmbH Salt – Scalable Systems Management 37 / 47
  • 38. Salt Cloud B1 Systems GmbH Salt – Scalable Systems Management 38 / 47
  • 39. Overview B1 Systems GmbH Salt – Scalable Systems Management 39 / 47
  • 40. Providers Amazon EC2 Provider Example my-ec2: driver: ec2 id: ’MYEC2ID’ key: ’adsfrf453fMYKEYasdsadg43’ private_key: /etc/salt/my_key.pem keyname: my_key securitygroup: default minion: master: saltmaster.example.com B1 Systems GmbH Salt – Scalable Systems Management 40 / 47
  • 41. Profiles profile name provider image or template options for the instance minion options B1 Systems GmbH Salt – Scalable Systems Management 41 / 47
  • 42. Profiles LXC Profile Example myfancyprofile: provider: lxc-host01 lxc_profile: template: ubuntu options: release: trusty password: test123 B1 Systems GmbH Salt – Scalable Systems Management 42 / 47
  • 43. Maps Mapfile profile1: - instance_name_1 - instance_name_2 profile2: - instance_name_3: grains: mykey: myvalue - instance_name_4 Execute Mapfile salt-cloud -m /path/to/mapfile B1 Systems GmbH Salt – Scalable Systems Management 43 / 47
  • 44. Bootstrapping a New Salt Environment Mapfile profile1: - instance_name_1: make_master: True minion: master: myoldmaster local_master: True - instance_name_2 - instance_name_3 - instance_name_4 ... B1 Systems GmbH Salt – Scalable Systems Management 44 / 47
  • 45. Saltify Existing Machines 1/2 Saltify Provider saltify-all-machines: driver: saltify minion: master: mysaltmaster Saltify Profile salt-machine: provider: saltify-all-machines ssh_username: root key_filename: ’/etc/salt/pki/master/ssh/salt-ssh.rsa’ B1 Systems GmbH Salt – Scalable Systems Management 45 / 47
  • 46. Saltify Existing Machines 2/2 Mapfile salt-machine: - first-machine: ssh_host: 1.2.3.4 - second-machine: ssh_host: 1.2.3.5 - third-machine: ssh_host: 1.2.3.6 B1 Systems GmbH Salt – Scalable Systems Management 46 / 47
  • 47. Thank You! For more information, refer to info@b1-systems.de or +49 (0)8457 - 931096 B1 Systems GmbH - Linux/Open Source Consulting,Training, Support & Development