From 24e1c31c0c4179dde23e39e7ec9b5b5700bc5058 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Mon, 19 Feb 2024 21:20:37 +0100 Subject: [PATCH] updated apt --- states/apt/defaults.yaml | 1 + states/apt/init.sls | 2 ++ 2 files changed, 3 insertions(+) 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 %}