mirror of
https://github.com/saltstack-formulas/packages-formula.git
synced 2025-04-17 10:10:27 +00:00
add tplroot on every import
This commit is contained in:
parent
b5b400ffa4
commit
6ab915c6b2
7 changed files with 18 additions and 10 deletions
|
@ -1,6 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=sls
|
||||
{%- from "./map.jinja" import packages with context %}
|
||||
{%- set tplroot = tpldir.split('/')[0] %}
|
||||
{%- from tplroot ~ "/map.jinja" import packages with context %}
|
||||
|
||||
{%- set wanted_archives = packages.archives.required.archives %}
|
||||
{%- do wanted_archives.update( packages.archives.wanted ) %}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=sls
|
||||
{%- from "./map.jinja" import packages with context %}
|
||||
{%- set tplroot = tpldir.split('/')[0] %}
|
||||
{%- from tplroot ~ "/map.jinja" import packages with context %}
|
||||
|
||||
{%- if grains['os'] == 'Windows' %}
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=jinja
|
||||
{%- set tplroot = tpldir.split('/')[0] %}
|
||||
|
||||
{%- import_yaml './defaults.yaml' as defaults %}
|
||||
{%- import_yaml './osfamilymap.yaml' as osfamilymap %}
|
||||
{%- import_yaml './osmap.yaml' as osmap %}
|
||||
{%- import_yaml './osfingermap.yaml' as osfingermap %}
|
||||
{%- import_yaml tplroot ~ '/defaults.yaml' as defaults %}
|
||||
{%- import_yaml tplroot ~ '/osfamilymap.yaml' as osfamilymap %}
|
||||
{%- import_yaml tplroot ~ '/osmap.yaml' as osmap %}
|
||||
{%- import_yaml tplroot ~ '/osfingermap.yaml' as osfingermap %}
|
||||
|
||||
{%- set packages = salt['grains.filter_by'](
|
||||
defaults,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=sls
|
||||
{%- from "./map.jinja" import packages with context %}
|
||||
{%- set tplroot = tpldir.split('/')[0] %}
|
||||
{%- from tplroot ~ "/map.jinja" import packages with context %}
|
||||
|
||||
{%- set req_states = packages.npms.required.states %}
|
||||
{%- set req_pkgs = packages.npms.required.pkgs %}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=sls
|
||||
|
||||
{%- from "./map.jinja" import packages with context %}
|
||||
{%- set tplroot = tpldir.split('/')[0] %}
|
||||
{%- from tplroot ~ "/map.jinja" import packages with context %}
|
||||
|
||||
{%- set req_states = packages.pkgs.required.states %}
|
||||
{%- set req_packages = packages.pkgs.required.pkgs %}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=sls
|
||||
|
||||
{%- from "./map.jinja" import packages with context %}
|
||||
{%- set tplroot = tpldir.split('/')[0] %}
|
||||
{%- from tplroot ~ "/map.jinja" import packages with context %}
|
||||
|
||||
{%- set wanted_rem_pkgs = packages.remote_pkgs %}
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=sls
|
||||
{%- from "./map.jinja" import packages with context %}
|
||||
|
||||
{%- set tplroot = tpldir.split('/')[0] %}
|
||||
{%- from tplroot ~ "/map.jinja" import packages with context %}
|
||||
|
||||
# As we are 'extend'ing pkg_req_pkgs and unwanted_pkgs, we need to concatenate
|
||||
# the attributes correctly (see #17)
|
||||
|
|
Loading…
Add table
Reference in a new issue