Compare commits
2 commits
d3d34a68f1
...
0b4877218e
Author | SHA1 | Date | |
---|---|---|---|
|
0b4877218e | ||
|
32e5e797ca |
6 changed files with 3 additions and 15 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
|
||||
- servers
|
||||
- envs
|
||||
{%- endfor %}
|
||||
|
|
|
@ -66,7 +66,6 @@ nginx-service:
|
|||
- user: nextcloud
|
||||
- group: nextcloud
|
||||
- mode: 644
|
||||
- replace: false
|
||||
- template: jinja
|
||||
|
||||
/etc/pacman.d/hooks/nextcloud.hook:
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -7,8 +7,6 @@ server {
|
|||
listen 8000;
|
||||
server_name pkg.actcur.com;
|
||||
|
||||
resolver 8.8.8.8;
|
||||
|
||||
access_log /var/log/nginx/pkg-cache.access.log pkg-cache;
|
||||
error_log /var/log/nginx/pkg-cache.error.log;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue