ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Quickly Getting a Salt-Minion Going From Scratch

    IT Discussion
    saltstack salt minion how to
    1
    1
    594
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ObsolesceO
      Obsolesce
      last edited by Obsolesce

      Here's a quick and easy few steps to get a Linux Salt-Minion going from scratch (pre-OS install).

      This is my workstation example, change as desired for servers.

      I updated my blog with this info as well: https://www.timothygruber.com/linux/saltstack-installation-configuration/#Easy_Minion_Install_Summary

      1. Install Fedora Workstation from Net Install ISO.
        a) Fully update (if needed)
        dnf upgrade --refresh

      2. Run the "Linux_Minion_Setup.sh" script, which does the following: (change IP)

      #!/bin/bash
      echo '123.45.67.89 salt' >> /etc/hosts
      dnf install salt-minion -y
      systemctl enable salt-minion.service
      systemctl start salt-minion.service
      
      1. On the Salt-Master, add the new Salt-Minion's key:
        sudo salt-key -L
        sudo salt-key -A

      2. On GitLab.com, add the new Salt-Minion and desired states to the top.sls file:

      base:
        'fwtest':
           - virtworkstation
      
      1. Run a HighState: (if you, for example, the above state set up)
        sudo salt 'fwtest' state.apply
      1 Reply Last reply Reply Quote 1
      • 1 / 1
      • First post
        Last post