$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Add Salt CentOS Repository

August 30, 2023 | By the+gnu+linux+evangelist.

GNU/Linux CentOS Enabling Salt Repo

This tutorial shows you step-by-step How to Add Salt Yum/Dnf Enterprise GNU/Linux Repository.

And Salt for CentOS is an event-driven Automation Tool and Framework to Deploy, Configure, and Manage complex IT Systems built on Python.

Finally, this Setup is Valid also for All the others RHEL Based Distros like:

  • Red Hat Enterprise Linux
  • Oracle Enterprise Linux
  • Rocky Linux
  • AlmaLinux
How to Add Salt CentOS Repository
  1. 1. Terminal QuickStart

    How to QuickStart with Command Line on CentOS:

    Fedora Console QuickStart
  2. 2. Adding Salt GPG Key

    Now to Add Salt GPG Signature Key
    On El9 based do:

    sudo rpm --import https://repo.saltproject.io/salt/py3/redhat/9/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub
    Where for El8 based instead:
    sudo rpm --import https://repo.saltproject.io/salt/py3/redhat/8/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub
    Last, for El7 based:
    sudo rpm --import https://repo.saltproject.io/salt/py3/redhat/7/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub
    In case of Issue or for more Insight see the Official Documentation.
    Authenticate with the User’s Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo.
  3. 3. Adding Salt Repository

    Next to Add Salt Repository
    On El9 based run:

    curl -fsSL https://repo.saltproject.io/salt/py3/redhat/9/x86_64/latest.repo | sudo tee /etc/yum.repos.d/salt.repo
    Where for El8 based:
    curl -fsSL https://repo.saltproject.io/salt/py3/redhat/8/x86_64/latest.repo | sudo tee /etc/yum.repos.d/salt.repo
    
    Last, on El7 based:
    curl -fsSL https://repo.saltproject.io/salt/py3/redhat/7/x86_64/latest.repo | sudo tee /etc/yum.repos.d/salt.repo
    
  4. 4. Clearing Repo Metadata

    Next possibly Clean the Repository Metadata
    With:

    sudo yum clean expire-cache
  5. 5. Installing Salt on CentOS

    Finally, to Install Salt for CentOS GNU/Linux:

    Salt CentOS Installation Guide