Skip to main content

Posts

Showing posts from May, 2023

Basic Linux commands - PART-00

Linux commands for debugging (Basic)

Salt-stack cheat sheet

Here is an essential cheat sheet of some normal SaltStack orders with models: 1. Test network with flunkies:    salt '*' test.ping 2. Execute an order on cronies:    salt '*' cmd.run 'ls - l/var/log' 3. Apply a state to cronies:    salt '*' state.apply nginx 4. Apply a highstate to cronies (apply every single characterized state):    salt '*' state.highstate 5. Get data about followers (grains):    salt '*' grains.items 6. Introduce a bundle on cronies:    salt '*' pkg.install nginx 7. Begin, stop, or restart a help on flunkies:    salt '*' service.start nginx    salt '*' service.stop nginx    salt '*' service.restart nginx 8. Duplicate records to cronies:    salt '*' cp.get_file salt://way/to/record/objective/way 9. Execute an order in a particular registry on cronies:    salt '*' cmd.run chdir=/way/to/registry 'ls - l' 10. Run an order nonconcurrently on flunkies:  salt -...

What is salt-stack (Config Management)

SaltStack, otherwise called Salt, is an open-source foundation computerization and arrangement the executives instrument. It is intended to oversee and control huge scope server arrangements and organization framework. SaltStack utilizes a client-server engineering where a focal Salt expert server speaks with Salt cronies introduced on distant frameworks. Here are a few critical elements and parts of SaltStack: 1. Salt Expert: The focal server that controls and deals with the Salt foundation. It gets orders and guidelines from heads and coordinates the execution of those orders across the Salt followers. 2. Salt Flunky: The product specialist introduced on far off frameworks that speak with the Salt expert. Cronies execute orders and arrangements got from the expert and report back the outcomes. 3. Far off Execution: SaltStack gives the capacity to all the while execute orders and run scripts on various frameworks. This empowers overseers to productively deal with countless frameworks....