Open ysagon opened 1 year ago
I was able to replicate this on Centos 8 Stream by running the following state first to install the FTP Server:
pkgs_group_desktop_environment:
pkg.group_installed:
- name: FTP Server
Then I modified the state to include a package:
pkgs_group_desktop_environment:
pkg.group_installed:
- name: FTP Server
- include:
- vsftpd
I applied the state with test=True
and observed the stack trace.
The key here is having the package group installed and then having an include
.
I'm not a Linux Guru, so I don't know if it's possible for Salt to know that an include
is already installed
Description Running salt
state.sls
withtest=true
indicates there is a change to be applied when a package is included inpkg.group_installed
.Setup Example sls:
Steps to Reproduce the behavior
And nothing applied when running without
test=true
Expected behavior No unchanged state when running with
test=true
Versions Report
salt --versions-report
```yaml Salt Version: Salt: 3006.1 Python Version: Python: 3.10.11 (main, May 5 2023, 02:31:54) [GCC 11.2.0] Dependency Versions: cffi: 1.14.6 cherrypy: unknown dateutil: 2.8.1 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 3.1.2 libgit2: Not Installed looseversion: 1.0.2 M2Crypto: Not Installed Mako: Not Installed msgpack: 1.0.2 msgpack-pure: Not Installed mysql-python: Not Installed packaging: 22.0 pycparser: 2.21 pycrypto: Not Installed pycryptodome: 3.9.8 pygit2: Not Installed python-gnupg: 0.4.8 PyYAML: 5.4.1 PyZMQ: 23.2.0 relenv: 0.12.3 smmap: Not Installed timelib: 0.2.4 Tornado: 4.5.3 ZMQ: 4.3.4 System Versions: dist: centos 7.9.2009 Core locale: utf-8 machine: x86_64 release: 3.10.0-1160.88.1.el7.x86_64 system: Linux version: CentOS Linux 7.9.2009 Core ```