mirror of
https://github.com/saltstack-formulas/packages-formula.git
synced 2025-04-16 09:40:23 +00:00
Fix dependency on states
As per https://docs.saltstack.com/en/latest/ref/states/requisites.html#require, the `require` dependency on a sls file needs an include, which was missing
This commit is contained in:
parent
dbae802521
commit
df99e1cdcc
6 changed files with 35 additions and 2 deletions
|
@ -7,6 +7,13 @@
|
|||
{% set wanted_gems = packages.gems.wanted %}
|
||||
{% set unwanted_gems = packages.gems.unwanted %}
|
||||
|
||||
{% if req_states %}
|
||||
include:
|
||||
{% for dep in req_states %}
|
||||
- {{ dep }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
### REQ PKGS (without these, some of the WANTED GEMS will fail to install)
|
||||
gem_req_pkgs:
|
||||
pkg.installed:
|
||||
|
|
|
@ -7,6 +7,13 @@
|
|||
{% set wanted_npms = packages.npms.wanted %}
|
||||
{% set unwanted_npms = packages.npms.unwanted %}
|
||||
|
||||
{% if req_states %}
|
||||
include:
|
||||
{% for dep in req_states %}
|
||||
- {{ dep }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
### REQ PKGS (without these, some of the WANTED PIPS will fail to install)
|
||||
npm_req_pkgs:
|
||||
pkg.installed:
|
||||
|
|
|
@ -8,6 +8,13 @@
|
|||
{% set unwanted_pips = packages.pips.unwanted %}
|
||||
{% set pip_config = packages.pips.config %}
|
||||
|
||||
{% if req_states %}
|
||||
include:
|
||||
{% for dep in req_states %}
|
||||
- {{ dep }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
### REQ PKGS (without these, some of the WANTED PIPS will fail to install)
|
||||
pip_req_pkgs:
|
||||
pkg.installed:
|
||||
|
|
|
@ -9,6 +9,13 @@
|
|||
{% set wanted_packages = packages.pkgs.wanted %}
|
||||
{% set unwanted_packages = packages.pkgs.unwanted %}
|
||||
|
||||
{% if req_states %}
|
||||
include:
|
||||
{% for dep in req_states %}
|
||||
- {{ dep }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
### PRE-REQ PKGS (without these, some of the WANTED PKGS will fail to install)
|
||||
pkg_req_pkgs:
|
||||
pkg.installed:
|
||||
|
|
|
@ -18,6 +18,11 @@
|
|||
### REQ PKGS (without this, SNAPS can fail to install/uninstall)
|
||||
include:
|
||||
- packages.pkgs
|
||||
{% if req_states %}
|
||||
{% for dep in req_states %}
|
||||
- {{ dep }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
extend:
|
||||
unwanted_pkgs:
|
||||
|
|
|
@ -70,8 +70,8 @@ packages:
|
|||
# env: None # A list of environment variables to be set prior to execution
|
||||
# force_reinstall: False # Install the package even if it is already installed
|
||||
required:
|
||||
pkgs:
|
||||
- nodejs
|
||||
states:
|
||||
- node.pkg
|
||||
wanted:
|
||||
# Valid formats:
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue