Compare commits

..

No commits in common. "9f8e3eb0a8f5f00e50a05d315550f6624b526ac1" and "6bf8b07aee1c4bc66a272415569de58208f3e2a1" have entirely different histories.

4 changed files with 3 additions and 12 deletions

View file

@ -1,9 +0,0 @@
{%- 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,5 +4,4 @@
'*':
- roles
- servers
- envs
{%- endfor %}

View file

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

View file

@ -1,6 +1,8 @@
{%- set states = salt['cp.list_states'](saltenv) -%}
{% for env in pillar['envs'] %}
{%- 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') -%}
{%- set envs=salt.cmd.shell('ls /srv/salt/').split('\n') -%}
{% for env in envs %}
{{ env }}:
'os_family:RedHat':
- match: grain_pcre