- 6
- 22 870
DevOps Clinic
United States
Registrace 9. 11. 2018
DevOps Clinic's mission is to help others learn more about Linux SysAdmin and DevOps topics.
Salt Project Package Execution Module
Learn how to use the Package Execution module in Salt Project (aka Salt Stack) to patch your systems. Salt Project is a great tool for DevOps and SysAdmin's that will help you with Configuration Management, Automation, CI/CD, and so much more.
Commands that we used in this video:
- salt '*' pkg.list_upgrades
- salt '*' pkg.upgrade name=sudo
- salt '*' pkg.upgrade pkgs='["systemd", "systemd-libs", "systemd-pam", "systemd-rpm-macros", "systemd-udev"]'
- salt '*' pkg.upgrade pkgs='["tzdata", {"curl": "7.76.1-26.el9_3.3"}]'
- salt '*' pkg.upgrade
- salt 'web*' system.reboot
- salt 'db*' system.reboot
GitHub Repo and Documentation Links: github.com/DevOps-Clinic/SaltProjectVideos/
Getting Started with Salt Project Playlist - czcams.com/play/PLzDaW424lWh7ZCdCVUhYvd38ArQarm6ul.html
If you have comments or questions about this video, or if you would like some help with your own Salt configuration, please leave us a comment below.
Salt Project
Salt Stack
Automation
Agile
DevOps
Configuration Management
CI/CD
Continuous Integration
Continuous Delivery/Deployment
Continuous Testing
Immutable Infrastructure
Infrastructure As Code
Commands that we used in this video:
- salt '*' pkg.list_upgrades
- salt '*' pkg.upgrade name=sudo
- salt '*' pkg.upgrade pkgs='["systemd", "systemd-libs", "systemd-pam", "systemd-rpm-macros", "systemd-udev"]'
- salt '*' pkg.upgrade pkgs='["tzdata", {"curl": "7.76.1-26.el9_3.3"}]'
- salt '*' pkg.upgrade
- salt 'web*' system.reboot
- salt 'db*' system.reboot
GitHub Repo and Documentation Links: github.com/DevOps-Clinic/SaltProjectVideos/
Getting Started with Salt Project Playlist - czcams.com/play/PLzDaW424lWh7ZCdCVUhYvd38ArQarm6ul.html
If you have comments or questions about this video, or if you would like some help with your own Salt configuration, please leave us a comment below.
Salt Project
Salt Stack
Automation
Agile
DevOps
Configuration Management
CI/CD
Continuous Integration
Continuous Delivery/Deployment
Continuous Testing
Immutable Infrastructure
Infrastructure As Code
zhlédnutí: 287
Video
Using Pillars and Grains in Salt Project
zhlédnutí 1,8KPřed rokem
Learn how to use Pillars and Grains in Salt Project (aka Salt Stack). Salt Project is a great tool for DevOps and SysAdmin's that will help you with Configuration Management, Automation, CI/CD, and so much more. Using Pillars and Grains in Salt Project GitHub Repo and Documentation Links: github.com/DevOps-Clinic/SaltProjectVideos/tree/main/ep0005 In this video we learn how to: - query pillars ...
Top File, File Structure, & Pillar Data - Getting Started With Salt Project - Part 4
zhlédnutí 3,2KPřed 2 lety
Learn how to use Salt Project (aka Salt Stack) in our getting started series. Salt Project is a great tool for DevOps and SysAdmin's that will help you with Configuration Management, Automation, CI/CD, and so much more. Start learning Salt Project with a lab on Linode with $100 credit: bit.ly/3tTTeRU * Sponsored by Linode Getting Started With Salt Project - Part 4 - Top File, File Structure, & ...
Configuration Management - Getting Started With Salt Project - Part 3
zhlédnutí 3,2KPřed 2 lety
Learn how to use Salt Project (aka Salt Stack) in our getting started series. Salt Project is a great tool for DevOps and SysAdmin's that will help you with Configuration Management, Automation, CI/CD, and so much more. Start learning Salt Project with a lab on Linode with $100 credit: bit.ly/3tTTeRU * Sponsored by Linode Getting Started With Salt Project - Part 3 - Configuration Management In ...
Remote Task Execution - Getting Started With Salt Project - Part 2
zhlédnutí 3,5KPřed 2 lety
Learn how to use Salt Project (aka Salt Stack) in our getting started series. Salt Project is a great tool for DevOps and SysAdmin's that will help you with Configuration Management, Automation, CI/CD, and so much more. Start learning Salt Project with a lab on Linode with $100 credit: bit.ly/3tTTeRU * Sponsored by Linode Getting Started With Salt Project - Part 2 - Remote Task Execution In thi...
Installing Salt - Getting Started With Salt Project - Part 1
zhlédnutí 11KPřed 2 lety
Learn how to use Salt Project (aka Salt Stack) in our getting started series. Salt Project is a great tool for DevOps and SysAdmin's that will help you with Configuration Management, Automation, CI/CD, and so much more. Start learning Salt Project with a lab on Linode with $100 credit: bit.ly/3tTTeRU * Sponsored by Linode Getting Started With Salt Project - Part 1 - Installing Salt In this vide...
Is there a document or cheat sheet with all these commands on how to check versions of apps or install apps, manipulate users, groups, reading files easiy from the master?
Your Salt series is much appreciated and got me very interested in the project. Thank you! There is one question I could not find the answer for in the documentation: Is is possible to use the minions to monitor the server to prevent configuration drift? And extending it to auto-mitigation as well? In my searches so far, only Salt seems to have the basic capabilities to (be part of) such a solution.
Great stuff! Understanding the directory structure on both the master and minion and all the reasons for it is daunting at first, and the docs are not so great at laying that out clearly. So really appreciate this walkthrough with solid examples. Particularly with blending in how grains and pillars come from different sources. Your visual at the beginning was very helpful and I appreciate the time you must have taken to do that.
Very useful and clear video, I'll be going through your back catalogue! Thanks ❤
Thank you! Looking forward to the rest of the series.
Hello, is it possible that you make a video about managing Windows using salt?
Definitely. I'll add it to the list.
@@DevOpsClinic That would be really nice indeed. Thank you for the tutorials.
Thanks! This’ll be helpful.
thanks!
is there any privilege escalation in saltstack. I want to run salt command as a different user not root. What is the way to do this?
beautiful
Has anyone ever used Salt Stack to manage and set/apply values in a web.config file for a Windows IIS server? Any examples of what that looks like?
This was a great definitive tutorial. Thank you.
Hi, first of all Thank you very much for such a wonderful explanation. I am just wondering if my infra has more than 10k nodes then do I need to install salt minion manually on each instance ?
You are KING! Want to thank you. Best video of Salt Project! I still have more to watch but keep it up!!
Short and useful!
Thank u much man. Great explonation👍 Preparing for salting my env😉
Thank you so much :) Excellent video !!
Excellent explanation
☝️ Promo SM
Thank you for the video. This is exactly what I need for my work right now
The world needs you Matt! More content pls.
Thanks a lot !
We expect more Devops content from you sir. The way of explanation and labs are too good to learn.
This really helped me a lot to understand Salt and it's configurations. Thanks a lot!!!!
Best tutorial for salt. Please create more such videos on salt.
Hoping for more such salt videos
Best tutorial for Salt.
Thanks!!
Best sal video that I've seen! Very clear and practical!
Hey, I really liked this video. Its really amazing and help full. I just want to ask about the pillars part. What are these and how to use them??
Hey just watched this through, was very helpful. Looking for best practices and how to run in an enterprise environment regarding state management.
Another great video, showing errors is actually quite useful so we have more context on what's happening, so that was handy
Great video, good combination of background info and the actual commands/configs you need to get started
Great videos, thank you.
So if i understand good. The minion opens the connection to the master , no ?
These have been super helpful to jumpstart my lab, thank you!
This short series with several create-and-extend approaches really helped me making my very first steps with salt‘s basic structure with the root_files directory, top.sls and its highstates and states. Especially in terms of filesystem hierarchy, .sls- and .conf-files. This was a great addition to the official documentation. I was now able to set up the download and installation of a 3rd party monitoring rpm-file on debian and ubuntu. Unfortunately, I am stuck on the installation of a local rpm (CheckMK-agent, based on nagios) on opensuse/SLES systems. Diving deeper into the salt topic with this series would be appreciated. I personally know that creating these videos is combined with a lot of effort but increasing the scope of these tutorials in this deep diving manner will surely pay off in the long run. I‘ve seen several other channels but for me this was still the most understable and value-adding path. Dear devopsclinic, please continue producing. You are needed right here! :-) BR from germany 🐧
Thank you for the great video.
Keep it up!
I use Ansible almost daily, I love your videos thus far .... question, in ansible you have a hosts file with hosts groups [ ], is salt the same ?
Amazing
Well done Matt👍
Excellent video, simple and interesting explanation Thank you
Great video, keep them coming!
Great video, the getting started videos like this for Salt are lacking IMO. BTW, there is a glitch in the matrix at 17:10, deja vu
I do other stuff like that at work 😁
Great video
For each distribution you make a folder. Some people put code in the state file and using "if" statements to check the Os family. What is the best practice? Do we have to wait until the end to find out what Salt states had been run? In Ansible we see every step. This is easy to follow what the orchestration tool is doing. How works top.sls? If a match is found, it runs those salt states and then continues with the next match? Or is the top.sls first being analyzed and then being executed in sequential way or some parts in parallel. With "require" you can put some dependencies between Salt states. First install a web server, then install some files and at last start the web server daemon. Could you also put dependencies between minion's? ex. first install a database server and then the application server? I like very much your explanations about Salt! I learned a lot. Thank you very much to spend your time in making them!!!!
If you have something that applies to all distributions, then I would put all the distro related items in that same folder. I use distro specific folders for things that only apply to that specific distro. In all the companies I've worked for, when I haven't used formulas, we usually only ever run a single distro. As for seeing the outcome as it's happening, I've never had an issue with having to wait for it to complete. If I've written all my states and tested them both in my local environment, plus dev, then qa, then finally prod. They rarely break at that point.
When you run a state.apply with a specific state, it will evaluate everything that needs to happen for that state that you called. So if you call roles.webserver, it's only going to evaluate the /srv/salt/roles/webserver/ or /srv/salt/roles/webserver.sls. Plus it will also evaluate anything that we have "included". Once it figures out all the dependencies, Grains, Pillar, etc and has a plan it will execute the state. If you were to run a state.apply without a specific state it will start at the top.sls and figure out everything that applies to the specific minion. So if a specific minion has both a roles.webserver and roles.database assigned to it, it will figure out all the states, dependencies, Grains, Pillar, etc and once it's all resolved will execute everything. Doing this is called the High State, starting from the top.sls and working your way through everything that applies. Now, let's say you want to install roles.wordpress, roles.nginx, and roles.mysql. But for you to install Wordpress, you need the mysql database installed before hand so you can import the database. You could have a require that makes sure the roles.mysql is always the installed before Nginx and Wordpress, and Nginx before Wordpress. We'll be going through more of these scenarios shortly.
i want video every day!!!
Thanks for watching! We'll have more videos out soon.