From bc2a10b8afd0ad9a27a33312d5bdc69388890b95 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Mon, 26 Dec 2022 10:12:45 +0100 Subject: [PATCH] updated netbox state --- states/netbox/init.sls | 1 - states/netbox/install.sls | 7 +++++++ states/netbox/pkgs.sls | 7 ------- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/states/netbox/init.sls b/states/netbox/init.sls index db7aba9..dca1264 100644 --- a/states/netbox/init.sls +++ b/states/netbox/init.sls @@ -1,6 +1,5 @@ --- include: - redis - - .pkgs - .install - .service diff --git a/states/netbox/install.sls b/states/netbox/install.sls index 85b69e2..10031ef 100644 --- a/states/netbox/install.sls +++ b/states/netbox/install.sls @@ -1,5 +1,12 @@ --- {%- from "netbox/map.jinja" import netbox with context %} +netbox_pkg_reqs: + pkg.installed: + - pkgs: +{%- for pkg in netbox.pkgs %} + - {{ pkg }} +{%- endfor %} + netbox-virtualenv-pkg: pip.installed: - name: virtualenv diff --git a/states/netbox/pkgs.sls b/states/netbox/pkgs.sls index 4c83a8a..ed97d53 100644 --- a/states/netbox/pkgs.sls +++ b/states/netbox/pkgs.sls @@ -1,8 +1 @@ --- -{%- from "netbox/map.jinja" import netbox with context %} -netbox_pkg_reqs: - pkg.latest: - - pkgs: -{%- for pkg in netbox.pkgs %} - - {{ pkg }} -{%- endfor %}