Compare commits
No commits in common. "9f8e3eb0a8f5f00e50a05d315550f6624b526ac1" and "6bf8b07aee1c4bc66a272415569de58208f3e2a1" have entirely different histories.
9f8e3eb0a8
...
6bf8b07aee
4 changed files with 3 additions and 12 deletions
|
@ -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 -%}
|
|
|
@ -4,5 +4,4 @@
|
||||||
'*':
|
'*':
|
||||||
- roles
|
- roles
|
||||||
- servers
|
- servers
|
||||||
- envs
|
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
|
@ -6,7 +6,6 @@ $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',
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
|
||||||
{%- set states = salt['cp.list_states'](saltenv) -%}
|
{%- 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 }}:
|
{{ env }}:
|
||||||
'os_family:RedHat':
|
'os_family:RedHat':
|
||||||
- match: grain_pcre
|
- match: grain_pcre
|
||||||
|
|
Loading…
Add table
Reference in a new issue