Intro to Config Management Using Salt Open Source

Slides:



Advertisements
Similar presentations
Implementing Tableau Server in an Enterprise Environment
Advertisements

METALOGIC s o f t w a r e © Metalogic Software Corporation DACS Developer Overview DACS – the Distributed Access Control System.
© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Jim Donahue | Principal Scientist Adobe Systems Technology Lab Flint: Making.
Module 14: WCF Send Adapters. Overview Lesson 1: Introduction to WCF Send Adapters Lesson 2: Consuming a Web Service Lesson 3: Consuming Services from.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Puppet with vSphere Workshop Install, configure and use Puppet on your laptop for vSphere DevOps Billy Lieberman August 1, 2015.
1 PUPPET AND DSC. INTRODUCTION AND USAGE IN CONTINUOUS DELIVERY PROCESS. VIKTAR VEDMICH PAVEL PESETSKIY AUGUST 1, 2015.
Ansible with vCloud Air Workshop
Wordpress with Mina Automated Deployment Solution Jonathan Gravato DIG 4104c.
Oracle Data Integrator Agents. 8-2 Understanding Agents.
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
Overview of the Automated Build & Deployment Process Johnita Beasley Tuesday, April 29, 2008.
Ceilometer + Gnocchi + Aodh Architecture
Infrastructure as code. “Enable the reconstruction of the business from nothing but a source code repository, an application data backup, and bare metal.
IT System Administration Lesson 3 Dr Jeffrey A Robinson.
Sponsored by the National Science Foundation Today’s Exercise.
Hyperion Artifact Life Cycle Management Agenda  Overview  Demo  Tips & Tricks  Takeaways  Queries.
IBM Express Runtime Quick Start Workshop © 2007 IBM Corporation Deploying a Solution.
Ansible and Ansible Tower 1 A simple IT automation platform November 2015 Leandro Fernandez and Blaž Zupanc.
Cloud Installation & Configuration Management. Outline  Definitions  Tools, “Comparison”  References.
Introduction to Ansible
Passwords Passwords are unpleasant Hard to remember Remember a couple
If it’s not automated, it’s broken!
Introduction to Ansible
Progress Apama Fundamentals
Agenda:- DevOps Tools Chef Jenkins Puppet Apache Ant Apache Maven Logstash Docker New Relic Gradle Git.
Consulting Services JobScheduler Architecture Decision Template
Stress Free Deployments with Octopus Deploy
Configuration Management using Ansible
@ Bucharest DevOps Hacker Meetup
Essentials of UrbanCode Deploy v6.1 QQ147
Revisiting Unix principles for modern system automation Martin Krafft
Modernize Your Operations
Efficient development and deployment of Hydra projects using Vagrant
What are they? The Package Repository Client is a set of Tcl scripts that are capable of locating, downloading, and installing packages for both Tcl and.
Salt Configuration Management and David Spencer
How to link a test to a launcher (in this case a shell launcher)
Infrastructure Orchestration to Optimize Testing
z/Ware 2.0 Technical Overview
Docker Birthday #3.
Open Source distributed document DB for an enterprise
Consulting Services JobScheduler Architecture Decision Template
Router Startup and Setup
Securing the Network Perimeter with ISA 2004
Configuring and Troubleshooting Routing and Remote Access
EdgeX System Management Nov 6th 2017
IT Atoumation / Conf. Mgmt...
Deploying and Configuring SSIS Packages
Configuration Management
Adding Salt to your Debian systems
Drupal VM and Docker4Drupal For Drupal Development Platform
Drupal VM and Docker4Drupal as Consistent Drupal Development Platform
Build /21/2018 © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION.
AWS DevOps Engineer - Professional dumps.html Exam Code Exam Name.
Where can I download Aws Devops Engineer Professional Exam Study Material - Get Updated Aws Devops Engineer Professional Braindumps Dumps4downlaod.us
Get Amazon AWS-DevOps-Engineer-Professional Exam Real Questions - Amazon AWS-DevOps-Engineer-Professional Dumps Realexamdumps.com
Azure Automation and Logic Apps:
Chapter 27: System Security
20409A 7: Installing and Configuring System Center 2012 R2 Virtual Machine Manager Module 7 Installing and Configuring System Center 2012 R2 Virtual.
Simplified Development Toolkit
Introduction to Ansible
Microsoft Virtual Academy
POP: Building Automation Around Secure Server Deployment
Presented By - Avinash Pawar
In this session… Introduce what we’re talking about
Cloud Computing.
Router Startup and Setup
Erik Vollebekk Application Architect
06 | SQL Server and the Cloud
Presentation transcript:

Intro to Config Management Using Salt Open Source Salt - it makes everything better! http://bit.ly/TechTalk2018Salt

Config Management Tools: Chef, Puppet, Salt, Ansible Purpose: Ensure the design and build state of a system is known, good, & trusted Benefits: Self-documenting Improves consistency, efficiency, and reliability once established Faster problem resolution History of changes (if stored in git) Ability to enforce controls (pull requests, approvals, etc.)

Why Not Ansible? vs. Agentless? Speed Functionality Not exactly Salt-SSH Speed SSH vs. ZeroMQ Functionality Grains, encrypted pillars, events & orchestration, salt mine, etc. Clean and clear code vs.

I could be totally wrong... Why Not Ansible? I could be totally wrong...

Any CM is better than no CM. Why Not Ansible? but that’s OK! Any CM is better than no CM.

Salt Overview Salt Master Salt Minions Execution Modules States (Formulas) Grains Pillar Top File Runners Returners Reactor Salt Cloud / Salt Virt Salt SSH

Central management system Central management system. This system is used to send commands and configurations to the Salt minion that is running on managed systems.

Managed system. This system runs the Salt minion which receives commands and configuration from the Salt master.

Salt Flexibility Agent & Server Agent-Only (Masterless) Server-Only (Agentless, i.e. Salt-SSH)

Execution Modules Ad hoc commands executed from the command line against one or more managed systems. Useful for: Real-time monitoring, status, and inventory One-off commands and scripts Deploying critical updates

States (Formulas) /srv/salt A declarative or imperative representation of a system configuration.

Grains Grains are static information about the underlying managed system and include operating system, memory, and many other system properties. You can also define custom grains for any system.

Pillar User-defined variables. These secure variables are defined and stored on the Salt Master and then ‘assigned’ to one or more minions using targets. Salt pillar data stores values such as ports, file paths, configuration parameters, and passwords. You can use GPG to encrypt values/file contents as well.

Top File Matches formulas and Salt pillar data to Salt minions. /srv/salt/vim.sls /srv/salt/top.sls Matches formulas and Salt pillar data to Salt minions. /srv/salt/apache.sls

Runners Modules that execute on the Salt master to perform supporting tasks. Salt runners report job status, connection status, read data from external APIs, query connected Salt minions, and more. For example, the Orchestrate runner coordinates configuration deployments across many systems.

Returners Send data returned by Salt minions to another system, such as a database. Salt returners can run on the Salt minion or on the Salt master.

Reactor Trigger reactions when events occur in your SaltStack environment.

Salt Cloud / Salt Virt Provision systems on cloud providers / hypervisors and immediately bring them under management.

Salt SSH Run Salt commands over SSH on systems that do not have a Salt minion. This is Ansible’s approach for everything.

Salt Overview Salt Master Salt Minions Execution Modules States (Formulas) Grains Pillar Top File Runners Returners Reactor Salt Cloud / Salt Virt Salt SSH

Getting Started Salt Bootstrap or see https://repo.saltstack.com Salt Master (Server) curl -L https://bootstrap.saltstack.com -o install_salt.sh sudo sh install_salt.sh -P -M Open ports 4505 & 4506 to servers Salt Minions curl -L https://bootstrap.saltstack.com -o install_salt.sh sudo sh install_salt.sh -P -A saltmaster.domain.com Accept keys on Salt Master salt-key -A (and verify the list before saying yes…)

The Cool Stuff Remote Execution Targeting Globbing ‘web*’ Regex -E ‘web1-(prod|dev)’ Lists -L ‘web1,db1,proxy1’ Grains or Pillars -G ‘os_family:RedHat’ Compound -C ‘* and not G@os_family:RedHat’ Node Groups -N critical (defined in master config, i.e. /etc/salt/master.d/nodes.conf) IPs/subnets -S 10.1.1.5 or -S 10.1.1.0/24

The Cool Stuff - LIVE DEMO!!! Remote Execution test.ping test.version status.version cmd.run disk.percent cron.ls root grains.items firewalld.list_all pkg.upgrade

The Cool Stuff - LIVE DEMO!!! Runners (survey.diff) salt-run survey.diff '*' cmd.run 'cat /etc/resolv.conf'

The Cool Stuff - LIVE DEMO!!! Config Management States, Formulas, Pillar state.show_top state.show_highstate pillar.items state.apply

The Cool Stuff Config Management GPG/PGP

The Cool Stuff Config Management Jinja, Files

The Cool Stuff - (SORT OF) LIVE DEMO!!! Salt Cloud salt-cloud -m /etc/salt/cloud.maps.d/demo.map salt-cloud -m /etc/salt/cloud.maps.d/demo.map -d games.paulw.io

Getting Started - Tips Start Slow & Simple Users Cron jobs Manage a file served from the Salt master Manage a file or directory from a git repo Manage firewall rules Learn to use formulas (https://github.com/saltstack-formulas) Test! - salt ‘minion_id’ state.apply test=true Take snapshots before applying states (if using VMs) Ask for help - Salt Community Level up your Salt GPG encrypted pillars for secrets (see here) GitFS backend or Git repo with automated pulls on commits

Getting Started - Tutorials & Documentation https://docs.saltstack.com/en/getstarted/ https://github.com/ssplatt/salt101 https://github.com/ssplatt/salt201 https://muchbits.com/saltstack-by-example1.html https://docs.saltstack.com/en/latest/topics/installation/index.html

Questions? pdw@udel.edu github.com/pauldalewilliams Salt - it makes everything better! http://bit.ly/TechTalk2018Salt