SlideShare a Scribd company logo
1 of 20
Download to read offline
Salt Stack
Subhankar Sengupta
My Intro
● SysOps guy since 2002, started in a typical startup, a web-hosting company and daily firefight
● Landed up in JP Morgan, Sabre Inc etc.
● Started JBUG –Bangalore (Jboss User Group) in 2010
● Why CM? Don’t want to be harassed admin
What does Salt stack do?
Simple things
1) Configuration Mgmt
● user
● package
● file
● service etc
2) Remote execution
When you install Saltstack you get both
About the project
● Open Source
● Written in Python
● Uses YAML for cm syntax, called salt states
● Very fast communication system so rapidly scales
● Most Important
○ Viable things are fundamentally SIMPLE
○ Salt is simple
Some vocabulary
● The master is the Salt server
● The minions are the target machines that will be provisioned
● Each minion has an unique ID
● Asynchronous communication
● SALT’s configuration files are called states, easy to read and understand
● Multiple states can be applied to each minion
● Modules are collection of function that could be run from Salt CLI
● Information collected by minion about the system is Grain
● Grain- Information collected by minion about the system
● You could write custom grain
Shows which grains
are defined on a host
Show the
value of all
grains on a
given host
Installation is a cake walk
kkk
Packages
● Alternatively installation could be done using RPM or Apt
● Three Packages
○ Salt - (In all nodes)
○ Salt-minion - (In all nodes)
○ Salt-master- (Only in master server)
Check it
How it works?
Pub-Sub
Pub
Salt Master
Minion-FQDN- 1 Minion-FQDN- 2
How it works?
● When master process started it creates a socket
● When minion process starts it connects to that master socket and looks for
event
● Master publishes event and minion subscribes to listen to that, hence Pub-
Sub
● This communication is done by a high speed channel
● ZeroMQ
● This communication channel is secure
● Minion and master exchange keys using AES encryption
Remote Execution
● usr/bin/salt- salt <minion-id> <module>
● Salt comes with a rich set of modules
● You could write your own in python
● Module has access to salt data structure
● salt * sys.doc test.ping (Help Files)
Changing password
Some more examples
Run an arbitrary shell command
Or a module
Salt Cloud
● Started as a separate project to use salt to manage cloud VMs
● Starting with the 2014.1.0 release of Salt, Salt Cloud is built into Salt
● Uses python-libcloud
●
AWS
XYZ
Provider Profiles
Again Vocabulary
Cloud provider is used to specify basic authentication
information to access a cloud provider.
Again Vocabulary-2
Cloud profiles is used to specify specific virtual machine
requirements, such as size, image, and location.
Q and A
Drop an email:
subhankar.aws@gmail.com

More Related Content

What's hot

Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...
Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...
Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...SaltStack
 
On MongoDB backup
On MongoDB backupOn MongoDB backup
On MongoDB backupWilliam Yeh
 
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon Garcia
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon GarciaOpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon Garcia
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon GarciaOpenNebula Project
 
Linux host orchestration with Foreman, Puppet and Gitlab
Linux host orchestration with Foreman, Puppet and GitlabLinux host orchestration with Foreman, Puppet and Gitlab
Linux host orchestration with Foreman, Puppet and GitlabBen Tullis
 
OpenNebula, the foreman and CentOS play nice, too
OpenNebula, the foreman and CentOS play nice, tooOpenNebula, the foreman and CentOS play nice, too
OpenNebula, the foreman and CentOS play nice, tooinovex GmbH
 
Backup, Restore, and Disaster Recovery
Backup, Restore, and Disaster RecoveryBackup, Restore, and Disaster Recovery
Backup, Restore, and Disaster RecoveryMongoDB
 
Deploying Foreman in Enterprise Environments
Deploying Foreman in Enterprise EnvironmentsDeploying Foreman in Enterprise Environments
Deploying Foreman in Enterprise Environmentsinovex GmbH
 
High performance json- postgre sql vs. mongodb
High performance json- postgre sql vs. mongodbHigh performance json- postgre sql vs. mongodb
High performance json- postgre sql vs. mongodbWei Shan Ang
 
pgDay Asia 2016 - Swapping Pacemaker-Corosync for repmgr (1)
pgDay Asia 2016 - Swapping Pacemaker-Corosync for repmgr (1)pgDay Asia 2016 - Swapping Pacemaker-Corosync for repmgr (1)
pgDay Asia 2016 - Swapping Pacemaker-Corosync for repmgr (1)Wei Shan Ang
 
Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02Yazz Atlas
 
Foreman presentation
Foreman presentationForeman presentation
Foreman presentationGlen Ogilvie
 
Continuous Deployment with Jenkins and Salt
Continuous Deployment with Jenkins and SaltContinuous Deployment with Jenkins and Salt
Continuous Deployment with Jenkins and SaltAnirban Saha
 
High availability for puppet - 2016
High availability for puppet - 2016High availability for puppet - 2016
High availability for puppet - 2016Zack Smith
 
PXEless Discovery with Foreman
PXEless Discovery with ForemanPXEless Discovery with Foreman
PXEless Discovery with ForemanStephen Benjamin
 
Linuxday.at - Lightning Talk
Linuxday.at - Lightning TalkLinuxday.at - Lightning Talk
Linuxday.at - Lightning TalkJan Gehring
 
Foreman - Advanced use cases - Timo Goebel
Foreman - Advanced use cases - Timo GoebelForeman - Advanced use cases - Timo Goebel
Foreman - Advanced use cases - Timo GoebelNETWAYS
 
Setup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platformSetup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platformAjeet Singh
 
Chef, Vagrant, and VirtualBox
Chef, Vagrant, and VirtualBoxChef, Vagrant, and VirtualBox
Chef, Vagrant, and VirtualBoxJason Vanderhoof
 
Refactoring Katello Installer modules - Ewoud Kohl van Wijngaarden
Refactoring Katello Installer modules - Ewoud Kohl van WijngaardenRefactoring Katello Installer modules - Ewoud Kohl van Wijngaarden
Refactoring Katello Installer modules - Ewoud Kohl van WijngaardenNETWAYS
 

What's hot (20)

Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...
Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...
Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...
 
On MongoDB backup
On MongoDB backupOn MongoDB backup
On MongoDB backup
 
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon Garcia
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon GarciaOpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon Garcia
OpenNebulaConf2015 1.09.02 Installgems Add-on - Alvaro Simon Garcia
 
Linux host orchestration with Foreman, Puppet and Gitlab
Linux host orchestration with Foreman, Puppet and GitlabLinux host orchestration with Foreman, Puppet and Gitlab
Linux host orchestration with Foreman, Puppet and Gitlab
 
OpenNebula, the foreman and CentOS play nice, too
OpenNebula, the foreman and CentOS play nice, tooOpenNebula, the foreman and CentOS play nice, too
OpenNebula, the foreman and CentOS play nice, too
 
Backup, Restore, and Disaster Recovery
Backup, Restore, and Disaster RecoveryBackup, Restore, and Disaster Recovery
Backup, Restore, and Disaster Recovery
 
Deploying Foreman in Enterprise Environments
Deploying Foreman in Enterprise EnvironmentsDeploying Foreman in Enterprise Environments
Deploying Foreman in Enterprise Environments
 
High performance json- postgre sql vs. mongodb
High performance json- postgre sql vs. mongodbHigh performance json- postgre sql vs. mongodb
High performance json- postgre sql vs. mongodb
 
pgDay Asia 2016 - Swapping Pacemaker-Corosync for repmgr (1)
pgDay Asia 2016 - Swapping Pacemaker-Corosync for repmgr (1)pgDay Asia 2016 - Swapping Pacemaker-Corosync for repmgr (1)
pgDay Asia 2016 - Swapping Pacemaker-Corosync for repmgr (1)
 
Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02
 
Foreman presentation
Foreman presentationForeman presentation
Foreman presentation
 
Continuous Deployment with Jenkins and Salt
Continuous Deployment with Jenkins and SaltContinuous Deployment with Jenkins and Salt
Continuous Deployment with Jenkins and Salt
 
High availability for puppet - 2016
High availability for puppet - 2016High availability for puppet - 2016
High availability for puppet - 2016
 
PXEless Discovery with Foreman
PXEless Discovery with ForemanPXEless Discovery with Foreman
PXEless Discovery with Foreman
 
Linuxday.at - Lightning Talk
Linuxday.at - Lightning TalkLinuxday.at - Lightning Talk
Linuxday.at - Lightning Talk
 
Foreman - Advanced use cases - Timo Goebel
Foreman - Advanced use cases - Timo GoebelForeman - Advanced use cases - Timo Goebel
Foreman - Advanced use cases - Timo Goebel
 
Setup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platformSetup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platform
 
Chef, Vagrant, and VirtualBox
Chef, Vagrant, and VirtualBoxChef, Vagrant, and VirtualBox
Chef, Vagrant, and VirtualBox
 
Refactoring Katello Installer modules - Ewoud Kohl van Wijngaarden
Refactoring Katello Installer modules - Ewoud Kohl van WijngaardenRefactoring Katello Installer modules - Ewoud Kohl van Wijngaarden
Refactoring Katello Installer modules - Ewoud Kohl van Wijngaarden
 
Salt stack
Salt stackSalt stack
Salt stack
 

Viewers also liked

Getting started with salt stack
Getting started with salt stackGetting started with salt stack
Getting started with salt stackSuresh Paulraj
 
Security China 2016 Impression
Security China 2016 ImpressionSecurity China 2016 Impression
Security China 2016 ImpressionAnn He
 
Medienethik - Präsentation von Philippe Wampfler
Medienethik - Präsentation von Philippe WampflerMedienethik - Präsentation von Philippe Wampfler
Medienethik - Präsentation von Philippe WampflerPhilippe Wampfler
 
ATOSS Software AG Geschäftsbericht 2015
ATOSS Software AG Geschäftsbericht 2015ATOSS Software AG Geschäftsbericht 2015
ATOSS Software AG Geschäftsbericht 2015ATOSS Software AG
 
Presentacion conclusiones grupo 1
Presentacion conclusiones grupo 1Presentacion conclusiones grupo 1
Presentacion conclusiones grupo 1SaresAragon
 
Wf. fitness
Wf. fitnessWf. fitness
Wf. fitnessRollef
 
Protectia attorneys at law ::: Corporate presentation
Protectia attorneys at law ::: Corporate presentationProtectia attorneys at law ::: Corporate presentation
Protectia attorneys at law ::: Corporate presentationProtectia Patentes y Marcas
 
Mobile today-tomorrow-201006-aberla
Mobile today-tomorrow-201006-aberlaMobile today-tomorrow-201006-aberla
Mobile today-tomorrow-201006-aberlaNetcetera
 
Manual para usuarios urkund 2015
Manual para usuarios urkund 2015Manual para usuarios urkund 2015
Manual para usuarios urkund 2015javierelpapi
 
Präsentation Dichtheitsprüfung - Maximilian Ortner
Präsentation Dichtheitsprüfung - Maximilian OrtnerPräsentation Dichtheitsprüfung - Maximilian Ortner
Präsentation Dichtheitsprüfung - Maximilian Ortnersrb-offsetdruck
 
Building a Scalable and Modern Infrastructure at CARFAX
Building a Scalable and Modern Infrastructure at CARFAXBuilding a Scalable and Modern Infrastructure at CARFAX
Building a Scalable and Modern Infrastructure at CARFAXMongoDB
 

Viewers also liked (20)

Lets talk dns
Lets talk dnsLets talk dns
Lets talk dns
 
Getting started with salt stack
Getting started with salt stackGetting started with salt stack
Getting started with salt stack
 
Security China 2016 Impression
Security China 2016 ImpressionSecurity China 2016 Impression
Security China 2016 Impression
 
Medienethik - Präsentation von Philippe Wampfler
Medienethik - Präsentation von Philippe WampflerMedienethik - Präsentation von Philippe Wampfler
Medienethik - Präsentation von Philippe Wampfler
 
ATOSS Software AG Geschäftsbericht 2015
ATOSS Software AG Geschäftsbericht 2015ATOSS Software AG Geschäftsbericht 2015
ATOSS Software AG Geschäftsbericht 2015
 
Nigel frank dynamics salary survey 2016 CRM Dinamics
Nigel frank dynamics salary survey 2016 CRM DinamicsNigel frank dynamics salary survey 2016 CRM Dinamics
Nigel frank dynamics salary survey 2016 CRM Dinamics
 
Presentacion conclusiones grupo 1
Presentacion conclusiones grupo 1Presentacion conclusiones grupo 1
Presentacion conclusiones grupo 1
 
Projects 2012 - Sans souci
Projects 2012 - Sans souciProjects 2012 - Sans souci
Projects 2012 - Sans souci
 
Wf. fitness
Wf. fitnessWf. fitness
Wf. fitness
 
Protectia attorneys at law ::: Corporate presentation
Protectia attorneys at law ::: Corporate presentationProtectia attorneys at law ::: Corporate presentation
Protectia attorneys at law ::: Corporate presentation
 
La mujer. grupo 1
La mujer. grupo 1La mujer. grupo 1
La mujer. grupo 1
 
Mobile today-tomorrow-201006-aberla
Mobile today-tomorrow-201006-aberlaMobile today-tomorrow-201006-aberla
Mobile today-tomorrow-201006-aberla
 
SPRING_PROSPECT_MAGAZINE
SPRING_PROSPECT_MAGAZINESPRING_PROSPECT_MAGAZINE
SPRING_PROSPECT_MAGAZINE
 
Presentación de la Factoría de Innovación Murcia
Presentación de la Factoría de Innovación MurciaPresentación de la Factoría de Innovación Murcia
Presentación de la Factoría de Innovación Murcia
 
Casa gaspar
Casa gasparCasa gaspar
Casa gaspar
 
Cv[1].Veronica F. Benitez
Cv[1].Veronica F. BenitezCv[1].Veronica F. Benitez
Cv[1].Veronica F. Benitez
 
Manual para usuarios urkund 2015
Manual para usuarios urkund 2015Manual para usuarios urkund 2015
Manual para usuarios urkund 2015
 
Präsentation Dichtheitsprüfung - Maximilian Ortner
Präsentation Dichtheitsprüfung - Maximilian OrtnerPräsentation Dichtheitsprüfung - Maximilian Ortner
Präsentation Dichtheitsprüfung - Maximilian Ortner
 
CALEFON O TERMOTANQUE
CALEFON O TERMOTANQUECALEFON O TERMOTANQUE
CALEFON O TERMOTANQUE
 
Building a Scalable and Modern Infrastructure at CARFAX
Building a Scalable and Modern Infrastructure at CARFAXBuilding a Scalable and Modern Infrastructure at CARFAX
Building a Scalable and Modern Infrastructure at CARFAX
 

Similar to Salt Stack - Subhankar Sengupta

SaltConf14 - Saurabh Surana, HP Cloud - Automating operations and support wit...
SaltConf14 - Saurabh Surana, HP Cloud - Automating operations and support wit...SaltConf14 - Saurabh Surana, HP Cloud - Automating operations and support wit...
SaltConf14 - Saurabh Surana, HP Cloud - Automating operations and support wit...SaltStack
 
Continuous delivery of Windows micro services in the cloud
Continuous delivery of Windows micro services in the cloud Continuous delivery of Windows micro services in the cloud
Continuous delivery of Windows micro services in the cloud Owain Perry
 
Sweetening Systems Management with Salt
Sweetening Systems Management with SaltSweetening Systems Management with Salt
Sweetening Systems Management with Saltmchesnut
 
Black hat dc-2010-egypt-uav-slides
Black hat dc-2010-egypt-uav-slidesBlack hat dc-2010-egypt-uav-slides
Black hat dc-2010-egypt-uav-slidesBakry3
 
Debconf14 : Putting some salt in your Debian systems -- Julien Cristau
Debconf14 : Putting some salt in your Debian systems -- Julien CristauDebconf14 : Putting some salt in your Debian systems -- Julien Cristau
Debconf14 : Putting some salt in your Debian systems -- Julien CristauLogilab
 
Icinga Camp Bangalore - Icinga2 and Salt Stack at SnapDeal
Icinga Camp Bangalore - Icinga2 and Salt Stack at SnapDealIcinga Camp Bangalore - Icinga2 and Salt Stack at SnapDeal
Icinga Camp Bangalore - Icinga2 and Salt Stack at SnapDealIcinga
 
Automate MongoDB with MongoDB Management Service
Automate MongoDB with MongoDB Management ServiceAutomate MongoDB with MongoDB Management Service
Automate MongoDB with MongoDB Management ServiceMongoDB
 
Puppet managed loadays
Puppet managed loadaysPuppet managed loadays
Puppet managed loadaysYankee Nemoy
 
MongoDB : The Definitive Guide
MongoDB : The Definitive GuideMongoDB : The Definitive Guide
MongoDB : The Definitive GuideWildan Maulana
 
Unmanned Aerial Vehicles: Exploit Automation with the Metasploit Framework
Unmanned Aerial Vehicles: Exploit Automation with the Metasploit FrameworkUnmanned Aerial Vehicles: Exploit Automation with the Metasploit Framework
Unmanned Aerial Vehicles: Exploit Automation with the Metasploit Frameworkegypt
 
Introduction to SaltStack
Introduction to SaltStackIntroduction to SaltStack
Introduction to SaltStackAymen EL Amri
 
How to cook Rabbit on Production - Serhiy Nazarov | Ruby Meditation 28
How to cook Rabbit on Production - Serhiy Nazarov | Ruby Meditation 28How to cook Rabbit on Production - Serhiy Nazarov | Ruby Meditation 28
How to cook Rabbit on Production - Serhiy Nazarov | Ruby Meditation 28Ruby Meditation
 
2014 09-23 Mechanism of Gossip protocol
2014 09-23 Mechanism of Gossip protocol2014 09-23 Mechanism of Gossip protocol
2014 09-23 Mechanism of Gossip protocolSugawara Genki
 
Matthew Mosesohn - Configuration Management at Large Companies
Matthew Mosesohn - Configuration Management at Large Companies Matthew Mosesohn - Configuration Management at Large Companies
Matthew Mosesohn - Configuration Management at Large Companies Yandex
 
Building a Small DC
Building a Small DCBuilding a Small DC
Building a Small DCAPNIC
 
Building a Small Datacenter
Building a Small DatacenterBuilding a Small Datacenter
Building a Small Datacenterssuser4b98f0
 
Linux Memory Basics for SysAdmins - ChinaNetCloud Training
Linux Memory Basics for SysAdmins - ChinaNetCloud TrainingLinux Memory Basics for SysAdmins - ChinaNetCloud Training
Linux Memory Basics for SysAdmins - ChinaNetCloud TrainingChinaNetCloud
 
De-centralise and conquer: Masterless Puppet in a dynamic environment
De-centralise and conquer: Masterless Puppet in a dynamic environmentDe-centralise and conquer: Masterless Puppet in a dynamic environment
De-centralise and conquer: Masterless Puppet in a dynamic environmentSam Bashton
 

Similar to Salt Stack - Subhankar Sengupta (20)

SaltConf14 - Saurabh Surana, HP Cloud - Automating operations and support wit...
SaltConf14 - Saurabh Surana, HP Cloud - Automating operations and support wit...SaltConf14 - Saurabh Surana, HP Cloud - Automating operations and support wit...
SaltConf14 - Saurabh Surana, HP Cloud - Automating operations and support wit...
 
Continuous delivery of Windows micro services in the cloud
Continuous delivery of Windows micro services in the cloud Continuous delivery of Windows micro services in the cloud
Continuous delivery of Windows micro services in the cloud
 
Sweetening Systems Management with Salt
Sweetening Systems Management with SaltSweetening Systems Management with Salt
Sweetening Systems Management with Salt
 
Black hat dc-2010-egypt-uav-slides
Black hat dc-2010-egypt-uav-slidesBlack hat dc-2010-egypt-uav-slides
Black hat dc-2010-egypt-uav-slides
 
Debconf14 : Putting some salt in your Debian systems -- Julien Cristau
Debconf14 : Putting some salt in your Debian systems -- Julien CristauDebconf14 : Putting some salt in your Debian systems -- Julien Cristau
Debconf14 : Putting some salt in your Debian systems -- Julien Cristau
 
Icinga Camp Bangalore - Icinga2 and Salt Stack at SnapDeal
Icinga Camp Bangalore - Icinga2 and Salt Stack at SnapDealIcinga Camp Bangalore - Icinga2 and Salt Stack at SnapDeal
Icinga Camp Bangalore - Icinga2 and Salt Stack at SnapDeal
 
Automate MongoDB with MongoDB Management Service
Automate MongoDB with MongoDB Management ServiceAutomate MongoDB with MongoDB Management Service
Automate MongoDB with MongoDB Management Service
 
Puppet managed loadays
Puppet managed loadaysPuppet managed loadays
Puppet managed loadays
 
MongoDB : The Definitive Guide
MongoDB : The Definitive GuideMongoDB : The Definitive Guide
MongoDB : The Definitive Guide
 
Unmanned Aerial Vehicles: Exploit Automation with the Metasploit Framework
Unmanned Aerial Vehicles: Exploit Automation with the Metasploit FrameworkUnmanned Aerial Vehicles: Exploit Automation with the Metasploit Framework
Unmanned Aerial Vehicles: Exploit Automation with the Metasploit Framework
 
Introduction to SaltStack
Introduction to SaltStackIntroduction to SaltStack
Introduction to SaltStack
 
How to cook Rabbit on Production - Serhiy Nazarov | Ruby Meditation 28
How to cook Rabbit on Production - Serhiy Nazarov | Ruby Meditation 28How to cook Rabbit on Production - Serhiy Nazarov | Ruby Meditation 28
How to cook Rabbit on Production - Serhiy Nazarov | Ruby Meditation 28
 
SaltStack
SaltStackSaltStack
SaltStack
 
2014 09-23 Mechanism of Gossip protocol
2014 09-23 Mechanism of Gossip protocol2014 09-23 Mechanism of Gossip protocol
2014 09-23 Mechanism of Gossip protocol
 
Matthew Mosesohn - Configuration Management at Large Companies
Matthew Mosesohn - Configuration Management at Large Companies Matthew Mosesohn - Configuration Management at Large Companies
Matthew Mosesohn - Configuration Management at Large Companies
 
Breaking down a monolith
Breaking down a monolithBreaking down a monolith
Breaking down a monolith
 
Building a Small DC
Building a Small DCBuilding a Small DC
Building a Small DC
 
Building a Small Datacenter
Building a Small DatacenterBuilding a Small Datacenter
Building a Small Datacenter
 
Linux Memory Basics for SysAdmins - ChinaNetCloud Training
Linux Memory Basics for SysAdmins - ChinaNetCloud TrainingLinux Memory Basics for SysAdmins - ChinaNetCloud Training
Linux Memory Basics for SysAdmins - ChinaNetCloud Training
 
De-centralise and conquer: Masterless Puppet in a dynamic environment
De-centralise and conquer: Masterless Puppet in a dynamic environmentDe-centralise and conquer: Masterless Puppet in a dynamic environment
De-centralise and conquer: Masterless Puppet in a dynamic environment
 

Salt Stack - Subhankar Sengupta

  • 2. My Intro ● SysOps guy since 2002, started in a typical startup, a web-hosting company and daily firefight ● Landed up in JP Morgan, Sabre Inc etc. ● Started JBUG –Bangalore (Jboss User Group) in 2010 ● Why CM? Don’t want to be harassed admin
  • 3. What does Salt stack do? Simple things 1) Configuration Mgmt ● user ● package ● file ● service etc 2) Remote execution When you install Saltstack you get both
  • 4. About the project ● Open Source ● Written in Python ● Uses YAML for cm syntax, called salt states ● Very fast communication system so rapidly scales ● Most Important ○ Viable things are fundamentally SIMPLE ○ Salt is simple
  • 5. Some vocabulary ● The master is the Salt server ● The minions are the target machines that will be provisioned ● Each minion has an unique ID ● Asynchronous communication ● SALT’s configuration files are called states, easy to read and understand ● Multiple states can be applied to each minion ● Modules are collection of function that could be run from Salt CLI ● Information collected by minion about the system is Grain
  • 6. ● Grain- Information collected by minion about the system ● You could write custom grain Shows which grains are defined on a host
  • 7. Show the value of all grains on a given host
  • 8. Installation is a cake walk kkk
  • 9. Packages ● Alternatively installation could be done using RPM or Apt ● Three Packages ○ Salt - (In all nodes) ○ Salt-minion - (In all nodes) ○ Salt-master- (Only in master server)
  • 11. How it works? Pub-Sub Pub Salt Master Minion-FQDN- 1 Minion-FQDN- 2
  • 12. How it works? ● When master process started it creates a socket ● When minion process starts it connects to that master socket and looks for event ● Master publishes event and minion subscribes to listen to that, hence Pub- Sub ● This communication is done by a high speed channel ● ZeroMQ ● This communication channel is secure ● Minion and master exchange keys using AES encryption
  • 13. Remote Execution ● usr/bin/salt- salt <minion-id> <module> ● Salt comes with a rich set of modules ● You could write your own in python ● Module has access to salt data structure ● salt * sys.doc test.ping (Help Files)
  • 16. Run an arbitrary shell command Or a module
  • 17. Salt Cloud ● Started as a separate project to use salt to manage cloud VMs ● Starting with the 2014.1.0 release of Salt, Salt Cloud is built into Salt ● Uses python-libcloud ● AWS XYZ Provider Profiles
  • 18. Again Vocabulary Cloud provider is used to specify basic authentication information to access a cloud provider.
  • 19. Again Vocabulary-2 Cloud profiles is used to specify specific virtual machine requirements, such as size, image, and location.
  • 20. Q and A Drop an email: subhankar.aws@gmail.com