write to adv_ pillar file since that is where it would be stored from using the soc ui

This commit is contained in:
m0duspwnens
2023-08-09 08:18:13 -04:00
parent 1440c72559
commit 2d25e352d4
2 changed files with 1 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
source /usr/sbin/so-common source /usr/sbin/so-common
doc_desktop_url="$DOC_BASE_URL/desktop.html" doc_desktop_url="$DOC_BASE_URL/desktop.html"
pillar_file="/opt/so/saltstack/local/pillar/minions/{{grains.id}}.sls" pillar_file="/opt/so/saltstack/local/pillar/minions/adv_{{grains.id}}.sls"
if [ -f "$pillar_file" ]; then if [ -f "$pillar_file" ]; then
if ! grep -q "^desktop:$" "$pillar_file"; then if ! grep -q "^desktop:$" "$pillar_file"; then

View File

@@ -3,7 +3,6 @@
{# we only want this state to run it is CentOS #} {# we only want this state to run it is CentOS #}
{% if GLOBALS.os == 'OEL' %} {% if GLOBALS.os == 'OEL' %}
desktop_packages: desktop_packages:
pkg.installed: pkg.installed:
- pkgs: - pkgs: