ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Tags
    3. saltstack
    Log in to post
    • All categories
    • AdamF

      Automated Provisioning - KVM & CM tools
      IT Discussion • kvm ansible saltstack automation libvirt • • AdamF

      11
      1
      Votes
      11
      Posts
      605
      Views

      AdamF

      @stacksofplates said in Automated Provisioning - KVM & CM tools:

      @fuznutz04 said in Automated Provisioning - KVM & CM tools:

      @stacksofplates said in Automated Provisioning - KVM & CM tools:

      Terraform will do this and I have an Ansible role to do it also.
      As @IRJ mentioned Vagrant will work also. However I feel Terraform is a better fit as you have more control over the specific pieces of your infrastructure.

      You would still prefer Terraform over Ansible for this as well?

      Yeah. My role can create the VMs, but Terraform had more functionality for that. Ansible overlaps in the infrastructure provisioning space a lot, but it lacks keeping states like Terraform does.

      I'd like to learn both. I just started with Ansible a day or two ago. I have been (and still am) using SaltStack.

    • DustinB3403

      Creating a Salt master on Fedora 30
      IT Discussion • fedora salt master fedora 30 salt saltstack osx • • DustinB3403

      2
      4
      Votes
      2
      Posts
      190
      Views

      JaredBusch

      Dont' use bullet/number lists in instructions and guides like this. it makes it annoying for those that want to copy and paste.

      This guide is assuming that you are running as root. If not prepend everything here with sudo.

      Install the salt-master package dnf install salt-master Open the required ports in the firewall firewall-cmd --add-port=4505-4506/tcp --permanent firewall-cmd --reload Enable the salt-master service to start on boow, and also start it now. systemctl enable --now salt-master.service
    • AdamF

      Saltstack Data collection
      IT Discussion • saltstack • • AdamF

      10
      0
      Votes
      10
      Posts
      134
      Views

      F

      I suggest looking into the salt Logstash engine

    • NerdyDad

      Salt-Minion can't talk to Salt-Master
      IT Discussion • salt-minion salt-master salt minion salt stack salt saltstack • • NerdyDad

      41
      0
      Votes
      41
      Posts
      497
      Views

      Obsolesce

      Weird.. I didn't have to do anything with SELinux to get it working:

      https://timothygruber.com/linux/saltstack-installation-configuration/#Installing_the_Salt-Master

    • F

      VyOS native Salt Minion
      IT Discussion • salt minion salt saltstack vyos • • flaxking

      4
      3
      Votes
      4
      Posts
      619
      Views

      scottalanmiller

      @black3dynamite said in VyOS native Salt Minion:

      @scottalanmiller said in VyOS native Salt Minion:

      That's great. I'd not played with that yet.

      I wonder when they will get one (or this one) running on EdgeOS. Now that would be awesome.

      Is EdgeOS a Debian-based Linux system like VyOS?

      EdgeOS is a Vyatta fork, just like VyOS. They are extremely close. To the point that people constantly confuse them.

    • AdamF

      SaltStack - Viewing output
      IT Discussion • saltstack • • AdamF

      10
      3
      Votes
      10
      Posts
      582
      Views

      AdamF

      @NerdyDad said in SaltStack - Viewing output:

      Disclaimer: I've never implemented or used SaltStack at all.

      But what I know of it, I would treat it similar to Group Policy. Not really meant to give information back. Just a state and configuration management system.

      Agreed. I'm not looking to use it for advanced monitoring, only basic disk usage, etc.

    • AdamF

      Monitoring with SaltStack VS Zabbix
      IT Discussion • saltstack • • AdamF

      24
      0
      Votes
      24
      Posts
      1004
      Views

      scottalanmiller

      @stacksofplates said in Monitoring with SaltStack VS Zabbix:

      @flaxking said in Monitoring with SaltStack VS Zabbix:

      @dyasny said in Monitoring with SaltStack VS Zabbix:

      @flaxking You mean actual graphs and reports on stats gathered over time? Grafana is all about that

      I mean like if you wanted to report on all the different OSes you have running - which I didn't think was possible using Prometheus + Grafana without determining a numeric value for each OS, but it looks like I'm wrong about that.

      The only way I can think of doing that is having each OS type in a different job. At least it used to be true that Prometheus doesn't support string metrics. I hadn't seen anything where they've changed that.

      That's how we did it.

    • Obsolesce

      Converting a cron job to a systemd timer
      IT Discussion • systemd timers crontab saltstack • • Obsolesce

      5
      3
      Votes
      5
      Posts
      1043
      Views

      AdamF

      @Obsolesce said in Converting a cron job to a systemd timer:

      First some info as it may have impact on whether or not to do this in the first place:

      I have a SaltStack deployment of 600-ish minions. Currently, I have a highstate set to run every 45 minutes via cron:

      */45 * * * * root /usr/bin/salt -b 25\% '*' state.apply

      I know one of the benefits of systemd over cron is the logging, and I think this would be great to have better logging of when this runs. More can potentially be done with it automatically, like look for issues and send emails just as one easy example.

      But I don't know how to test this... maybe it doesn't produce the kind of log I want, and salt may already do this in it's own log even better. Or maybe this will produce a log that's too big and cause issues later. I can watch it in the beginning either way, so it's fine.

      Can that cron job be converted into a reliable systemd timer? If so, how?

      600ish minions. Wow. Curious about your setup. (Types of systems, types of states, how to manage and review output of all of that, etc.” Maybe an upcoming post? 🙂

    • AdamF

      Installing a salt minion on FreePBX
      IT Discussion • freepbx 14 saltstack • • AdamF

      4
      1
      Votes
      4
      Posts
      680
      Views

      AdamF

      @jaredbusch said in Installing a salt minion on FreePBX:

      @fuznutz04 I have not. But as you are seeing, FreePBX 14 and newer are not CentOS anymore. They are Sangoma OS.

      I am sure some manual setup would work as most things seemt to be ported, but no idea.

      The only extra thing I have added to FreePBX is ZeroTier.

      Good point. I will post some notes as to how well this works out. I was at least able to install it successfully.

    • Obsolesce

      Issue with python2-tornado-5.0.2 and Salt
      IT Discussion • salt-minion saltstack python2-tornado • • Obsolesce

      6
      2
      Votes
      6
      Posts
      620
      Views

      scottalanmiller

      Fedora 28 is fixed. Remove salt, and install again. Should be all set.

    • Romo

      salt-master: error: Failed to load configuration: Cannot load native module 'Cryptodome.Cipher._raw_des'
      IT Discussion • salt-master saltstack • • Romo

      13
      0
      Votes
      13
      Posts
      2302
      Views

      scottalanmiller

      Don't know about CentOS, but the fixed Salt packages hit the Fedora repos in the last few hours.

    • scottalanmiller

      Salt-Master Errors Fedora 28
      IT Discussion • salt saltstack fedora fedora 28 • • scottalanmiller

      23
      0
      Votes
      23
      Posts
      1121
      Views

      scottalanmiller

      @obsolesce said in Salt-Master Errors Fedora 28:

      @scottalanmiller said in Salt-Master Errors Fedora 28:

      Or closer to working, at least.

      Something still wrong with it? F28-only?

      Yeah, it runs better now, but still throws errors later.

    • Emad R

      Saltstack catching dead minions
      IT Discussion • saltstack minions aging sodiumsuite • • Emad R

      3
      2
      Votes
      3
      Posts
      402
      Views

      F

      Supposedly Foreman also works with Salt, I've only used it with Puppet though.

    • scottalanmiller

      Anyone Attempting Deploying Printers through SaltStack?
      IT Discussion • salt saltstack • • scottalanmiller

      53
      2
      Votes
      53
      Posts
      3126
      Views

      K

      @scottalanmiller Which I agree to, which is what we have done.

    • AdamF

      Vultr Fedora Image
      IT Discussion • vultr saltstack image • • AdamF

      8
      1
      Votes
      8
      Posts
      706
      Views

      black3dynamite

      Those $2.50 instances makes its impossible to install Fedora without using the one Vultr provides.

    • scottalanmiller

      Salt-Minion Fails to Start on TrueOS BSD
      IT Discussion • freebsd bsd trueos saltstack salt-minion unix • • scottalanmiller

      1
      1
      Votes
      1
      Posts
      452
      Views

      No one has replied

    • QuixoticJustin

      Installing SaltStack Salt-Minion to Solus Linux
      IT Discussion • linux solus solus 3 saltstack salt minion eopkg • • QuixoticJustin

      3
      4
      Votes
      3
      Posts
      735
      Views

      QuixoticJustin

      @dafyre said in Installing SaltStack Salt-Minion to Solus Linux:

      @quixoticjustin said in Installing SaltStack Salt-Minion to Solus Linux:

      Solus Linux lacks a native package for SaltStack and so to use it as a Salt Minion you have to grab the packages from GitHub and create it yourself. Special thanks to @scottalanmiller who looked into this and Exoner4ted in the Solus community who did the research and figured out how to make this work.

      Remember to change "saltmastip" to the actual IP of your salt master or handle that however makes sense for you.

      cd /tmp; wget https://github.com/saltstack/salt/archive/2018.3.zip unzip 2018.3.zip; cd /tmp/salt-2018.3/ python /root/salt-2018.3setup.py install echo "saltmasterip salt" >> /etc/hosts cp /root/salt-2018.3/pkg/salt-minion.service /usr/lib/systemd/system/ systemctl daemon-reload && systemctl enable salt-minion eopkg install python-pyzmq pycrypto python-msgpack python-tornado python-jinja pyyaml systemctl restart salt-minion

      Unfortunately this package is not self updating.

      Once you get the initial client installed, you should be able to to push out new salt-minion packages via Salt itself, right?

      Yes, but not using a repo. So you'd need to build your own installer / updater inside of a Salt state. Totally possible, but not as simple as telling it to update.

    • scottalanmiller

      Installing a Salt Minion on MacOS
      IT Discussion • macos macosx saltstack salt minion brew homebrew pip2 python macos 10.13 • • scottalanmiller

      1
      1
      Votes
      1
      Posts
      2659
      Views

      No one has replied

    • scottalanmiller

      Daemonizing Salt Minion on MacOS
      IT Discussion • macos macosx saltstack launchctl salt minion service daemon • • scottalanmiller

      1
      0
      Votes
      1
      Posts
      474
      Views

      No one has replied

    • scottalanmiller

      SaltStack ps.cpu_percent Error on MacOS
      IT Discussion • saltstack ps.cpupercent macos macosx • • scottalanmiller

      3
      0
      Votes
      3
      Posts
      432
      Views

      scottalanmiller

      Even though I know that it is there, I get this...

      salt 'minion' ps.cpu_times minion: 'ps' __virtual__ returned False: The ps module cannot be loaded: python module psutil not installed. ERROR: Minions returned with non-zero exit code