|
|
|
|
|
|
|
|
{%- from "linux/map.jinja" import system with context %} |
|
|
{%- from "linux/map.jinja" import system with context %} |
|
|
{%- if system.enabled %} |
|
|
{%- if system.enabled %} |
|
|
|
|
|
|
|
|
include: |
|
|
|
|
|
- linux.system.package |
|
|
|
|
|
|
|
|
linux_repo_prereq_pkgs: |
|
|
|
|
|
pkg.installed: |
|
|
|
|
|
- pkgs: {{ system.pkgs }} |
|
|
|
|
|
|
|
|
# global proxy setup |
|
|
# global proxy setup |
|
|
{%- if system.proxy.get('pkg', {}).get('enabled', False) %} |
|
|
{%- if system.proxy.get('pkg', {}).get('enabled', False) %} |
|
|
|
|
|
|
|
|
- clean_file: {{ repo.get('clean_file', False) }} |
|
|
- clean_file: {{ repo.get('clean_file', False) }} |
|
|
- refresh_db: {{ repo.get('refresh_db', True) }} |
|
|
- refresh_db: {{ repo.get('refresh_db', True) }} |
|
|
- require: |
|
|
- require: |
|
|
- pkg: linux_packages |
|
|
|
|
|
|
|
|
- pkg: linux_repo_prereq_pkgs |
|
|
{%- if repo.get('proxy', {}).get('enabled', False) %} |
|
|
{%- if repo.get('proxy', {}).get('enabled', False) %} |
|
|
- file: /etc/apt/apt.conf.d/99proxies-salt-{{ name }} |
|
|
- file: /etc/apt/apt.conf.d/99proxies-salt-{{ name }} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
- gpgkey: {{ repo.gpgkey }} |
|
|
- gpgkey: {{ repo.gpgkey }} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
- require: |
|
|
- require: |
|
|
- pkg: linux_packages |
|
|
|
|
|
|
|
|
- pkg: linux_repo_prereq_pkgs |
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- defaults: |
|
|
- defaults: |
|
|
default_repos: {{ default_repos }} |
|
|
default_repos: {{ default_repos }} |
|
|
- require: |
|
|
- require: |
|
|
- pkg: linux_packages |
|
|
|
|
|
|
|
|
- pkg: linux_repo_prereq_pkgs |
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|