mirror of
https://github.com/ben-grande/qusal.git
synced 2024-10-01 02:35:49 -04:00
fix: cacher client installation indentation
This commit is contained in:
parent
a78b90e8bd
commit
d3ae662c00
@ -7,17 +7,16 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
{% if grains['os_family']|lower == 'debian' -%}
|
||||
{% if not salt['file.file_exists']('/usr/share/whonix/marker') -%}
|
||||
{% for repo in salt['file.find']('/etc/apt/sources.list.d/', name='*(list|sources)') -%}
|
||||
{{ repo }}_baseurl:
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'https://'
|
||||
- repl: 'http://HTTPS///'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
|
||||
"{{ repo }}_baseurl":
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'https://'
|
||||
- repl: 'http://HTTPS///'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
{% endfor -%}
|
||||
|
||||
/etc/apt/sources.list:
|
||||
"/etc/apt/sources.list":
|
||||
file.replace:
|
||||
- name: /etc/apt/sources.list
|
||||
- pattern: 'https:'
|
||||
@ -27,7 +26,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
{% endif -%}
|
||||
|
||||
{% elif grains['os_family']|lower == 'arch' -%}
|
||||
pacman:
|
||||
"pacman":
|
||||
file.replace:
|
||||
- names:
|
||||
- /etc/pacman.d/mirrorlist
|
||||
@ -39,34 +38,36 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
{% elif grains['os_family']|lower == 'redhat' -%}
|
||||
{% for repo in salt['file.find']('/etc/yum.repos.d/', name='*repo') -%}
|
||||
{{ repo }}_baseurl:
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'baseurl(.*)https://'
|
||||
- repl: 'baseurl\1http://HTTPS///'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
{{ repo }}_metalink:
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'metalink=https://(.*)'
|
||||
- repl: 'metalink=http://HTTPS///\1'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
"{{ repo }}_baseurl":
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'baseurl(.*)https://'
|
||||
- repl: 'baseurl\1http://HTTPS///'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
|
||||
"{{ repo }}_metalink":
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'metalink=https://(.*)'
|
||||
- repl: 'metalink=http://HTTPS///\1'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
{% endfor -%}
|
||||
|
||||
{% for repo in salt['file.find']('/etc/yum.repos.d/', name='rpmfusion*repo*') -%}
|
||||
{{ repo }}_uncomment:
|
||||
file.uncomment:
|
||||
- name: {{ repo }}
|
||||
- regex : '.*baseurl(.*)'
|
||||
- backup: False
|
||||
{{ repo }}_comment:
|
||||
file.comment:
|
||||
- name: {{ repo }}
|
||||
- regex: '^metalink=http(.*)'
|
||||
- ignore_missing: True
|
||||
- backup: False
|
||||
"{{ repo }}_uncomment":
|
||||
file.uncomment:
|
||||
- name: {{ repo }}
|
||||
- regex: '.*baseurl(.*)'
|
||||
- backup: False
|
||||
|
||||
"{{ repo }}_comment":
|
||||
file.comment:
|
||||
- name: {{ repo }}
|
||||
- regex: '^metalink=http(.*)'
|
||||
- ignore_missing: True
|
||||
- backup: False
|
||||
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
|
@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
{% if grains['os_family']|lower == 'debian' -%}
|
||||
{% for repo in salt['file.find']('/etc/apt/sources.list.d/', name='*(list|sources)') -%}
|
||||
{{ repo }}_baseurl:
|
||||
"{{ repo }}_baseurl":
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'http://HTTPS/'
|
||||
@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
- backup: False
|
||||
{% endfor -%}
|
||||
|
||||
/etc/apt/sources.list:
|
||||
"/etc/apt/sources.list":
|
||||
file.replace:
|
||||
- name: /etc/apt/sources.list
|
||||
- pattern: 'http://HTTPS/'
|
||||
@ -24,7 +24,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
- backup: False
|
||||
|
||||
{% elif grains['os_family']|lower == 'arch' -%}
|
||||
pacman:
|
||||
"pacman":
|
||||
file.replace:
|
||||
- names:
|
||||
- /etc/pacman.d/mirrorlist
|
||||
@ -37,21 +37,21 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
{% elif grains['os_family']|lower == 'redhat' -%}
|
||||
{% for repo in salt['file.find']('/etc/yum.repos.d/', name='*repo*') -%}
|
||||
{{ repo }}_baseurl:
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'baseurl(.*)http://HTTPS/'
|
||||
- repl: 'baseurl\1https:'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
"{{ repo }}_baseurl":
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'baseurl(.*)http://HTTPS/'
|
||||
- repl: 'baseurl\1https:'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
|
||||
{{ repo }}_metalink:
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'metalink=http://HTTPS///(.*)'
|
||||
- repl: 'metalink=https://\1'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
"{{ repo }}_metalink":
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'metalink=http://HTTPS///(.*)'
|
||||
- repl: 'metalink=https://\1'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
|
Loading…
Reference in New Issue
Block a user