Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [salt-project]

The Salt Project, previously known as SaltStack, is a Python-based open-source configuration management software and remote execution engine.

2 votes
1 answer
35 views

How to automatically add custom grains attributes to minions using SaltStack Reactor?

I want to automatically add grains attributes to a minion when it authenticates or starts. I have added the following configuration to the reactor configuration file: reactor: - 'salt/auth': - /...
Tony's user avatar
  • 67
1 vote
2 answers
76 views

How to enforce a state only if a minon has SELinux installed?

I have code that installs a custom selinux module. In my fleet of minions there's Fedora-based systems (with SELinux installed) and Debian-based ones (without SELinux ). On the latter the module/...
balin's user avatar
  • 1,636
0 votes
1 answer
39 views

Unable to import custom libs in salt module

I have a module to work in bmi_minion (which is inside a container that is works in Kubernetes) to fetch some data. for this main module, I've written some custom libs which are stored in the same dir ...
Arun Srinivasan's user avatar
1 vote
1 answer
46 views

Unable to access default grains data in custom grains

I have a task to create custom grains in salt (/srv/salt/_grains). I have to access the default grains data for these custom grains to check the ms_minion serial_number. Unfortunately, I can't access ...
Arun Srinivasan's user avatar
0 votes
1 answer
100 views

Share command output between nodes

I would like to share the output of a command from one node to the other on running salt "*" state.apply. My current solution involves mine.send and mine.get: $ cat top.sls base: 'master*':...
yellowhat's user avatar
  • 499
1 vote
2 answers
46 views

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 ...
Icarus's user avatar
  • 25
0 votes
1 answer
41 views

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 ...
Icarus's user avatar
  • 25
0 votes
0 answers
24 views

building a saltstack proxy tool used to execute commands in a multimaster model

I am supposed to set up syndic peers that are class A masters and minions are connected in a multimaster set-up. A proxy tools is to be built that can route the command to the right master for it to ...
Mansi Seth's user avatar
0 votes
1 answer
131 views

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? i-...
Icarus's user avatar
  • 25
1 vote
2 answers
192 views

Use multiple statements in the same Jinja block {% ... %}

Here is an example code from an SLS (salt stack) file, using Jinja: {% set here = 'some-value' -%} {%- set user = 'my_user' -%} {%- set group = 'my_group' -%} {%- set all_users = salt['user....
nagylzs's user avatar
  • 4,058
1 vote
1 answer
26 views

How to require a State run on a separate minion without orchestration?

I am working on salt states to fail multiple applications over from one prod cluster to another. I want to run 2 salt states (stop_service and iisreset). stop_service will run only on servers on ...
aven's user avatar
  • 61
0 votes
1 answer
43 views

How can I recursively filter config data using Salt Jinja2 template

I want to filter my data by server name. Here is my config and map file. I try to filter first by pillar (which works), then by grain (which doesn't work). How do I do a double filter? Goal is to pull ...
aven's user avatar
  • 61
0 votes
1 answer
72 views

Salt-stack: unable to find mounted network drive from salt-master to salt-minion

I have a salt master and a salt-minion (windows server 2019) that i am trying to use a salt-state to install some applications. As part of this install i want to copy a number of files from a mounted ...
a.smith's user avatar
  • 315
-1 votes
1 answer
100 views

How to define the output of salt status

When I execute the module, its output is as follows: {'TEST': {'pid': 116441, 'retcode': 0, 'stdout': ' total used free shared buff/cache available\nMem: ...
Tony's user avatar
  • 67
0 votes
0 answers
32 views

Salt-Stack minions behind proxy and AD Authentication

I can't acomplish this scenary to work. I have Salt-Master version 3006.7 on Ubuntu 22, and minions running on Windows behind a Squid Proxy using NTLMv2 Authentication integrated with Active Directory....
Leo Son's user avatar

15 30 50 per page
1
2 3 4 5
99