diff --git a/states/apt/defaults.yaml b/states/apt/defaults.yaml index 19aa01c..3ca8fe5 100644 --- a/states/apt/defaults.yaml +++ b/states/apt/defaults.yaml @@ -1,5 +1,6 @@ --- apt: + enabled: true proxy: scheme: http hostname: apt.local diff --git a/states/apt/init.sls b/states/apt/init.sls index 63640de..e8876b2 100644 --- a/states/apt/init.sls +++ b/states/apt/init.sls @@ -1,5 +1,6 @@ --- {%- from "apt/map.jinja" import apt with context %} +{% if apt.enabled %} apt-deps: pkg.installed: - pkgs: @@ -31,3 +32,4 @@ apt-proxy-{{ key }}: - mode: "0644" - contents: {{ value }} {% endfor -%} +{% endif %}