All Questions
Tagged with salt-stack or salt-project
1,489 questions
0
votes
0
answers
50
views
Edit script file with salt-stack
There is a powershell script file on windows minions which has some parameters set the same on all minions and some parameters set individually per-minion. I want to create a state for modifying some ...
0
votes
1
answer
55
views
When executing shell scripts using saltstack, I hope to be able to output the content of the script execution in real time
I wrote the following code, expecting that the print information can be continuously output in for, but there is actually no output.
import salt.client
selector = "test"
client = salt....
1
vote
1
answer
197
views
SaltStack custom state: How to download file from "salt:" URI
I'm trying to write a custom SaltStack state. It will be used like this:
Example of my.state usage:
my.state:
- name: /some/path
- source: salt://path/to/dsl/file
This state is planned to ...
0
votes
1
answer
42
views
Problem configuring GCE provider (Salt-Cloud)
I'm having an issue with configuring GCE provider for salt-cloud, I always get this error:
root@bastion-01:~# salt-cloud --list-providers
[WARNING ] The cloud driver, 'gce', configured under the 'my-...
0
votes
1
answer
75
views
Saltstack: Waiting for event in orchestrator with specific attributes
I'm new to SaltStack and would like to know if there's a solution to a problem I have that follows "best practices."
I have something like this snippet in an orchestrator, waiting for a ...
0
votes
1
answer
89
views
Saltstack data returner in postgresql for "minion did not return"
I want to cache the saltstack returns in postgres for that i've modified the saltstack master configuration like the one below (refering to the official salt documentations).
But the returner is not ...
0
votes
2
answers
95
views
When I use threads to execute the salt agent api, I always get an error RuntimeError: There is no current event loop in thread 'Thread-*'
When I use threads to execute salt.client.get_local_client() and call the cmd() function concurrently, I receive the error about the absence of an event loop in the thread. I'm unsure if the issue ...
1
vote
1
answer
299
views
Why is my Docker container, inside GitHub workflow, not working as it does in a standard context (Docker CLI)?
I am trying to run a "simple" salt master to be used by my GitHub workflow, but even if this very same Docker image is running fine from a vanilla docker run command (meaning I can connect ...
3
votes
1
answer
83
views
Append environment specific values to a pillar in Salt
I have a pillar file, dev.sls. Inside this file, I am including an additional pillar file, common.sls:
secrets: |
first=value1
second=value2
Inside dev.sls, I am including common.sls:
include:
-...
0
votes
1
answer
68
views
Rewrite bash to Saltstack
I am writing a Saltstack .sls file. This file will be executed with:
sudo salt-run state.orchestrate <file name> pillar="{environment: dev}
So, everything will be run on the salt-master.
I ...
1
vote
2
answers
241
views
Salt script local copy multiple files from one dir to another
I wanted to copy multiple files (file names and number of files are dynamic) from one dir to another locally within a minion. Expecting equivalent of below.
cp /app/downloaded/*.* /app/myapp/...
0
votes
0
answers
152
views
CI/CD build image container unable to run systemd
Firstly, I am a bit of a rookie when it comes to both gitlab pipelines and docker containers, and I'm taking over a project that has been neglected for a very long time, built by someone else forever ...
-1
votes
1
answer
59
views
Can i integrate prefectHQ workflow orchestrator with saltstack
I'm new to this tools, i'm using this tools for migration tool in networking. Can I integrate PrefectHQ with SaltStack?
I installed PrefecHq on VS code and understanding the basics of how flow, tasks ...
0
votes
1
answer
113
views
Salt-Minion 3006.5 (Sulfur) TypeError: 'NoneType' object is not iterable
I'm running salt-minion version 3006.5 (Sulfur) on my server, and recently I've encountered an issue where the minion becomes unresponsive, and the logs show the following recurring error:
TypeError: '...
2
votes
2
answers
62
views
Is there a way to pass properties to display with Salt's service.show?
When you run systemctl show -pId,ActiveState,ActiveEnterTimestamp <service> you can have systemctl display only the properties requested.
Can you do this with salt <host> service.show <...