Salt-Stack in OMV5

  • Hello,


    i have a general question regarding the proposed use of salt-stack in OMV5.
    I use salt stack to manage all of my systems, including all of my OMV Installations, will this be possible with OMV5??


    My OMV Systems (i have more than one) all are Salt-Minions to a seperate Salt-Master.
    AFAIK a Minion can only connect to one Master


    Thanks for clarification

    Main NAS:
    OMV running in VM on Proxmox
    4x WD Red 6TB in RAID 5 = 18 TB


    Backup-"Vault"
    some old Laptop
    3x 6 TB HDDs


    Off-Site Backup-OMV for backing up most important data from Main NAS:
    old Thinkpad x230
    2x 5 TB external HDD


    About me:
    German Guy
    Linux Sysadmin
    Hobby Photographer

  • OK, i just learned that you CAN connect a minion to multiple salt-masters IF the master keys are the same.
    I guess i can hack this into my environment somehow.


    https://docs.saltstack.com/en/…utorials/multimaster.html

    Main NAS:
    OMV running in VM on Proxmox
    4x WD Red 6TB in RAID 5 = 18 TB


    Backup-"Vault"
    some old Laptop
    3x 6 TB HDDs


    Off-Site Backup-OMV for backing up most important data from Main NAS:
    old Thinkpad x230
    2x 5 TB external HDD


    About me:
    German Guy
    Linux Sysadmin
    Hobby Photographer

  • A little Update on this, as i now use OMV5 for my Backup NAS:
    Salt seems to run in local mode, so i just set up OMV with all Plugins i need and uncommented all lines in /etc/salt/minion.d/openmediavault.conf.
    I have no idea how this will affect OMV in the future, but i need saltstack to manage my server. If i run into issues i will report back.
    If anyone knows how the official solution would be if i want to use saltstack with my own master, please let me know.

    Main NAS:
    OMV running in VM on Proxmox
    4x WD Red 6TB in RAID 5 = 18 TB


    Backup-"Vault"
    some old Laptop
    3x 6 TB HDDs


    Off-Site Backup-OMV for backing up most important data from Main NAS:
    old Thinkpad x230
    2x 5 TB external HDD


    About me:
    German Guy
    Linux Sysadmin
    Hobby Photographer

  • Update: after some days of normal operation i can now say that this solution is absolutely not what you want!


    Every time you apply a configuration change OMV5 checks against its salt states and will fail if they aren't there.
    I then have to enable the custom OMV Salt Configuration, apply the change and then disable the config again.


    I still haven't found any official information regarding the salt stack usage in OMV5 but this is sadly breakting my usecase for OMV



    Error you will get when salt is not happy:


    Main NAS:
    OMV running in VM on Proxmox
    4x WD Red 6TB in RAID 5 = 18 TB


    Backup-"Vault"
    some old Laptop
    3x 6 TB HDDs


    Off-Site Backup-OMV for backing up most important data from Main NAS:
    old Thinkpad x230
    2x 5 TB external HDD


    About me:
    German Guy
    Linux Sysadmin
    Hobby Photographer

  • any news about it? I'm fan of Ansible, but I see OMV already use similar salt solution. But how to use it if, for example, I have multiple OMV computers? I'd like to manage them in one centralised point, the best would be sth like roles in Ansible, stored in GIT. So if sth bad happens, I can clone GIT repo on any computer, install Ansible on this computer, install OMV, then run playbook and my OMV is in desired state

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!