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 %}