Compare commits

..

2 commits

Author SHA1 Message Date
Actaeus Curabitur
9f8e3eb0a8 Merge remote-tracking branch 'origin/qual' into dev 2022-09-22 11:08:08 -05:00
Actaeus Curabitur
0174b6effb fix envs 2022-09-22 11:05:24 -05:00
4 changed files with 12 additions and 3 deletions

9
pillars/envs.sls Normal file
View file

@ -0,0 +1,9 @@
{%- set envs=salt.cmd.shell('ls /srv/salt/').split('\n') -%}
envs:
{%- if envs is not none -%}
{%- for env in envs %}
- {{env}}
{%- endfor -%}
{%- else -%}
- prod
{%- endif -%}

View file

@ -4,4 +4,5 @@
'*': '*':
- roles - roles
- servers - servers
- envs
{%- endfor %} {%- endfor %}

View file

@ -6,6 +6,7 @@ $CONFIG = array (
1 => 'cloud.actcur.com' 1 => 'cloud.actcur.com'
), ),
'overwrite.cli.url' => 'https://cloud.actcur.com/', 'overwrite.cli.url' => 'https://cloud.actcur.com/',
'overwriteprotocol' => 'https',
'htaccess.RewriteBase' => '/', 'htaccess.RewriteBase' => '/',
'datadirectory' => '/mnt/nextcloud/data', 'datadirectory' => '/mnt/nextcloud/data',
'logfile' => '/var/log/nextcloud/nextcloud.log', 'logfile' => '/var/log/nextcloud/nextcloud.log',

View file

@ -1,8 +1,6 @@
{%- set states = salt['cp.list_states'](saltenv) -%} {%- set states = salt['cp.list_states'](saltenv) -%}
{%- set envs=salt.cmd.shell('git ls-remote https://git.actcur.com/actcur/salt.git | grep -o -P "(?<=refs/heads/).*" | grep -Pv "(^temp$)|(^history$)"').split('\n') -%} {% for env in pillar['envs'] %}
{%- set envs=salt.cmd.shell('ls /srv/salt/').split('\n') -%}
{% for env in envs %}
{{ env }}: {{ env }}:
'os_family:RedHat': 'os_family:RedHat':
- match: grain_pcre - match: grain_pcre