Open 2piix opened 2 years ago
Result: None Comment: User foo set to be added
Indicates that test
is True
.
Have you got some config elsewhere that is forcing test mode?
I don't believe so. My Salt Stack was working fine in Buster (though I've made a bunch of changes I don't want to back out of... none of them was to turn on testing).
Additionally, I ran salt-call config.option test
on the master and the minion and got
local:
False
Are there any candidate locations? I definitely don't have it in /etc/salt/minion
or /etc/salt/master
.
Very strange. If you just omit the argument (sudo salt-call state.apply
) what happens?
The same issue happens. That's how I tracked down the test=False
option. I searched for 'User ____ is set to be created' and then I tried turning off testing explicitly.
Description I am using a
user.present
state to create a user, and requiring the user in several states. When I callsudo salt-call state.apply test=False
, theuser.present
state does not create the user. The log for the state saysSetup (Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
Expected behavior The user
foo
is createdRelevant parts of log
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.) salt-call --versions-report: ```yaml Salt Version: Salt: 3004.2 Dependency Versions: cffi: Not Installed cherrypy: Not Installed dateutil: 2.8.1 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 2.11.3 libgit2: Not Installed M2Crypto: Not Installed Mako: Not Installed msgpack: 1.0.0 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: Not Installed pycrypto: Not Installed pycryptodome: 3.9.7 pygit2: Not Installed Python: 3.9.2 (default, Feb 28 2021, 17:03:44) python-gnupg: Not Installed PyYAML: 5.3.1 PyZMQ: 20.0.0 smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.3.4 System Versions: dist: debian 11 bullseye locale: utf-8 machine: x86_64 release: 5.10.0-13-amd64 system: Linux version: Debian GNU/Linux 11 bullseye ```Additional context