SlideShare una empresa de Scribd logo
1 de 32
Managing your Minions
with Foreman
Stephen Benjamin - February 3, 2015
stephen@redhat.com / @stbenjam
Foreman
● Provision to anything from one interface with
one process
– Bare metal, oVirt, Libvirt, vmware, docker, EC2,
Rackspace, Digital Ocean, OpenStack, etc.
● Orchestration of all dependencies – not just
preseed/kickstart/cloud-init
● Manage Puppet, Chef, and Salt
● For salt, provides:
– External node classifier (ENC) for tops
system
– External pillar provider
● System Inventories – showing grains and
activity (i.e. state.highstate results). Ability to
create trends and charts on the data.
● Reporting plugins for ABRT, OpenScap
Distributed Architecture
● Smart Proxies located locally on Foreman itself
or independent – used for orchestration of
DNS, DHCP, etc.
● Smart Proxy manages the Salt Master.
Foreman Plugins
● Extensible
– Both the Smart Proxy and Foreman have a plugin
architecture.
● Foreman
– http://projects.theforeman.org/projects/foreman/wiki/Plugins
● Smart Proxy
– http://projects.theforeman.org/projects/foreman/wiki/Smart-Proxy_Plugins
– Extend Foreman to do whatever you want!
Foreman Plugins
● Rich ecosystem of plugins
– Compute Resources:
● Digital Ocean, Docker, OpenNebula, etc.
– Configuration Management:
● Chef, Salt
– Reporting
● ABRT, Graphite, etc.
Salt in Foreman
● First support in early 2014 via
templates/parameters
● Two plugins
– smart_proxy_salt
– foreman_salt
● Packaged for Debian & Red Hat family OS's
– Maintain parity w/ whatever Foreman supports
Minion Provisioning
● Assign a Salt master to a new host.
● Foreman will do the work for you:
1.Add autosign entry
2.Install Salt packages
3.Trigger key acceptance
4.Remove Autosign
Minion Destruction
● When you delete a host in Foreman, we clean
up – delete the host from Salt (the accepted
key).
Key Management
● Full web interface to keys
– Accept, reject, delete keys
● ...and autosign
– Add autosign records (e.g. a domain managed
outside of Foreman)
Salt States
● Assign to host groups (including full inheritance
when using netsed host groups), or directly to
individual hosts
Pillars
● Pillars <-> Foreman parameters
– Add parameters to host, host groups, domains,
global, etc.
● Exposed to Salt via the “external pillars” feature
● Currently limited to String values only
Pillars!
Master Tops
● Salt's Master tops system provides a way to
generate the top file data for a highstate run
from external sources
● Foreman uses the external_nodes module in
Salt to deliver a YAML document with States
and Pillars
States
}Pillars
Highstate
● Run highstate directly from a node
– 'Run Salt' button
● Results reported back to Foreman
Highstate
Reporting
● When running state.highstate, full reporting
inside Foreman of the results!
– What happened on my systems?
– File changes with diffs!
– Other metrics
Grains
● Grains map to 'Foreman Facts'
● Host grains are uploaded to Foreman
● Browseable, chartable, searchable
Future (Short Term)
● Foreman 1.8 will bring version 2.0 of the plugin
– RESTful API for Salt in Foreman
– Hammer CLI Plugin
– Installer support (foreman-installer --salt-
enable=true or similar)
Longer Term
● Importing states/environnments from the
master
● Arbitrary Salt commands
● More than highstate results
● State Groups (like Puppet config groups)
● ???
Conclusion + Q&A
● Find us on Freenode!
– #theforeman, #theforeman-dev
● Docs
– http://github.com/theforeman/foreman_salt/wiki
● Bugtracker:
– http://projects.theforeman.org/projects/salt
● Want to contribute?
– http://theforeman.org/contribute.html

Más contenido relacionado

La actualidad más candente

[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?
[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?
[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?
OpenStack Korea Community
 

La actualidad más candente (20)

TMMi Practices on Test policy and strategy with examples.
TMMi Practices on Test policy and strategy with examples.TMMi Practices on Test policy and strategy with examples.
TMMi Practices on Test policy and strategy with examples.
 
Continuous Quality with Postman
Continuous Quality with PostmanContinuous Quality with Postman
Continuous Quality with Postman
 
Apache DeltaSpike the CDI toolbox
Apache DeltaSpike the CDI toolboxApache DeltaSpike the CDI toolbox
Apache DeltaSpike the CDI toolbox
 
Weblogic12 c installation guide
Weblogic12 c installation guideWeblogic12 c installation guide
Weblogic12 c installation guide
 
OpenStack networking juno l3 h-a, dvr
OpenStack networking   juno l3 h-a, dvrOpenStack networking   juno l3 h-a, dvr
OpenStack networking juno l3 h-a, dvr
 
Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)
 
Running Apache Spark Jobs Using Kubernetes
Running Apache Spark Jobs Using KubernetesRunning Apache Spark Jobs Using Kubernetes
Running Apache Spark Jobs Using Kubernetes
 
USER ACCEPTANCE TESTING
USER ACCEPTANCE TESTINGUSER ACCEPTANCE TESTING
USER ACCEPTANCE TESTING
 
Consul
ConsulConsul
Consul
 
[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?
[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?
[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?
 
[오픈소스컨설팅]오픈스택에 대하여
[오픈소스컨설팅]오픈스택에 대하여[오픈소스컨설팅]오픈스택에 대하여
[오픈소스컨설팅]오픈스택에 대하여
 
The Log of All Logs: Raft-based Consensus Inside Kafka | Guozhang Wang, Confl...
The Log of All Logs: Raft-based Consensus Inside Kafka | Guozhang Wang, Confl...The Log of All Logs: Raft-based Consensus Inside Kafka | Guozhang Wang, Confl...
The Log of All Logs: Raft-based Consensus Inside Kafka | Guozhang Wang, Confl...
 
[OpenStack Days Korea 2016] Track1 - Monasca를 이용한 Cloud 모니터링
[OpenStack Days Korea 2016] Track1 - Monasca를 이용한 Cloud 모니터링[OpenStack Days Korea 2016] Track1 - Monasca를 이용한 Cloud 모니터링
[OpenStack Days Korea 2016] Track1 - Monasca를 이용한 Cloud 모니터링
 
Postman 101 for Students
Postman 101 for StudentsPostman 101 for Students
Postman 101 for Students
 
Running Kafka On Kubernetes With Strimzi For Real-Time Streaming Applications
Running Kafka On Kubernetes With Strimzi For Real-Time Streaming ApplicationsRunning Kafka On Kubernetes With Strimzi For Real-Time Streaming Applications
Running Kafka On Kubernetes With Strimzi For Real-Time Streaming Applications
 
End to-end monitoring with the prometheus operator - Max Inden
End to-end monitoring with the prometheus operator - Max IndenEnd to-end monitoring with the prometheus operator - Max Inden
End to-end monitoring with the prometheus operator - Max Inden
 
Prometheus Storage
Prometheus StoragePrometheus Storage
Prometheus Storage
 
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기
 
Stupid Video Tricks (CocoaConf DC, March 2014)
Stupid Video Tricks (CocoaConf DC, March 2014)Stupid Video Tricks (CocoaConf DC, March 2014)
Stupid Video Tricks (CocoaConf DC, March 2014)
 
Robot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs IntegrationRobot Framework Introduction & Sauce Labs Integration
Robot Framework Introduction & Sauce Labs Integration
 

Similar a Managing your SaltStack Minions with Foreman

OpenNebulaConf 2014 - ONE BIT to rule them all - Stefan Kooman
OpenNebulaConf 2014 - ONE BIT to rule them all - Stefan KoomanOpenNebulaConf 2014 - ONE BIT to rule them all - Stefan Kooman
OpenNebulaConf 2014 - ONE BIT to rule them all - Stefan Kooman
OpenNebula Project
 

Similar a Managing your SaltStack Minions with Foreman (20)

Introduction to SaltStack
Introduction to SaltStackIntroduction to SaltStack
Introduction to SaltStack
 
OSDC 2015: Stephen Benjamin | Foreman in Your Data Center
OSDC 2015: Stephen Benjamin | Foreman in Your Data CenterOSDC 2015: Stephen Benjamin | Foreman in Your Data Center
OSDC 2015: Stephen Benjamin | Foreman in Your Data Center
 
The Foreman Project
The Foreman ProjectThe Foreman Project
The Foreman Project
 
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam RuzickaOSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
 
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
 
Spot Trading - A case study in continuous delivery for mission critical finan...
Spot Trading - A case study in continuous delivery for mission critical finan...Spot Trading - A case study in continuous delivery for mission critical finan...
Spot Trading - A case study in continuous delivery for mission critical finan...
 
Sutol How To Be A Lion Tamer
Sutol How To Be A Lion TamerSutol How To Be A Lion Tamer
Sutol How To Be A Lion Tamer
 
Introduction to stress test
Introduction to stress testIntroduction to stress test
Introduction to stress test
 
Configuration Management and Salt
Configuration Management and SaltConfiguration Management and Salt
Configuration Management and Salt
 
OpenNebulaConf 2014 - ONE BIT to rule them all - Stefan Kooman
OpenNebulaConf 2014 - ONE BIT to rule them all - Stefan KoomanOpenNebulaConf 2014 - ONE BIT to rule them all - Stefan Kooman
OpenNebulaConf 2014 - ONE BIT to rule them all - Stefan Kooman
 
OpenNebula Conf 2014 | ONE BIT to rule them all - Stefan Kooman
OpenNebula Conf 2014 | ONE BIT to rule them all - Stefan KoomanOpenNebula Conf 2014 | ONE BIT to rule them all - Stefan Kooman
OpenNebula Conf 2014 | ONE BIT to rule them all - Stefan Kooman
 
How to be a lion tamer
How to be a lion tamerHow to be a lion tamer
How to be a lion tamer
 
How to be a lion tamer
How to be a lion tamerHow to be a lion tamer
How to be a lion tamer
 
Setting up a local WordPress development environment
Setting up a local WordPress development environmentSetting up a local WordPress development environment
Setting up a local WordPress development environment
 
Foreman in your datacenter
Foreman in your datacenterForeman in your datacenter
Foreman in your datacenter
 
QueueMetrics - Tips and Tricks
QueueMetrics - Tips and TricksQueueMetrics - Tips and Tricks
QueueMetrics - Tips and Tricks
 
IBM Domino / IBM Notes Performance Tuning
IBM Domino / IBM Notes Performance Tuning IBM Domino / IBM Notes Performance Tuning
IBM Domino / IBM Notes Performance Tuning
 
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
(ATS4-PLAT01) Core Architecture Changes in AEP 9.0 and their Impact on Admini...
 
Sweetening Systems Management with Salt
Sweetening Systems Management with SaltSweetening Systems Management with Salt
Sweetening Systems Management with Salt
 
Salt at school
Salt at schoolSalt at school
Salt at school
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Managing your SaltStack Minions with Foreman

  • 1. Managing your Minions with Foreman Stephen Benjamin - February 3, 2015 stephen@redhat.com / @stbenjam
  • 2.
  • 4. ● Provision to anything from one interface with one process – Bare metal, oVirt, Libvirt, vmware, docker, EC2, Rackspace, Digital Ocean, OpenStack, etc. ● Orchestration of all dependencies – not just preseed/kickstart/cloud-init
  • 5. ● Manage Puppet, Chef, and Salt ● For salt, provides: – External node classifier (ENC) for tops system – External pillar provider
  • 6. ● System Inventories – showing grains and activity (i.e. state.highstate results). Ability to create trends and charts on the data. ● Reporting plugins for ABRT, OpenScap
  • 7. Distributed Architecture ● Smart Proxies located locally on Foreman itself or independent – used for orchestration of DNS, DHCP, etc. ● Smart Proxy manages the Salt Master.
  • 8.
  • 9. Foreman Plugins ● Extensible – Both the Smart Proxy and Foreman have a plugin architecture. ● Foreman – http://projects.theforeman.org/projects/foreman/wiki/Plugins ● Smart Proxy – http://projects.theforeman.org/projects/foreman/wiki/Smart-Proxy_Plugins – Extend Foreman to do whatever you want!
  • 10. Foreman Plugins ● Rich ecosystem of plugins – Compute Resources: ● Digital Ocean, Docker, OpenNebula, etc. – Configuration Management: ● Chef, Salt – Reporting ● ABRT, Graphite, etc.
  • 11. Salt in Foreman ● First support in early 2014 via templates/parameters ● Two plugins – smart_proxy_salt – foreman_salt ● Packaged for Debian & Red Hat family OS's – Maintain parity w/ whatever Foreman supports
  • 12. Minion Provisioning ● Assign a Salt master to a new host. ● Foreman will do the work for you: 1.Add autosign entry 2.Install Salt packages 3.Trigger key acceptance 4.Remove Autosign
  • 13. Minion Destruction ● When you delete a host in Foreman, we clean up – delete the host from Salt (the accepted key).
  • 14. Key Management ● Full web interface to keys – Accept, reject, delete keys ● ...and autosign – Add autosign records (e.g. a domain managed outside of Foreman)
  • 15.
  • 16.
  • 17. Salt States ● Assign to host groups (including full inheritance when using netsed host groups), or directly to individual hosts
  • 18.
  • 19. Pillars ● Pillars <-> Foreman parameters – Add parameters to host, host groups, domains, global, etc. ● Exposed to Salt via the “external pillars” feature ● Currently limited to String values only
  • 21. Master Tops ● Salt's Master tops system provides a way to generate the top file data for a highstate run from external sources ● Foreman uses the external_nodes module in Salt to deliver a YAML document with States and Pillars
  • 22.
  • 24. Highstate ● Run highstate directly from a node – 'Run Salt' button ● Results reported back to Foreman
  • 26. Reporting ● When running state.highstate, full reporting inside Foreman of the results! – What happened on my systems? – File changes with diffs! – Other metrics
  • 27. Grains ● Grains map to 'Foreman Facts' ● Host grains are uploaded to Foreman ● Browseable, chartable, searchable
  • 28.
  • 29.
  • 30. Future (Short Term) ● Foreman 1.8 will bring version 2.0 of the plugin – RESTful API for Salt in Foreman – Hammer CLI Plugin – Installer support (foreman-installer --salt- enable=true or similar)
  • 31. Longer Term ● Importing states/environnments from the master ● Arbitrary Salt commands ● More than highstate results ● State Groups (like Puppet config groups) ● ???
  • 32. Conclusion + Q&A ● Find us on Freenode! – #theforeman, #theforeman-dev ● Docs – http://github.com/theforeman/foreman_salt/wiki ● Bugtracker: – http://projects.theforeman.org/projects/salt ● Want to contribute? – http://theforeman.org/contribute.html