Relative Content

Tag Archive for salt-stacksalt

using salt to upgrade Linux Mint OS

I have been using salt for a year to manage 30 laptops. It has worked well and once everything was set up properly did not require any significant maintenance. The laptops run Linux Mint 21.1 and I want to upgrade them to 21.3. There are ways to upgrade manually by logging onto each laptop and executing a series of commands. However, doing that for each of 30 laptops would be a significant task. I was wondering if there is a way to update the OS (i.e., 21.1 -> 21.3) on each laptop using salt? If anyone can point me in the right direction, I would appreciate it.

salt pkgrepo.managed appending a new line on every run

I’ve defined a pkgrepo.managed state in my salt files. On every run of salt, it is adding an additional – and identical – line in the sources.list.d directory, resulting in an apt error. A google found another post with the same situation, but no solution.

Salt error: “Jinja variable ‘shell’ is undefined”

I’m a little unclear as to why this error showed up. Loading users from pillar was working previously. I renamed a module from ‘base’ to ‘common’ to avoid confusion with the ‘base’ state in salt, and then this error appeared.

How to refresh grain data in saltstack

I’m currently using the ec2_tags.py grain to expose tags to salt. Once run, it does not seem to update when tags on the instance change. Do I need to force salt to refresh? If so how?