Compare commits
1 Commits
production
...
fix/pillar
Author | SHA1 | Date | |
---|---|---|---|
c74b36d5e8 |
23
.gommit.toml
23
.gommit.toml
@ -1,23 +0,0 @@
|
|||||||
[config]
|
|
||||||
exclude-merge-commits=true
|
|
||||||
check-summary-length=true
|
|
||||||
summary-length=50
|
|
||||||
|
|
||||||
[matchers]
|
|
||||||
all='^(?:(?:Add|Remove|Update|Enable|Disable) |(?:role|profile|id|pipeline)\.[\w\-_]+: )[\w \.\+\-]+\n(?:(?:\n\- .*)+\n)?(?:\nSigned-off-by: \w+ \w+ <.*@.*>)'
|
|
||||||
|
|
||||||
[examples]
|
|
||||||
summary_variant_one="""
|
|
||||||
[Add|Remove|Update|Enable|Disable] this and that
|
|
||||||
"""
|
|
||||||
|
|
||||||
summary_variant_two="""
|
|
||||||
[role.$role|profile.$profile]: this and that
|
|
||||||
"""
|
|
||||||
|
|
||||||
body_message="""
|
|
||||||
- an optional body line
|
|
||||||
- another optional body line
|
|
||||||
|
|
||||||
Signed-off-by: Max Mandatory <required@example.com>
|
|
||||||
"""
|
|
@ -1,32 +1,9 @@
|
|||||||
---
|
|
||||||
# yamllint disable rule:line-length
|
|
||||||
skip_clone: true
|
skip_clone: true
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
# commit_lint:
|
|
||||||
# image: registry.opensuse.org/home/crameleon/libertacasa/containers/containerfile/libertacasa/pipeline-gommit:latest
|
|
||||||
# secrets: [ci_netrc_username, ci_netrc_password, ci_netrc_machine]
|
|
||||||
# when:
|
|
||||||
# event: [push]
|
|
||||||
# commands:
|
|
||||||
# - git clone --single-branch -b $CI_COMMIT_BRANCH $CI_REPO_LINK ../salt-libertacasa-commit-linting
|
|
||||||
# - cd ../salt-libertacasa-commit-linting
|
|
||||||
# - bin/lint-commits.pl production
|
|
||||||
|
|
||||||
code_lint:
|
|
||||||
image: registry.opensuse.org/home/crameleon/libertacasa/containers/containerfile/libertacasa/pipeline-lint:latest
|
|
||||||
secrets: [ci_netrc_username, ci_netrc_password, ci_netrc_machine]
|
|
||||||
when:
|
|
||||||
event: [push]
|
|
||||||
commands:
|
|
||||||
- git clone --single-branch -b $CI_COMMIT_BRANCH $CI_REPO_LINK ../salt-libertacasa-linting
|
|
||||||
- cd ../salt-libertacasa-linting
|
|
||||||
- find . -type f \( -name '*.yaml' -o -name '*.yml' \) -exec yamllint -f colored -s {} +
|
|
||||||
- find . -name '*.sls' -exec salt-lint --severity -x 204 {} +
|
|
||||||
|
|
||||||
check:
|
check:
|
||||||
image: registry.opensuse.org/home/crameleon/libertacasa/containers/containerfile/libertacasa/pipeline:latest
|
image: registry.opensuse.org/home/crameleon/libertacasa/containers/containerfile/libertacasa/pipeline:latest
|
||||||
secrets: [ci_netrc_username, ci_netrc_password, ci_netrc_machine]
|
secrets: [ ci_netrc_username, ci_netrc_password, ci_netrc_machine ]
|
||||||
when:
|
when:
|
||||||
event: [push]
|
event: [push]
|
||||||
commands:
|
commands:
|
||||||
@ -52,5 +29,5 @@ pipeline:
|
|||||||
event: [push]
|
event: [push]
|
||||||
instance: woodpecker-orpheus.intranet.squirrelcube.com
|
instance: woodpecker-orpheus.intranet.squirrelcube.com
|
||||||
commands:
|
commands:
|
||||||
# - rolesyncer
|
#- rolesyncer
|
||||||
- bin/rolesyncer.py
|
- bin/rolesyncer.py
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
#!/usr/bin/perl
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
use v5.26;
|
|
||||||
|
|
||||||
my ($branch_main) = @ARGV;
|
|
||||||
|
|
||||||
if(!$branch_main){
|
|
||||||
$branch_main = "master"
|
|
||||||
}
|
|
||||||
|
|
||||||
`git ls-remote origin $branch_main` =~ /([a-f0-9]{40})/;
|
|
||||||
|
|
||||||
my $refHead = `git rev-parse HEAD`;
|
|
||||||
my $refTail = $1;
|
|
||||||
|
|
||||||
chomp($refHead);
|
|
||||||
chomp($refTail);
|
|
||||||
|
|
||||||
if ($refHead eq $refTail) {
|
|
||||||
exit 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
system "gommit check range $refTail $refHead";
|
|
||||||
|
|
||||||
if ($? > 0) {
|
|
||||||
exit 1;
|
|
||||||
}
|
|
@ -1,14 +1,4 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
# This rewrites top-files to fetch roles from grains instead of our custom roles API. Useful for testing outside of the LibertaCasa infrastructure, but not recommended for production.
|
# This rewrites top-files to fetch roles from grains instead of our custom roles API. Useful for testing outside of the LibertaCasa infrastructure, but not recommended for production.
|
||||||
|
|
||||||
potential_files=(*/top.sls salt/common/suse.sls)
|
sed -i "s/salt\['http.query'\].*/grains\['roles'\] -%}/" */top.sls
|
||||||
|
|
||||||
for file in ${potential_files[@]}
|
|
||||||
do
|
|
||||||
if [ -f "$file" ]
|
|
||||||
then
|
|
||||||
files+="$file "
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -i "s/salt\['http.query'\].*/grains\['roles'\] -%}/" ${files[@]}
|
|
||||||
|
@ -1,240 +0,0 @@
|
|||||||
{%- from 'map.jinja' import nginx_crtkeypair -%}
|
|
||||||
{%- set trustcrt = '/usr/share/pki/trust/anchors/syscid-ca.crt' -%}
|
|
||||||
{%- set stapler = 'http://gaia.syscid.com:8900/' -%}
|
|
||||||
{%- set resolver = '192.168.0.115' -%}
|
|
||||||
{%- set mailer = '192.168.0.120' -%}
|
|
||||||
{%- set ha4 = '81.16.19.62' -%}
|
|
||||||
{%- set ha6 = '2a03:4000:20:21f::' -%}
|
|
||||||
|
|
||||||
keepalived:
|
|
||||||
config:
|
|
||||||
global_defs:
|
|
||||||
notification_email:
|
|
||||||
- system@lysergic.dev
|
|
||||||
notification_email_from: failover@{{ grains['host'] }}.lysergic.dev
|
|
||||||
smtp_server: {{ mailer }}
|
|
||||||
smtp_connect_timeout: 30
|
|
||||||
router_id: SSO_FO
|
|
||||||
enable_script_security: true
|
|
||||||
vrrp_script:
|
|
||||||
check_nginx_port:
|
|
||||||
script: '"/usr/bin/curl -kfsSm2 https://[::1]:443"'
|
|
||||||
weight: 5
|
|
||||||
interval: 3
|
|
||||||
timeout: 3
|
|
||||||
check_nginx_process:
|
|
||||||
{#- this is not a good check but better than nothing #}
|
|
||||||
script: '"/usr/bin/pgrep nginx"'
|
|
||||||
weight: 4
|
|
||||||
interval: 2
|
|
||||||
timeout: 10
|
|
||||||
check_useless_process:
|
|
||||||
{#- this is only used for debugging #}
|
|
||||||
script: '"/usr/bin/pgrep useless.sh"'
|
|
||||||
weight: 4
|
|
||||||
interval: 2
|
|
||||||
timeout: 3
|
|
||||||
vrrp_instance:
|
|
||||||
DENCWC:
|
|
||||||
state: MASTER
|
|
||||||
interface: eth1
|
|
||||||
priority: 100
|
|
||||||
virtual_router_id: 100
|
|
||||||
advert_int: 5
|
|
||||||
smtp_alert: true
|
|
||||||
notify_master: '"/usr/local/bin/failover --all"'
|
|
||||||
promote_secondaries: true
|
|
||||||
mcast_src_ip: 192.168.0.50
|
|
||||||
authentication:
|
|
||||||
auth_type: PASS
|
|
||||||
auth_pass: ${'secret_keepalived:vrrp_instance:DENCWC'}
|
|
||||||
virtual_ipaddress:
|
|
||||||
- {{ ha4 }}/32 dev eth0 label failover
|
|
||||||
virtual_ipaddress_excluded:
|
|
||||||
- {{ ha6 }}/64 dev eth0
|
|
||||||
{%- for i in [1, 2, 3] %}
|
|
||||||
- {{ ha6 }}{{ i }}/64 dev eth0
|
|
||||||
{%- endfor %}
|
|
||||||
track_script:
|
|
||||||
{#- - check_nginx_port # to-do: this is currently bugged, check script locks up #}
|
|
||||||
- check_nginx_process
|
|
||||||
track_interface:
|
|
||||||
- eth0
|
|
||||||
|
|
||||||
nginx:
|
|
||||||
snippets:
|
|
||||||
listen_ha:
|
|
||||||
- listen:
|
|
||||||
- {{ ha4 }}:443 ssl http2
|
|
||||||
- '[{{ ha6 }}]:443 ssl http2'
|
|
||||||
proxy:
|
|
||||||
- proxy_set_header:
|
|
||||||
- Host $host
|
|
||||||
- X-Real-IP $remote_addr
|
|
||||||
- X-Forwarded-For $proxy_add_x_forwarded_for
|
|
||||||
- X-Forwarded-Host $host
|
|
||||||
- X-Forwarded-Server $host
|
|
||||||
- X-Forwarded-Port $server_port
|
|
||||||
- X-Forwarded-Proto $scheme
|
|
||||||
- proxy_ssl_trusted_certificate: /etc/pki/trust/anchors/backend-ca.crt
|
|
||||||
tls:
|
|
||||||
- ssl_ciphers: ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
|
|
||||||
|
|
||||||
{#- certificate snippets, to-do: merge snippets/tls include into crtkeypair #}
|
|
||||||
{{ nginx_crtkeypair('libertacasa', 'liberta.casa') | indent }}
|
|
||||||
- include: snippets/tls
|
|
||||||
{{ nginx_crtkeypair('libertacasanet', 'libertacasa.net') | indent }}
|
|
||||||
- include: snippets/tls
|
|
||||||
{{ nginx_crtkeypair('libsso', 'libsso.net') | indent }}
|
|
||||||
- include: snippets/tls
|
|
||||||
{{ nginx_crtkeypair('lysergic', 'lysergic.dev') | indent }}
|
|
||||||
- include: snippets/tls
|
|
||||||
tls_syscidsso:
|
|
||||||
- ssl_client_certificate: {{ trustcrt }}
|
|
||||||
- ssl_certificate: /etc/ssl/syscid/sso.syscid.com.crt
|
|
||||||
- ssl_certificate_key: /etc/ssl/syscid/sso.syscid.com.key
|
|
||||||
- ssl_ocsp: 'on'
|
|
||||||
- ssl_ocsp_responder: {{ stapler }}
|
|
||||||
- ssl_stapling_responder: {{ stapler }}
|
|
||||||
- ssl_verify_client: 'on'
|
|
||||||
- resolver: {{ resolver }} ipv6=off
|
|
||||||
- include: snippets/tls
|
|
||||||
|
|
||||||
servers:
|
|
||||||
managed:
|
|
||||||
jboss-cluster.conf:
|
|
||||||
available_dir: /etc/nginx/conf.d
|
|
||||||
config:
|
|
||||||
- proxy_cache_path: /var/cache/nginx/sso_public keys_zone=cache_sso_public:10m
|
|
||||||
- proxy_cache_path: /var/cache/nginx/sso_private keys_zone=cache_sso_private:10m
|
|
||||||
- upstream jboss:
|
|
||||||
- ip_hash: ''
|
|
||||||
- server:
|
|
||||||
- theia.backend.syscid.com:8443
|
|
||||||
- orpheus.backend.syscid.com:8443
|
|
||||||
- selene.backend.syscid.com:8443
|
|
||||||
|
|
||||||
bookstack.conf:
|
|
||||||
config:
|
|
||||||
- server:
|
|
||||||
- include:
|
|
||||||
- snippets/listen_ha
|
|
||||||
- snippets/tls_libertacasa
|
|
||||||
- server_name: libertacasa.info libcasa.info
|
|
||||||
- location /:
|
|
||||||
- proxy_pass: https://bookstack.themis.backend.syscid.com
|
|
||||||
- proxy_http_version: 1.1
|
|
||||||
- client_max_body_size: 20M
|
|
||||||
- modsecurity_rules: |-
|
|
||||||
'
|
|
||||||
SecRuleRemoveById 941160 949110
|
|
||||||
SecAction "id:900200, phase:1, nolog, pass, t:none, setvar:\'tx.allowed_methods=GET HEAD POST OPTIONS PUT PATCH\'"
|
|
||||||
'
|
|
||||||
|
|
||||||
http.conf:
|
|
||||||
config:
|
|
||||||
- server:
|
|
||||||
- listen:
|
|
||||||
- {{ ha4 }}:80 default_server
|
|
||||||
- '[{{ ha6 }}]:80 default_server'
|
|
||||||
- include: snippets/robots
|
|
||||||
- location /:
|
|
||||||
- return: 301 https://$host$request_uri
|
|
||||||
|
|
||||||
privatebin.conf:
|
|
||||||
config:
|
|
||||||
- server:
|
|
||||||
- include:
|
|
||||||
- snippets/listen_ha
|
|
||||||
- snippets/tls_lysergic
|
|
||||||
- server_name: pasta.lysergic.dev
|
|
||||||
- location /:
|
|
||||||
- proxy_pass: https://privatebin.themis.backend.syscid.com
|
|
||||||
- proxy_http_version: 1.1
|
|
||||||
- client_max_body_size: 50M
|
|
||||||
- modsecurity_rules: |-
|
|
||||||
'
|
|
||||||
SecRequestBodyNoFilesLimit 50000000
|
|
||||||
'
|
|
||||||
|
|
||||||
sso_private.conf:
|
|
||||||
config:
|
|
||||||
- server:
|
|
||||||
- include:
|
|
||||||
- snippets/listen_ha
|
|
||||||
- snippets/tls_syscidsso
|
|
||||||
- server_name: sso.syscid.com
|
|
||||||
- root: /srv/www/sso.syscid.com
|
|
||||||
- location = /: []
|
|
||||||
- location /index.html: []
|
|
||||||
- location /:
|
|
||||||
- proxy_pass: https://jboss
|
|
||||||
- proxy_cache: cache_sso_private
|
|
||||||
- include: snippets/proxy
|
|
||||||
- proxy_buffer_size: 256k
|
|
||||||
- proxy_buffers: 4 512k
|
|
||||||
- proxy_busy_buffers_size: 512k
|
|
||||||
- error_log: /var/log/nginx/sso_private.error.log
|
|
||||||
- access_log: /var/log/nginx/sso_private.access.log combined
|
|
||||||
|
|
||||||
sso_public.conf:
|
|
||||||
config:
|
|
||||||
- server:
|
|
||||||
- include:
|
|
||||||
- snippets/listen_ha
|
|
||||||
- snippets/tls_libsso
|
|
||||||
- server_name: sso.casa www.sso.casa
|
|
||||||
- location /:
|
|
||||||
- root: /srv/www/sso.casa
|
|
||||||
- server:
|
|
||||||
- include:
|
|
||||||
- snippets/listen_ha
|
|
||||||
- snippets/tls_libsso
|
|
||||||
- server_name: libsso.net www.libsso.net
|
|
||||||
- location /:
|
|
||||||
- root: /srv/www/libsso.net
|
|
||||||
- location /auth: {#- compat, consider removing #}
|
|
||||||
- rewrite: '^/auth(.*)$ https://libsso.net$1 break'
|
|
||||||
{%- for path in ['realms', 'resources', 'js'] %}
|
|
||||||
- location /{{ path }}:
|
|
||||||
- proxy_pass: https://jboss/{{ path }}
|
|
||||||
- proxy_cache: cache_sso_public
|
|
||||||
{#- - proxy_ssl_verify: on #to-do: enable this #}
|
|
||||||
- include: snippets/proxy
|
|
||||||
{%- endfor %}
|
|
||||||
{%- for path in ['admin', 'welcome', 'metrics', 'health' ] %}
|
|
||||||
- location /{{ path }}:
|
|
||||||
- return: https://liberta.casa/
|
|
||||||
{%- endfor %}
|
|
||||||
- proxy_buffer_size: 256k
|
|
||||||
- proxy_buffers: 4 512k
|
|
||||||
- proxy_busy_buffers_size: 512k
|
|
||||||
- error_log: /var/log/nginx/libsso_public.error.log
|
|
||||||
- access_log: /var/log/nginx/libsso_public.access.log combined
|
|
||||||
|
|
||||||
agola.conf:
|
|
||||||
config:
|
|
||||||
- server:
|
|
||||||
- include:
|
|
||||||
- snippets/listen_ha
|
|
||||||
- snippets/tls_lysergic
|
|
||||||
- server_name: ci.lysergic.dev ci.git.com.de
|
|
||||||
- location /:
|
|
||||||
- proxy_pass: https://ci.lysergic.dev
|
|
||||||
- proxy_ssl_verify: 'on'
|
|
||||||
- include: snippets/proxy
|
|
||||||
|
|
||||||
manage_firewall: True
|
|
||||||
firewalld:
|
|
||||||
zones:
|
|
||||||
public:
|
|
||||||
services:
|
|
||||||
- http
|
|
||||||
- https
|
|
||||||
|
|
||||||
profile:
|
|
||||||
apparmor:
|
|
||||||
local:
|
|
||||||
usr.sbin.nginx:
|
|
||||||
- '{{ trustcrt }} r,'
|
|
||||||
- '/srv/www/{libsso.net,sso.casa,sso.syscid.com}/{index.html,stuff/tacit-css-1.5.2.min.css} r,'
|
|
@ -1,13 +1,8 @@
|
|||||||
---
|
|
||||||
- apache
|
|
||||||
- firewalld
|
- firewalld
|
||||||
- keepalived
|
- keepalived
|
||||||
- memcached
|
|
||||||
- nginx
|
- nginx
|
||||||
- openssh
|
- openssh
|
||||||
- php
|
|
||||||
- postfix
|
- postfix
|
||||||
- prometheus
|
|
||||||
- salt
|
- salt
|
||||||
- tor
|
- tor
|
||||||
- users
|
- users
|
||||||
|
@ -15,7 +15,6 @@ zypper:
|
|||||||
refreshdb_force: False
|
refreshdb_force: False
|
||||||
|
|
||||||
firewalld:
|
firewalld:
|
||||||
FlushAllOnReload: 'yes'
|
|
||||||
zones:
|
zones:
|
||||||
internal:
|
internal:
|
||||||
short: Internal
|
short: Internal
|
||||||
@ -27,10 +26,6 @@ firewalld:
|
|||||||
public:
|
public:
|
||||||
short: Public
|
short: Public
|
||||||
{{ firewall_interfaces(public) }}
|
{{ firewall_interfaces(public) }}
|
||||||
{%- if backend | length %}
|
|
||||||
backend:
|
|
||||||
{{ firewall_interfaces(backend) }}
|
|
||||||
{%- endif %}
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
mine_functions:
|
mine_functions:
|
||||||
|
@ -1 +0,0 @@
|
|||||||
manage_firewall: True
|
|
@ -1,7 +1,7 @@
|
|||||||
{%- set mediapath = '/var/lib/matterbridge/' -%}
|
{%- set mediapath = '/srv/matterbridge/' -%}
|
||||||
|
|
||||||
{%- macro discord_common() -%}
|
{%- macro discord_common() -%}
|
||||||
AutoWebhooks: 'true'
|
AutoWebhooks: "true"
|
||||||
EditSuffix: '(edited)'
|
EditSuffix: '(edited)'
|
||||||
RemoteNickFormat: '[{PROTOCOL}]:{NICK} '
|
RemoteNickFormat: '[{PROTOCOL}]:{NICK} '
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
@ -17,16 +17,16 @@ profile:
|
|||||||
accounts:
|
accounts:
|
||||||
irc.libertacasa:
|
irc.libertacasa:
|
||||||
Server: irc.liberta.casa:6697
|
Server: irc.liberta.casa:6697
|
||||||
UseTLS: 'true'
|
UseTLS: "true"
|
||||||
UseSASL: 'true'
|
UseSASL: "true"
|
||||||
Nick: viaduct
|
Nick: viaduct
|
||||||
NickServNick: viaduct
|
NickServNick: viaduct
|
||||||
NickServPassword: ${'secret_matterbridge:general:accounts:irc.libertacasa:NickServPassword'}
|
NickServPassword: ${'secret_matterbridge:general:accounts:irc.libertacasa:NickServPassword'}
|
||||||
ColorNicks: 'true'
|
ColorNicks: "true"
|
||||||
Charset: utf8
|
Charset: utf8
|
||||||
MessageSplit: 'true'
|
MessageSplit: "true"
|
||||||
MessageQueue: 60
|
MessageQueue: 60
|
||||||
UseRelayMsg: 'true'
|
UseRelayMsg: "true"
|
||||||
RemoteNickFormat: '{NICK}/{LABEL}'
|
RemoteNickFormat: '{NICK}/{LABEL}'
|
||||||
xmpp.libertacasa:
|
xmpp.libertacasa:
|
||||||
Server: xmpp.liberta.casa:5222
|
Server: xmpp.liberta.casa:5222
|
||||||
@ -34,33 +34,32 @@ profile:
|
|||||||
Password: ${'secret_matterbridge:general:accounts:xmpp.libertacasa:Password'}
|
Password: ${'secret_matterbridge:general:accounts:xmpp.libertacasa:Password'}
|
||||||
Muc: muc.liberta.casa
|
Muc: muc.liberta.casa
|
||||||
Nick: viaduct
|
Nick: viaduct
|
||||||
RemoteNickFormat: '[{PROTOCOL}] <{NICK}> '
|
RemoteNickFormat: '[{PROTOCOL}] <{NICK}>'
|
||||||
Label: x
|
Label: x
|
||||||
Debug: 'false'
|
Debug: "true"
|
||||||
telegram.libertacasa:
|
telegram.libertacasa:
|
||||||
Token: ${'secret_matterbridge:general:accounts:telegram.libertacasa:Token'}
|
Token: ${'secret_matterbridge:general:accounts:telegram.libertacasa:Token'}
|
||||||
RemoteNickFormat: '[{PROTOCOL}] <{NICK}> '
|
RemoteNickFormat: '<{NICK}> '
|
||||||
MessageFormat: HTMLNick
|
MessageFormat: HTMLNick
|
||||||
Label: tg
|
Label: tg
|
||||||
DisableWebPagePreview: 'true'
|
DisableWebPagePreview: "true"
|
||||||
sshchat.Psyched:
|
sshchat.Psyched:
|
||||||
Server: 192.168.0.110:2220
|
Server: 192.168.0.110:2220
|
||||||
Nick: LC
|
Nick: LC
|
||||||
RemoteNickFormat: '{PROTOCOL}:<{NICK}> '
|
RemoteNickFormat: '{PROTOCOL}:<{NICK}> '
|
||||||
Label: ssh
|
Label: p
|
||||||
discord.23:
|
discord.23:
|
||||||
Token: ${'secret_matterbridge:general:accounts:discord.23:Token'}
|
Token: ${'secret_matterbridge:general:accounts:discord.23:Token'}
|
||||||
Server: ${'secret_matterbridge:general:accounts:discord.23:Server'}
|
Server: ${'secret_matterbridge:general:accounts:discord.23:Server'}
|
||||||
{{ discord_common() }}
|
{{ discord_common() }}
|
||||||
{#-
|
|
||||||
discord.aithunder:
|
discord.aithunder:
|
||||||
Token: ${'secret_matterbridge:general:accounts:discord.aithunder:Token'}
|
Token: ${'secret_matterbridge:general:accounts:discord.aithunder:Token'}
|
||||||
Server: ${'secret_matterbridge:general:accounts:discord.aithunder:Server'}
|
Server: ${'secret_matterbridge:general:accounts:discord.aithunder:Server'}
|
||||||
{{ discord_common() }}
|
{{ discord_common() }}
|
||||||
#}
|
|
||||||
gateways:
|
gateways:
|
||||||
libcasa:
|
libcasa:
|
||||||
irc.libertacasa: '#libcasa'
|
irc.libertacasa: '#libcasa'
|
||||||
|
sshchat.Psyched: sshchat
|
||||||
xmpp.libertacasa: libcasa
|
xmpp.libertacasa: libcasa
|
||||||
dev:
|
dev:
|
||||||
irc.libertacasa: '#dev'
|
irc.libertacasa: '#dev'
|
||||||
@ -68,25 +67,28 @@ profile:
|
|||||||
lucy:
|
lucy:
|
||||||
irc.libertacasa: '#lucy'
|
irc.libertacasa: '#lucy'
|
||||||
xmpp.libertacasa: lucy
|
xmpp.libertacasa: lucy
|
||||||
telegram.libertacasa: '-1001795702961'
|
|
||||||
sshchat.Psyched: sshchat
|
|
||||||
info:
|
info:
|
||||||
irc.libertacasa: '#libcasa.info'
|
irc.libertacasa: '#libcasa.info'
|
||||||
xmpp.libertacasa: libcasa.info
|
xmpp.libertacasa: libcasa.info
|
||||||
|
#telegram.libertacasa: '-1001518274267'
|
||||||
chat:
|
chat:
|
||||||
irc.libertacasa: '#chat'
|
irc.libertacasa: '#chai'
|
||||||
discord.23: chat
|
discord.23: chat
|
||||||
xmpp.libertacasa: chat
|
xmpp.libertacasa: chat
|
||||||
petals:
|
dota:
|
||||||
irc.libertacasa: '#Petals'
|
irc.libertacasa: '#dotes'
|
||||||
telegram.libertacasa: '-1001971550949'
|
discord.23: dotes
|
||||||
|
xmpp.libertacasa: dota
|
||||||
|
aithunder:
|
||||||
|
irc.libertacasa: '#aithunder'
|
||||||
|
discord.aithunder: main-chat
|
||||||
|
xmpp.libertacasa: aithunder
|
||||||
|
|
||||||
libertacasa-irc:
|
libertacasa-irc:
|
||||||
general:
|
general:
|
||||||
RemoteNickFormat: '{NOPINGNICK}/{LABEL}: '
|
RemoteNickFormat: '{NOPINGNICK}/{LABEL}: '
|
||||||
IgnoreFailureOnStart: 'true'
|
IgnoreFailureOnStart: "true"
|
||||||
MessageSplit: 'true'
|
MessageSplit: "true"
|
||||||
MediaDownloadSize: 1000000000
|
MediaDownloadSize: 1000000000
|
||||||
MediaDownloadPath: {{ mediapath }}libertacasa-irc
|
MediaDownloadPath: {{ mediapath }}libertacasa-irc
|
||||||
MediaServerDownload: https://irc.load.casa
|
MediaServerDownload: https://irc.load.casa
|
||||||
@ -96,44 +98,44 @@ profile:
|
|||||||
NickServNick: IRCrelay
|
NickServNick: IRCrelay
|
||||||
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.libertacasa:NickServPassword'}
|
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.libertacasa:NickServPassword'}
|
||||||
Server: irc.liberta.casa:6697
|
Server: irc.liberta.casa:6697
|
||||||
UseTLS: 'true'
|
UseTLS: "true"
|
||||||
UseSASL: 'true'
|
UseSASL: "true"
|
||||||
Label: libcasa
|
Label: libcasa
|
||||||
Charset: utf8
|
Charset: utf8
|
||||||
IgnoreNicks: HistServ
|
IgnoreNicks: HistServ
|
||||||
UseRelayMsg: 'true'
|
UseRelayMsg: "true"
|
||||||
RemoteNickFormat: '{NICK}/{LABEL}'
|
RemoteNickFormat: '{NICK}/{LABEL}'
|
||||||
irc.chillnet:
|
irc.chillnet:
|
||||||
Nick: IRCrelay
|
Nick: IRCrelay
|
||||||
NickServNick: IRCrelay
|
NickServNick: IRCrelay
|
||||||
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.chillnet:NickServPassword'}
|
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.chillnet:NickServPassword'}
|
||||||
Server: irc.chillnet.org:6697
|
Server: irc.chillnet.org:6697
|
||||||
UseTLS: 'true'
|
UseTLS: "true"
|
||||||
UseSASL: 'true'
|
UseSASL: "true"
|
||||||
Label: chillnet
|
Label: chillnet
|
||||||
Charset: utf8
|
Charset: utf8
|
||||||
IgnoreNicks: HistServ
|
IgnoreNicks: HistServ
|
||||||
UseRelayMsg: 'true'
|
UseRelayMsg: "true"
|
||||||
RemoteNickFormat: '{NICK}/{LABEL}'
|
RemoteNickFormat: '{NICK}/{LABEL}'
|
||||||
irc.ergo:
|
irc.ergo:
|
||||||
Nick: LCIRCrelay
|
Nick: LCIRCrelay
|
||||||
NickServNick: LCIRCrelay
|
NickServNick: LCIRCrelay
|
||||||
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.ergo:NickServPassword'}
|
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.ergo:NickServPassword'}
|
||||||
Server: irc.ergo.chat:6697
|
Server: irc.ergo.chat:6697
|
||||||
UseTLS: 'true'
|
UseTLS: "true"
|
||||||
UseSASL: 'true'
|
UseSASL: "true"
|
||||||
Label: ergochat
|
Label: ergochat
|
||||||
Charset: utf8
|
Charset: utf8
|
||||||
IgnoreNicks: HistServ
|
IgnoreNicks: HistServ
|
||||||
UseRelayMsg: 'true'
|
UseRelayMsg: "true"
|
||||||
RemoteNickFormat: '{NICK}/{LABEL}'
|
RemoteNickFormat: '{NICK}/{LABEL}'
|
||||||
irc.2600:
|
irc.2600:
|
||||||
Nick: IRCrelay
|
Nick: IRCrelay
|
||||||
NickServNick: IRCrelay
|
NickServNick: IRCrelay
|
||||||
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.2600:NickServPassword'}
|
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.2600:NickServPassword'}
|
||||||
Server: irc.2600.net:6697
|
Server: irc.2600.net:6697
|
||||||
UseTLS: 'true'
|
UseTLS: "true"
|
||||||
SkipTLSVerify: 'true'
|
SkipTLSVerify: "true"
|
||||||
Label: 2600net
|
Label: 2600net
|
||||||
Charset: utf8
|
Charset: utf8
|
||||||
irc.dosers:
|
irc.dosers:
|
||||||
@ -141,8 +143,8 @@ profile:
|
|||||||
NickServNick: IRCrelay
|
NickServNick: IRCrelay
|
||||||
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.dosers:NickServPassword'}
|
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.dosers:NickServPassword'}
|
||||||
Server: irc.dosers.net:6697
|
Server: irc.dosers.net:6697
|
||||||
UseTLS: 'true'
|
UseTLS: "true"
|
||||||
UseSASL: 'true'
|
UseSASL: "true"
|
||||||
Label: dosers
|
Label: dosers
|
||||||
Charset: utf8
|
Charset: utf8
|
||||||
irc.rizon:
|
irc.rizon:
|
||||||
@ -150,8 +152,8 @@ profile:
|
|||||||
NickServNick: IRCrelay
|
NickServNick: IRCrelay
|
||||||
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.rizon:NickServPassword'}
|
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.rizon:NickServPassword'}
|
||||||
Server: irc.rizon.net:6697
|
Server: irc.rizon.net:6697
|
||||||
UseTLS: 'true'
|
UseTLS: "true"
|
||||||
UseSASL: 'true'
|
UseSASL: "true"
|
||||||
Label: rizon
|
Label: rizon
|
||||||
Charset: utf8
|
Charset: utf8
|
||||||
irc.nerds:
|
irc.nerds:
|
||||||
@ -159,15 +161,15 @@ profile:
|
|||||||
NickServNick: LCRelay
|
NickServNick: LCRelay
|
||||||
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.nerds:NickServPassword'}
|
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.nerds:NickServPassword'}
|
||||||
Server: irc6.irc-nerds.net:6697
|
Server: irc6.irc-nerds.net:6697
|
||||||
UseTLS: 'true'
|
UseTLS: "true"
|
||||||
UseSASL: 'true'
|
UseSASL: "true"
|
||||||
Label: nerds
|
Label: nerds
|
||||||
Charset: utf8
|
Charset: utf8
|
||||||
irc.oftc:
|
irc.oftc:
|
||||||
Nick: IRCrelay
|
Nick: IRCrelay
|
||||||
NickServNick: IRCrelay
|
NickServNick: IRCrelay
|
||||||
Server: irc.oftc.net:6697
|
Server: irc.oftc.net:6697
|
||||||
UseTLS: 'true'
|
UseTLS: "true"
|
||||||
Label: oftc
|
Label: oftc
|
||||||
Charset: utf8
|
Charset: utf8
|
||||||
irc.libera:
|
irc.libera:
|
||||||
@ -175,14 +177,14 @@ profile:
|
|||||||
NickServNick: IRCrelay
|
NickServNick: IRCrelay
|
||||||
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.libera:NickServPassword'}
|
NickServPassword: ${'secret_matterbridge:irc:accounts:irc.libera:NickServPassword'}
|
||||||
Server: irc.eu.libera.chat:6697
|
Server: irc.eu.libera.chat:6697
|
||||||
UseTLS: 'true'
|
UseTLS: "true"
|
||||||
UseSASL: 'true'
|
UseSASL: "true"
|
||||||
Label: libera
|
Label: libera
|
||||||
Charset: utf8
|
Charset: utf8
|
||||||
irc.stardust:
|
irc.stardust:
|
||||||
Nick: IRCrelay
|
Nick: IRCrelay
|
||||||
Server: irc.stardust.cx:6697
|
Server: irc.stardust.cx:6697
|
||||||
UseTLS: 'true'
|
UseTLS: "true"
|
||||||
Charset: utf8
|
Charset: utf8
|
||||||
Label: stardust
|
Label: stardust
|
||||||
# ugly but requested
|
# ugly but requested
|
||||||
@ -211,65 +213,20 @@ profile:
|
|||||||
nerds:
|
nerds:
|
||||||
irc.libertacasa: '#nerds'
|
irc.libertacasa: '#nerds'
|
||||||
irc.nerds: '#nerds'
|
irc.nerds: '#nerds'
|
||||||
|
chillops:
|
||||||
|
irc.libertacasa: '#chillops'
|
||||||
|
irc.chillnet: '#chillops'
|
||||||
|
irc.stardust: '#chillnet-test'
|
||||||
music:
|
music:
|
||||||
irc.libertacasa: '#music'
|
irc.libertacasa: '#music'
|
||||||
irc.chillnet: '#music'
|
irc.chillnet: '#music'
|
||||||
irc.stardust: '#music'
|
irc.stardust: '#music'
|
||||||
chillnet:
|
|
||||||
general:
|
|
||||||
MediaDownloadSize: 1000000000
|
|
||||||
MediaDownloadPath: {{ mediapath }}chillnet
|
|
||||||
MediaServerDownload: https://up.chillnet.org
|
|
||||||
accounts:
|
|
||||||
irc.chillnet:
|
|
||||||
Server: irc.chillnet.org:6697
|
|
||||||
UseTLS: 'true'
|
|
||||||
UseSASL: 'true'
|
|
||||||
Nick: viaduct
|
|
||||||
NickServNick: viaduct
|
|
||||||
NickServPassword: ${'secret_matterbridge:chillnet:accounts:irc.chillnet:NickServPassword'}
|
|
||||||
ColorNicks: 'true'
|
|
||||||
Charset: utf8
|
|
||||||
MessageSplit: 'true'
|
|
||||||
MessageQueue: 60
|
|
||||||
UseRelayMsg: 'true'
|
|
||||||
RemoteNickFormat: '{NICK}/{LABEL}'
|
|
||||||
telegram.chillnet:
|
|
||||||
Token: ${'secret_matterbridge:chillnet:accounts:telegram.chillnet:Token'}
|
|
||||||
RemoteNickFormat: '<{NICK}> '
|
|
||||||
MessageFormat: HTMLNick
|
|
||||||
Label: tg
|
|
||||||
DisableWebPagePreview: 'true'
|
|
||||||
discord.23:
|
|
||||||
Token: ${'secret_matterbridge:general:accounts:discord.23:Token'}
|
|
||||||
Server: ${'secret_matterbridge:general:accounts:discord.23:Server'}
|
|
||||||
{{ discord_common() }}
|
|
||||||
gateways:
|
|
||||||
staff:
|
|
||||||
irc.chillnet: '#chillstaff'
|
|
||||||
telegram.chillnet: '-1001932699309'
|
|
||||||
devs:
|
|
||||||
irc.chillnet: '#chilldevs'
|
|
||||||
telegram.chillnet: '-1001778806358'
|
|
||||||
discord.23: chilldevs
|
|
||||||
|
|
||||||
lighttpd:
|
lighttpd:
|
||||||
vhosts:
|
vhosts:
|
||||||
matterbridge-general:
|
matterbridge-general:
|
||||||
host: 'libertacasa-general.matterbridge.dericom02.rigel.lysergic.dev'
|
host: 'libertacasa-general\.matterbridge\.dericom02\.rigel\.lysergic\.dev'
|
||||||
root: {{ mediapath }}libertacasa-general
|
root: {{ mediapath }}libertacasa-general
|
||||||
matterbridge-irc:
|
matterbridge-irc:
|
||||||
host: 'libertacasa-irc.matterbridge.dericom02.rigel.lysergic.dev'
|
host: 'libertacasa-irc\.matterbridge\.dericom02\.rigel\.lysergic\.dev'
|
||||||
root: {{ mediapath }}libertacasa-irc
|
root: {{ mediapath }}libertacasa-irc
|
||||||
matterbridge-chillnet:
|
|
||||||
host: 'chillnet.matterbridge.dericom02.rigel.lysergic.dev'
|
|
||||||
root: {{ mediapath }}chillnet
|
|
||||||
|
|
||||||
manage_firewall: True
|
|
||||||
firewalld:
|
|
||||||
zones:
|
|
||||||
web:
|
|
||||||
services:
|
|
||||||
- http
|
|
||||||
sources:
|
|
||||||
- '2a01:4f8:11e:2200::dead/128'
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
manage_firewall: True
|
|
@ -12,5 +12,3 @@ tor:
|
|||||||
hostname: cr36xbvmgjwnfw4sly4kuc6c3ozhesjre3y5pggq5xdkkmbrq6dz4fad.onion
|
hostname: cr36xbvmgjwnfw4sly4kuc6c3ozhesjre3y5pggq5xdkkmbrq6dz4fad.onion
|
||||||
hs_ed25519_public_key: PT0gZWQyNTUxOXYxLXB1YmxpYzogdHlwZTAgPT0AAAAUd+uGrDJs0tuSXjiqC8LbsnJJMSbx15jQ7calMDGHhw==
|
hs_ed25519_public_key: PT0gZWQyNTUxOXYxLXB1YmxpYzogdHlwZTAgPT0AAAAUd+uGrDJs0tuSXjiqC8LbsnJJMSbx15jQ7calMDGHhw==
|
||||||
hs_ed25519_secret_key: ${'secret_tor:hidden_services:irc:key'}
|
hs_ed25519_secret_key: ${'secret_tor:hidden_services:irc:key'}
|
||||||
|
|
||||||
manage_firewall: True
|
|
||||||
|
@ -44,15 +44,15 @@
|
|||||||
- proxy_set_header: Host $http_host
|
- proxy_set_header: Host $http_host
|
||||||
- resolver: '{{ resolver }} ipv4=off valid=24h'
|
- resolver: '{{ resolver }} ipv4=off valid=24h'
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
{%- macro matterbridge_media(domain, name, tls='load') -%}
|
{%- macro matterbridge_media(name) -%}
|
||||||
- server:
|
- server:
|
||||||
- include:
|
- include:
|
||||||
- snippets/listen
|
- snippets/listen
|
||||||
- snippets/tls_{{ tls }}
|
- snippets/tls_load
|
||||||
- snippets/tls
|
- snippets/tls
|
||||||
- server_name: {{ domain }}
|
- server_name: {% if name == 'general' %}load.casa{%- else %}{{ name ~ '.load.casa' }}{%- endif %}
|
||||||
- location /:
|
- location /:
|
||||||
- proxy_pass: http://{{ name }}.matterbridge.dericom02.rigel.lysergic.dev
|
- proxy_pass: http://libertacasa-{{ name }}.matterbridge.dericom02.rigel.lysergic.dev
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
@ -71,7 +71,6 @@ nginx:
|
|||||||
{{ nginx_crtkeypair('meet', 'meet.com.de') | indent }}
|
{{ nginx_crtkeypair('meet', 'meet.com.de') | indent }}
|
||||||
{{ nginx_crtkeypair('takahe', 'social.liberta.casa') | indent }}
|
{{ nginx_crtkeypair('takahe', 'social.liberta.casa') | indent }}
|
||||||
{{ nginx_crtkeypair('pub_sectigo', 'pub') | indent }}
|
{{ nginx_crtkeypair('pub_sectigo', 'pub') | indent }}
|
||||||
{{ nginx_crtkeypair('up.chillnet.org', 'up.chillnet.org') | indent }}
|
|
||||||
|
|
||||||
{#- locations shared between clearnet and Tor LibertaCasa servers #}
|
{#- locations shared between clearnet and Tor LibertaCasa servers #}
|
||||||
libertacasa:
|
libertacasa:
|
||||||
@ -317,9 +316,8 @@ nginx:
|
|||||||
|
|
||||||
matterbridge.conf:
|
matterbridge.conf:
|
||||||
config:
|
config:
|
||||||
{{ matterbridge_media('load.casa', 'libertacasa-general') }}
|
{{ matterbridge_media('general') }}
|
||||||
{{ matterbridge_media('irc.load.casa', 'libertacasa-irc') }}
|
{{ matterbridge_media('irc') }}
|
||||||
{{ matterbridge_media('up.chillnet.org', 'chillnet', 'up.chillnet.org') }}
|
|
||||||
|
|
||||||
meet.conf:
|
meet.conf:
|
||||||
config:
|
config:
|
||||||
@ -443,4 +441,3 @@ nginx:
|
|||||||
- sub_filter_types: application/xml
|
- sub_filter_types: application/xml
|
||||||
- sub_filter: takahe.rigel.lysergic.dev:8000 exhausted.life
|
- sub_filter: takahe.rigel.lysergic.dev:8000 exhausted.life
|
||||||
|
|
||||||
manage_firewall: True
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
manage_firewall: True
|
|
@ -1,2 +0,0 @@
|
|||||||
include:
|
|
||||||
- cluster.denc.web-proxy
|
|
@ -1,123 +0,0 @@
|
|||||||
prometheus:
|
|
||||||
pkg:
|
|
||||||
component:
|
|
||||||
prometheus:
|
|
||||||
config:
|
|
||||||
alerting:
|
|
||||||
alertmanagers:
|
|
||||||
- static_configs:
|
|
||||||
- targets:
|
|
||||||
- localhost:9093
|
|
||||||
|
|
||||||
rule_files:
|
|
||||||
- /etc/prometheus/alerts/lysergic/*.yml
|
|
||||||
|
|
||||||
scrape_configs:
|
|
||||||
- job_name: 'prometheus'
|
|
||||||
static_configs:
|
|
||||||
- targets: ['localhost:9090']
|
|
||||||
|
|
||||||
- job_name: 'node_exporters_lysergic'
|
|
||||||
scrape_timeout: 1m
|
|
||||||
scrape_interval: 5m
|
|
||||||
file_sd_configs:
|
|
||||||
- files:
|
|
||||||
- '/etc/prometheus/targets/node-lysergic.json'
|
|
||||||
|
|
||||||
- job_name: 'blackbox-2xx'
|
|
||||||
metrics_path: /probe
|
|
||||||
params:
|
|
||||||
module: [http_2xx]
|
|
||||||
file_sd_configs:
|
|
||||||
- files: ['/etc/prometheus/targets/blackbox-2xx*.json']
|
|
||||||
relabel_configs:
|
|
||||||
- source_labels: [__address__]
|
|
||||||
target_label: __param_target
|
|
||||||
- source_labels: [__param_target]
|
|
||||||
target_label: instance
|
|
||||||
- target_label: __address__
|
|
||||||
replacement: 127.0.0.1:9115
|
|
||||||
|
|
||||||
- job_name: 'blackbox-3xx'
|
|
||||||
metrics_path: /probe
|
|
||||||
params:
|
|
||||||
module: [http_3xx]
|
|
||||||
file_sd_configs:
|
|
||||||
- files: ['/etc/prometheus/targets/blackbox-3xx*.json']
|
|
||||||
relabel_configs:
|
|
||||||
- source_labels: [__address__]
|
|
||||||
target_label: __param_target
|
|
||||||
- source_labels: [__param_target]
|
|
||||||
target_label: instance
|
|
||||||
- target_label: __address__
|
|
||||||
replacement: 127.0.0.1:9115
|
|
||||||
|
|
||||||
- job_name: 'certificate_exporter'
|
|
||||||
static_configs:
|
|
||||||
- targets: ['therapon.rigel.lysergic.dev:9793']
|
|
||||||
|
|
||||||
alertmanager:
|
|
||||||
config:
|
|
||||||
route:
|
|
||||||
group_by: ['alertname']
|
|
||||||
group_wait: 10s
|
|
||||||
group_interval: 10s
|
|
||||||
repeat_interval: 1h
|
|
||||||
receiver: 'smtp-local'
|
|
||||||
routes:
|
|
||||||
- receiver: 'lysergic'
|
|
||||||
# continue: false
|
|
||||||
match:
|
|
||||||
project: LYSERGIC
|
|
||||||
- receiver: 'chillnet'
|
|
||||||
match:
|
|
||||||
project: CHILLNET
|
|
||||||
|
|
||||||
receivers:
|
|
||||||
- name: 'smtp-local'
|
|
||||||
email_configs:
|
|
||||||
- to: 'system@lysergic.dev'
|
|
||||||
from: 'alertmanager@moni.lysergic.dev'
|
|
||||||
require_tls: false
|
|
||||||
# !!! TO-DO
|
|
||||||
smarthost: 'zz0.email:465'
|
|
||||||
send_resolved: yes
|
|
||||||
|
|
||||||
- name: 'irc-libertacasa'
|
|
||||||
webhook_configs:
|
|
||||||
- url: 'http://127.0.0.1:2410/universe'
|
|
||||||
send_resolved: yes
|
|
||||||
|
|
||||||
- name: 'lysergic'
|
|
||||||
webhook_configs:
|
|
||||||
- url: 'http://127.0.0.1:2410/universe'
|
|
||||||
send_resolved: yes
|
|
||||||
- url: http://127.0.0.2:8081/prometheus/webhook
|
|
||||||
send_resolved: yes
|
|
||||||
email_configs:
|
|
||||||
- to: 'system@lysergic.dev'
|
|
||||||
from: 'alertmanager@moni.lysergic.dev'
|
|
||||||
require_tls: false
|
|
||||||
smarthost: 'zz0.email:465'
|
|
||||||
send_resolved: yes
|
|
||||||
|
|
||||||
- name: 'chillnet'
|
|
||||||
email_configs:
|
|
||||||
- to: 'team@chillnet.org'
|
|
||||||
from: 'alertmanager@moni.lysergic.dev'
|
|
||||||
require_tls: false
|
|
||||||
smarthost: 'zz0.email:465'
|
|
||||||
send_resolved: yes
|
|
||||||
|
|
||||||
manage_firewall: True
|
|
||||||
firewalld:
|
|
||||||
zones:
|
|
||||||
internal:
|
|
||||||
services:
|
|
||||||
- https
|
|
||||||
ports:
|
|
||||||
- comment: DNS Slave
|
|
||||||
port: 5353
|
|
||||||
protocol: tcp
|
|
||||||
- port: 5353
|
|
||||||
protocol: udp
|
|
@ -1,2 +0,0 @@
|
|||||||
include:
|
|
||||||
- cluster.denc.web-proxy
|
|
@ -1 +0,0 @@
|
|||||||
manage_sshd: False
|
|
@ -1 +0,0 @@
|
|||||||
manage_sshd: False
|
|
@ -1 +0,0 @@
|
|||||||
manage_firewall: True
|
|
@ -1 +0,0 @@
|
|||||||
manage_sshd: False
|
|
@ -1 +0,0 @@
|
|||||||
manage_sshd: False
|
|
@ -1,150 +0,0 @@
|
|||||||
{%- set common = {'address': '[fd29:8e45:f292:ff80::1]', 'port': 443, 'domain': '.themis.backend.syscid.com', 'snippetsdir': '/etc/apache2/snippets.d/'} -%}
|
|
||||||
|
|
||||||
{%- macro httpdformulaexcess() -%}
|
|
||||||
LogLevel: False
|
|
||||||
ErrorLog: False
|
|
||||||
LogFormat: False
|
|
||||||
CustomLog: False
|
|
||||||
ServerAdmin: False
|
|
||||||
ServerAlias: False
|
|
||||||
{%- endmacro -%}
|
|
||||||
{%- macro httpdcommon(app) -%}
|
|
||||||
Include {{ common['snippetsdir'] }}ssl_themis.conf
|
|
||||||
<FilesMatch '\.php$'>
|
|
||||||
SetHandler 'proxy:unix:/run/php-fpm/{{ app }}.sock|fcgi://{{ app }}'
|
|
||||||
</FilesMatch>
|
|
||||||
{%- endmacro -%}
|
|
||||||
|
|
||||||
apache:
|
|
||||||
sites:
|
|
||||||
BookStack:
|
|
||||||
interface: '{{ common['address'] }}'
|
|
||||||
port: {{ common['port'] }}
|
|
||||||
ServerName: bookstack{{ common['domain'] }}
|
|
||||||
DocumentRoot: /srv/www/BookStack/
|
|
||||||
DirectoryIndex: index.php
|
|
||||||
Directory:
|
|
||||||
/srv/www/BookStack/:
|
|
||||||
Options: FollowSymLinks
|
|
||||||
AllowOverride: None
|
|
||||||
Require: all granted
|
|
||||||
Formula_Append: |
|
|
||||||
RewriteEngine On
|
|
||||||
RewriteCond %{HTTP:Authorization} .
|
|
||||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteCond %{REQUEST_URI} (.+)/$
|
|
||||||
RewriteRule ^ %1 [L,R=301]
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
|
||||||
RewriteRule ^ index.php [L]
|
|
||||||
{{ httpdformulaexcess() }}
|
|
||||||
Formula_Append: |
|
|
||||||
{{ httpdcommon('BookStack') }}
|
|
||||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
|
|
||||||
SetOutputFilter DEFLATE
|
|
||||||
|
|
||||||
PrivateBin:
|
|
||||||
interface: '{{ common['address'] }}'
|
|
||||||
port: {{ common['port'] }}
|
|
||||||
ServerName: privatebin{{ common['domain'] }}
|
|
||||||
DocumentRoot: /srv/www/PrivateBin/public
|
|
||||||
DirectoryIndex: index.php
|
|
||||||
Directory:
|
|
||||||
/srv/www/PrivateBin/:
|
|
||||||
Options: false
|
|
||||||
AllowOverride: None
|
|
||||||
Require: all granted
|
|
||||||
{{ httpdformulaexcess() }}
|
|
||||||
Formula_Append: |
|
|
||||||
{{ httpdcommon('PrivateBin') }}
|
|
||||||
|
|
||||||
profile:
|
|
||||||
bookstack:
|
|
||||||
app_url: https://libertacasa.info
|
|
||||||
db_host: ${'secret_bookstack:db_host'}
|
|
||||||
db_database: ${'secret_bookstack:db_database'}
|
|
||||||
db_username: ${'secret_bookstack:db_username'}
|
|
||||||
db_password: ${'secret_bookstack:db_password'}
|
|
||||||
mail_driver: smtp
|
|
||||||
mail_from_name: LibertaCasa Documentation
|
|
||||||
mail_from: mail@libertacasa.info
|
|
||||||
mail_host: zz0.email
|
|
||||||
mail_port: 465
|
|
||||||
mail_username: mail@libertacasa.info
|
|
||||||
mail_password: ${'secret_bookstack:mail_password'}
|
|
||||||
mail_encryption: ssl
|
|
||||||
app_theme: lysergic
|
|
||||||
cache_driver: memcached
|
|
||||||
session_driver: memcached
|
|
||||||
memcached_servers: /run/memcached/memcached.sock
|
|
||||||
session_secure_cookie: true
|
|
||||||
session_cookie_name: libertacasa_megayummycookie
|
|
||||||
app_debug: false
|
|
||||||
session_lifetime: 240
|
|
||||||
auth_method: saml2
|
|
||||||
auth_auto_initiate: true
|
|
||||||
saml2_name: LibertaCasa SSO
|
|
||||||
saml2_email_attribute: email
|
|
||||||
saml2_external_id_attribute: uid
|
|
||||||
saml2_display_name_attributes: fullname
|
|
||||||
saml2_idp_entityid: https://libsso.net/realms/LibertaCasa
|
|
||||||
saml2_idp_sso: https://libsso.net/realms/LibertaCasa/protocol/saml
|
|
||||||
saml2_idp_slo: https://libsso.net/realms/LibertaCasa/protocol/saml
|
|
||||||
saml2_idp_x509: ${'secret_bookstack:saml2_idp_x509'}
|
|
||||||
saml2_autoload_metadata: false
|
|
||||||
saml2_sp_x509: ${'secret_bookstack:saml2_sp_x509'}
|
|
||||||
saml2_sp_x509_key: ${'secret_bookstack:saml2_sp_x509_key'}
|
|
||||||
saml2_user_to_groups: true
|
|
||||||
saml2_group_attribute: groups
|
|
||||||
saml2_remove_from_groups: true
|
|
||||||
queue_connection: database
|
|
||||||
|
|
||||||
privatebin:
|
|
||||||
main:
|
|
||||||
name: Bin
|
|
||||||
fileupload: true
|
|
||||||
syntaxhighlightingtheme: sons-of-obsidian
|
|
||||||
sizelimit: 310485760
|
|
||||||
notice: 'Note: Kittens will die if you abuse this service.'
|
|
||||||
languageselection: true
|
|
||||||
urlshortener: ${'secret_privatebin:main:urlshortener'}
|
|
||||||
qrcode: true
|
|
||||||
expire:
|
|
||||||
default: 1week
|
|
||||||
expire_options:
|
|
||||||
5min: 300
|
|
||||||
10min: 600
|
|
||||||
1hour: 3600
|
|
||||||
1day: 86400
|
|
||||||
1week: 604800
|
|
||||||
1month: 2592000
|
|
||||||
1year: 31536000
|
|
||||||
never: 0
|
|
||||||
formatter_options:
|
|
||||||
plaintext: Plain Text
|
|
||||||
syntaxhighlighting: Source Code
|
|
||||||
markdown: Markdown
|
|
||||||
traffic:
|
|
||||||
limit: 10
|
|
||||||
header: X_FORWARDED_FOR
|
|
||||||
dir: /var/lib/PrivateBin/limits
|
|
||||||
purge:
|
|
||||||
limit: 300
|
|
||||||
batchsize: 10
|
|
||||||
dir: /var/lib/PrivateBin/limits
|
|
||||||
model:
|
|
||||||
class: Database
|
|
||||||
model_options:
|
|
||||||
dsn: ${'secret_privatebin:model_options:dsn'}
|
|
||||||
tbl: privatebin_
|
|
||||||
usr: ${'secret_privatebin:model_options:usr'}
|
|
||||||
pwd: ${'secret_privatebin:model_options:pwd'}
|
|
||||||
opt[12]: true
|
|
||||||
|
|
||||||
manage_firewall: True
|
|
||||||
firewalld:
|
|
||||||
zones:
|
|
||||||
backend:
|
|
||||||
services:
|
|
||||||
- https
|
|
@ -1,7 +0,0 @@
|
|||||||
manage_firewall: True
|
|
||||||
firewalld:
|
|
||||||
zones:
|
|
||||||
public:
|
|
||||||
services:
|
|
||||||
- http
|
|
||||||
- https
|
|
@ -1 +0,0 @@
|
|||||||
# empty
|
|
@ -1,2 +0,0 @@
|
|||||||
include:
|
|
||||||
- role.ha-node
|
|
@ -1,8 +0,0 @@
|
|||||||
firewalld:
|
|
||||||
zones:
|
|
||||||
internal:
|
|
||||||
protocols:
|
|
||||||
- vrrp
|
|
||||||
backend:
|
|
||||||
protocols:
|
|
||||||
- udp
|
|
@ -1,2 +0,0 @@
|
|||||||
memcached:
|
|
||||||
listen_address: /run/memcached/memcached.sock
|
|
@ -1,11 +0,0 @@
|
|||||||
prometheus:
|
|
||||||
wanted:
|
|
||||||
component:
|
|
||||||
- alertmanager
|
|
||||||
pkg:
|
|
||||||
component:
|
|
||||||
alertmanager:
|
|
||||||
config:
|
|
||||||
global:
|
|
||||||
resolve_timeout: 5m
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
|||||||
prometheus:
|
|
||||||
wanted:
|
|
||||||
component:
|
|
||||||
- blackbox_exporter
|
|
||||||
pkg:
|
|
||||||
component:
|
|
||||||
blackbox_exporter:
|
|
||||||
config:
|
|
||||||
modules:
|
|
||||||
http_2xx:
|
|
||||||
prober: http
|
|
||||||
timeout: 15s
|
|
||||||
http_post_2xx:
|
|
||||||
prober: http
|
|
||||||
http:
|
|
||||||
method: POST
|
|
||||||
http_3xx:
|
|
||||||
prober: http
|
|
||||||
timeout: 5s
|
|
||||||
http:
|
|
||||||
method: HEAD
|
|
||||||
no_follow_redirects: true
|
|
||||||
valid_status_codes: [301, 302]
|
|
||||||
tcp_connect:
|
|
||||||
prober: tcp
|
|
||||||
ssh_banner:
|
|
||||||
prober: tcp
|
|
||||||
tcp:
|
|
||||||
query_response:
|
|
||||||
- expect: "^SSH-2.0-"
|
|
||||||
irc_banner:
|
|
||||||
prober: tcp
|
|
||||||
tcp:
|
|
||||||
query_response:
|
|
||||||
- send: "NICK prober"
|
|
||||||
- send: "USER prober prober prober :prober"
|
|
||||||
- expect: "PING :([^ ]+)"
|
|
||||||
send: "PONG ${1}"
|
|
||||||
- expect: "^:[^ ]+ 001"
|
|
||||||
icmp:
|
|
||||||
prober: icmp
|
|
||||||
|
|
||||||
firewalld:
|
|
||||||
zones:
|
|
||||||
internal:
|
|
||||||
ports:
|
|
||||||
- comment: 'Prometheus Blackbox Exporter'
|
|
||||||
port: 9115
|
|
||||||
protocol: tcp
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
prometheus:
|
|
||||||
wanted:
|
|
||||||
component:
|
|
||||||
- prometheus
|
|
||||||
pkg:
|
|
||||||
component:
|
|
||||||
prometheus:
|
|
||||||
config:
|
|
||||||
global:
|
|
||||||
scrape_interval: 15s
|
|
||||||
evaluation_interval: 1m
|
|
||||||
|
|
||||||
firewalld:
|
|
||||||
zones:
|
|
||||||
internal:
|
|
||||||
services:
|
|
||||||
- prometheus
|
|
@ -1 +0,0 @@
|
|||||||
# empty
|
|
@ -1 +0,0 @@
|
|||||||
# empty
|
|
@ -21,7 +21,7 @@ salt:
|
|||||||
- roots
|
- roots
|
||||||
- git
|
- git
|
||||||
file_roots:
|
file_roots:
|
||||||
__env__:
|
production:
|
||||||
{%- for formula in formulas %}
|
{%- for formula in formulas %}
|
||||||
- /srv/formulas/{{ formula }}-formula
|
- /srv/formulas/{{ formula }}-formula
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
@ -30,7 +30,6 @@ salt:
|
|||||||
- https://git.com.de/LibertaCasa/salt.git:
|
- https://git.com.de/LibertaCasa/salt.git:
|
||||||
- user: ${'secret_salt:master:gitfs_remotes:LibertaCasa:user'}
|
- user: ${'secret_salt:master:gitfs_remotes:LibertaCasa:user'}
|
||||||
- password: ${'secret_salt:master:gitfs_remotes:LibertaCasa:password'}
|
- password: ${'secret_salt:master:gitfs_remotes:LibertaCasa:password'}
|
||||||
- fallback: production
|
|
||||||
ext_pillar:
|
ext_pillar:
|
||||||
- netbox:
|
- netbox:
|
||||||
api_url: ${'secret_salt:master:ext_pillar:netbox:api_url'}
|
api_url: ${'secret_salt:master:ext_pillar:netbox:api_url'}
|
||||||
@ -60,7 +59,6 @@ salt:
|
|||||||
timeout: 20
|
timeout: 20
|
||||||
gather_job_timeout: 20
|
gather_job_timeout: 20
|
||||||
keep_jobs: 30
|
keep_jobs: 30
|
||||||
ping_on_rotate: True
|
|
||||||
user: ${'secret_salt:master:user'}
|
user: ${'secret_salt:master:user'}
|
||||||
syndic_user: ${'secret_salt:master:syndic_user'}
|
syndic_user: ${'secret_salt:master:syndic_user'}
|
||||||
cache.redis.unix_socket_path: ${'secret_salt:master:cache.redis.unix_socket_path'}
|
cache.redis.unix_socket_path: ${'secret_salt:master:cache.redis.unix_socket_path'}
|
||||||
|
@ -3,7 +3,4 @@ salt:
|
|||||||
minion_remove_config: True
|
minion_remove_config: True
|
||||||
minion:
|
minion:
|
||||||
master_type: str
|
master_type: str
|
||||||
backup_mode: minion
|
|
||||||
cache_jobs: True
|
|
||||||
enable_gpu_grains: False
|
|
||||||
saltenv: production
|
saltenv: production
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
{%- set host = grains['host'] -%}
|
|
||||||
{%- set fqdn = grains['fqdn'] -%}
|
|
||||||
|
|
||||||
apache:
|
|
||||||
global:
|
|
||||||
ServerAdmin: system@lysergic.dev
|
|
||||||
|
|
||||||
profile:
|
|
||||||
apache-httpd:
|
|
||||||
snippets:
|
|
||||||
ssl_{{ host }}:
|
|
||||||
- 'SSLCertificateFile "/etc/ssl/{{ host }}/{{ fqdn }}.crt"'
|
|
||||||
- 'SSLCertificateKeyFile "/etc/ssl/{{ host }}/{{ fqdn }}.key"'
|
|
@ -1 +0,0 @@
|
|||||||
# Nothing yet
|
|
@ -1,6 +1,5 @@
|
|||||||
include:
|
include:
|
||||||
- openssh.banner
|
- openssh.banner
|
||||||
{%- if salt['pillar.get']('manage_sshd', True) %}
|
|
||||||
- openssh.config
|
- openssh.config
|
||||||
|
|
||||||
/etc/ssh/user_ca:
|
/etc/ssh/user_ca:
|
||||||
@ -11,4 +10,3 @@ include:
|
|||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
- require:
|
- require:
|
||||||
- pkg: openssh
|
- pkg: openssh
|
||||||
{%- endif %}
|
|
||||||
|
@ -1,16 +1,9 @@
|
|||||||
include:
|
include:
|
||||||
{#- drop pillar check after all firewall configurations have been imported #}
|
|
||||||
{%- if salt['pillar.get']('manage_firewall', False) %}
|
|
||||||
- firewalld
|
- firewalld
|
||||||
{%- endif %}
|
|
||||||
- profile.seccheck
|
- profile.seccheck
|
||||||
- profile.zypp
|
- profile.zypp
|
||||||
- profile.prometheus.node_exporter
|
- profile.node_exporter
|
||||||
{%- if salt['cmd.run']("awk '/^passwd/{ print $2; exit }' /etc/nsswitch.conf") == 'sss' %}
|
|
||||||
{%- do salt.log.warning('Not configuring local users due to sss') %}
|
|
||||||
{%- else %}
|
|
||||||
- users
|
- users
|
||||||
{%- endif %}
|
|
||||||
- .ssh
|
- .ssh
|
||||||
- postfix.config
|
- postfix.config
|
||||||
|
|
||||||
@ -48,28 +41,8 @@ ca-certificates-syscid:
|
|||||||
- require:
|
- require:
|
||||||
- pkgrepo: libertacasa_rpm_repository
|
- pkgrepo: libertacasa_rpm_repository
|
||||||
|
|
||||||
common_packages_install:
|
common_packages:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- names:
|
- names:
|
||||||
- fish
|
- fish
|
||||||
- system-group-wheel
|
- system-group-wheel
|
||||||
{%- if grains['virtual'] == 'kvm' %}
|
|
||||||
- qemu-guest-agent
|
|
||||||
|
|
||||||
qemu-guest-agent:
|
|
||||||
service.running:
|
|
||||||
- enable: True
|
|
||||||
- require:
|
|
||||||
- pkg: qemu-guest-agent
|
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
common_packages_remove:
|
|
||||||
pkg.removed:
|
|
||||||
- pkgs:
|
|
||||||
{#- we only use AutoYaST for the OS deployment #}
|
|
||||||
- autoyast2
|
|
||||||
- autoyast2-installation
|
|
||||||
- yast2-add-on
|
|
||||||
- yast2-services-manager
|
|
||||||
- yast2-slp
|
|
||||||
- yast2-trans-stats
|
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
{%- set snippetsdir = '/etc/apache2/snippets.d' -%}
|
|
||||||
{%- set mypillar = salt['pillar.get']('profile:apache-httpd', {}) -%}
|
|
||||||
|
|
||||||
{{ snippetsdir }}:
|
|
||||||
file.directory:
|
|
||||||
- makedirs: True
|
|
||||||
|
|
||||||
{%- if 'snippets' in mypillar %}
|
|
||||||
{%- for snippet, config in mypillar['snippets'].items() %}
|
|
||||||
{{ snippetsdir }}/{{ snippet }}.conf:
|
|
||||||
file.managed:
|
|
||||||
- contents:
|
|
||||||
{%- for line in config %}
|
|
||||||
- {{ line }}
|
|
||||||
{%- endfor %}
|
|
||||||
- require:
|
|
||||||
- file: {{ snippetsdir }}
|
|
||||||
{#- formula dependencies #}
|
|
||||||
- watch_in:
|
|
||||||
- service: apache-service-running
|
|
||||||
{%- endfor %}
|
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
include:
|
|
||||||
- apache.config
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
|||||||
{%- set aapillar = salt['pillar.get']('profile:apparmor') %}
|
|
||||||
|
|
||||||
{%- if 'local' in aapillar %}
|
|
||||||
{%- for profile, lines in aapillar['local'].items() %}
|
|
||||||
/etc/apparmor.d/local/{{ profile }}:
|
|
||||||
file.managed:
|
|
||||||
- contents: {{ lines }}
|
|
||||||
- watch_in:
|
|
||||||
- module: apparmor_reload
|
|
||||||
{%- endfor %}
|
|
||||||
|
|
||||||
{%- if aapillar['local'] | length %}
|
|
||||||
apparmor_reload:
|
|
||||||
module.run:
|
|
||||||
- name: service.reload
|
|
||||||
- m_name: apparmor
|
|
||||||
- onchanges:
|
|
||||||
{%- for profile in aapillar['local'] %}
|
|
||||||
- file: /etc/apparmor.d/local/{{ profile }}
|
|
||||||
{%- endfor %}
|
|
||||||
{%- endif %}
|
|
||||||
{%- endif %}
|
|
@ -1,74 +0,0 @@
|
|||||||
{%- set mypillar = salt['pillar.get']('profile:bookstack', {}) -%}
|
|
||||||
{%- set configfile = '/etc/sysconfig/BookStack' -%}
|
|
||||||
|
|
||||||
bookstack_packages:
|
|
||||||
pkg.installed:
|
|
||||||
- names:
|
|
||||||
- BookStack-config-php-fpm-apache
|
|
||||||
|
|
||||||
bookstack_permissions:
|
|
||||||
file.managed:
|
|
||||||
- mode: '0640'
|
|
||||||
- user: root
|
|
||||||
- group: www
|
|
||||||
- names:
|
|
||||||
- {{ configfile }}
|
|
||||||
|
|
||||||
{%- if mypillar | length %}
|
|
||||||
{{ configfile }}:
|
|
||||||
file.keyvalue:
|
|
||||||
- separator: '='
|
|
||||||
- show_changes: False
|
|
||||||
- require:
|
|
||||||
- pkg: bookstack_packages
|
|
||||||
- key_values:
|
|
||||||
{%- macro condconf(option) %}
|
|
||||||
{%- if option in mypillar -%}
|
|
||||||
{%- if ( mypillar[option] is string and mypillar[option].startswith('$') ) or mypillar[option] is number %}
|
|
||||||
{%- set value = mypillar[option] %}
|
|
||||||
{%- else %}
|
|
||||||
{%- set value = "\"'" ~ mypillar[option] ~ "'\"" %}
|
|
||||||
{%- endif %}
|
|
||||||
{{ option | upper }}: {{ value }}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- endmacro %}
|
|
||||||
{{ condconf('app_url') }}
|
|
||||||
{{ condconf('db_host') }}
|
|
||||||
{{ condconf('db_database') }}
|
|
||||||
{{ condconf('db_username') }}
|
|
||||||
{{ condconf('db_password') }}
|
|
||||||
{{ condconf('mail_driver') }}
|
|
||||||
{{ condconf('mail_from_name') }}
|
|
||||||
{{ condconf('mail_from') }}
|
|
||||||
{{ condconf('mail_host') }}
|
|
||||||
{{ condconf('mail_port') }}
|
|
||||||
{{ condconf('mail_username') }}
|
|
||||||
{{ condconf('mail_password') }}
|
|
||||||
{{ condconf('mail_encryption') }}
|
|
||||||
{{ condconf('app_theme') }}
|
|
||||||
{{ condconf('cache_driver') }}
|
|
||||||
{{ condconf('session_driver') }}
|
|
||||||
{{ condconf('memcached_servers') }}
|
|
||||||
{{ condconf('session_secure_cookie') }}
|
|
||||||
{{ condconf('session_cookie_name') }}
|
|
||||||
{{ condconf('app_debug') }}
|
|
||||||
{{ condconf('session_lifetime') }}
|
|
||||||
{{ condconf('auth_method') }}
|
|
||||||
{{ condconf('auth_auto_initiate') }}
|
|
||||||
{{ condconf('saml2_name') }}
|
|
||||||
{{ condconf('saml2_email_attribute') }}
|
|
||||||
{{ condconf('saml2_external_id_attribute') }}
|
|
||||||
{{ condconf('saml2_display_name_attributes') }}
|
|
||||||
{{ condconf('saml2_idp_entityid') }}
|
|
||||||
{{ condconf('saml2_idp_sso') }}
|
|
||||||
{{ condconf('saml2_idp_slo') }}
|
|
||||||
{{ condconf('saml2_idp_x509') }}
|
|
||||||
{{ condconf('saml2_autoload_metadata') }}
|
|
||||||
{{ condconf('saml2_sp_x509') }}
|
|
||||||
{{ condconf('saml2_user_to_groups') }}
|
|
||||||
{{ condconf('saml2_group_attribute') }}
|
|
||||||
{{ condconf('saml2_remove_from_groups') }}
|
|
||||||
{{ condconf('saml2_dump_user_details') }}
|
|
||||||
{{ condconf('queue_connection') }}
|
|
||||||
{{ condconf('app_views_books') }}
|
|
||||||
{%- endif %}
|
|
@ -1,7 +0,0 @@
|
|||||||
keepalived_script_user:
|
|
||||||
user.present:
|
|
||||||
- name: keepalived_script
|
|
||||||
- createhome: False
|
|
||||||
- home: /var/lib/keepalived
|
|
||||||
- shell: /usr/sbin/nologin
|
|
||||||
- system: True
|
|
@ -25,8 +25,6 @@ lighttpd_files:
|
|||||||
- group: lighttpd
|
- group: lighttpd
|
||||||
- mode: '0640'
|
- mode: '0640'
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- watch_in:
|
|
||||||
- service: lighttpd_service
|
|
||||||
- names:
|
- names:
|
||||||
- /etc/lighttpd/lighttpd.conf:
|
- /etc/lighttpd/lighttpd.conf:
|
||||||
- source: salt:///{{ slspath }}/files/etc/lighttpd/lighttpd.conf.j2
|
- source: salt:///{{ slspath }}/files/etc/lighttpd/lighttpd.conf.j2
|
||||||
@ -42,6 +40,3 @@ lighttpd_service:
|
|||||||
service.running:
|
service.running:
|
||||||
- name: lighttpd.service
|
- name: lighttpd.service
|
||||||
- enable: True
|
- enable: True
|
||||||
- reload: True
|
|
||||||
- require:
|
|
||||||
- pkg: lighttpd_packages
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
{%- for account, config in accounts.items() %}
|
{%- for account, config in accounts.items() %}
|
||||||
[{{ account }}]
|
[{{ account }}]
|
||||||
{%- for option, value in config.items() %}
|
{%- for option, value in config.items() %}
|
||||||
{%- if value is string or value is number %}
|
{%- if value is string %}
|
||||||
{%- set value = '"' ~ value ~ '"' %}
|
{%- set value = '"' ~ value ~ '"' %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{{ option }}={{ value }}
|
{{ option }}={{ value }}
|
||||||
|
@ -34,8 +34,6 @@ matterbridge_files:
|
|||||||
general: {{ instances[instance]['general'] | default({}) }}
|
general: {{ instances[instance]['general'] | default({}) }}
|
||||||
accounts: {{ instances[instance]['accounts'] }}
|
accounts: {{ instances[instance]['accounts'] }}
|
||||||
gateways: {{ instances[instance]['gateways'] }}
|
gateways: {{ instances[instance]['gateways'] }}
|
||||||
- watch_in:
|
|
||||||
- service: matterbridge_{{ instance }}_service
|
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
{%- for instance in instances %}
|
{%- for instance in instances %}
|
||||||
@ -46,7 +44,7 @@ matterbridge_{{ instance }}_mediadir:
|
|||||||
- user: matterbridge
|
- user: matterbridge
|
||||||
{#- to-do: implement some shared group #}
|
{#- to-do: implement some shared group #}
|
||||||
- group: lighttpd
|
- group: lighttpd
|
||||||
- mode: '0750'
|
- mode: 750
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
@ -54,8 +52,6 @@ matterbridge_{{ instance }}_service:
|
|||||||
service.running:
|
service.running:
|
||||||
- name: matterbridge@{{ instance }}.service
|
- name: matterbridge@{{ instance }}.service
|
||||||
- enable: True
|
- enable: True
|
||||||
- watch:
|
|
||||||
- file: /etc/matterbridge/{{ instance }}.toml
|
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
This profile installs a script switching failover IP addresses between Netcup hosted VM's.
|
|
||||||
|
|
||||||
Required pillar:
|
|
||||||
|
|
||||||
```
|
|
||||||
profile:
|
|
||||||
netcup_failover:
|
|
||||||
scp_user: 12345
|
|
||||||
scp_pass: xxxx
|
|
||||||
scp_server: v9876
|
|
||||||
mac_address: ff:ff:ff:ff:ff
|
|
||||||
ip4_address: xx.xx.xx.xx/32
|
|
||||||
ip6_address: 'foo:bar::/64'
|
|
||||||
```
|
|
@ -1,109 +0,0 @@
|
|||||||
{%- set header = salt['pillar.get']('managed_header_pound') -%}
|
|
||||||
{%- set mypillar = salt['pillar.get']('profile:netcup_failover') -%}
|
|
||||||
#!/bin/sh
|
|
||||||
# Floating IP switching script utilizing the Netcup API
|
|
||||||
|
|
||||||
{{ header }}
|
|
||||||
|
|
||||||
SCP_USER='{{ mypillar['scp_user'] }}'
|
|
||||||
SCP_PASS='{{ mypillar['scp_pass'] }}'
|
|
||||||
SCP_SERVER='{{ mypillar['scp_server'] }}'
|
|
||||||
MAC='{{ mypillar['mac_address'] }}'
|
|
||||||
IP_v4='{{ mypillar['ip4_address'] }}'
|
|
||||||
IP_v6='{{ mypillar['ip6_address'] }}'
|
|
||||||
|
|
||||||
URL="https://www.servercontrolpanel.de/WSEndUser?xsd=1" ### ?xsd=1 ?wsdl
|
|
||||||
|
|
||||||
usage () {
|
|
||||||
echo "$0 [--ipv4 | --ipv6 | --all] [--debug]"
|
|
||||||
exit 2
|
|
||||||
}
|
|
||||||
|
|
||||||
init () {
|
|
||||||
construct "$1"
|
|
||||||
run
|
|
||||||
parse
|
|
||||||
}
|
|
||||||
|
|
||||||
construct () {
|
|
||||||
if [ "$1" = "ip4" ];
|
|
||||||
then
|
|
||||||
local IP="$IP_v4"
|
|
||||||
fi
|
|
||||||
if [ "$1" = "ip6" ];
|
|
||||||
then
|
|
||||||
local IP="$IP_v6"
|
|
||||||
fi
|
|
||||||
local CIDR="${IP#*/}"
|
|
||||||
local IP="`echo $IP | sed "s?/$CIDR??"`"
|
|
||||||
if [ "$DEBUG" = "true" ];
|
|
||||||
then
|
|
||||||
echo "[DEBUG] Initiating: $1"
|
|
||||||
echo "[DEBUG] IP Address: $IP"
|
|
||||||
echo "[DEBUG] CIDR Mask: $CIDR"
|
|
||||||
fi
|
|
||||||
XML_BODY="<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ns1='http://enduser.service.web.vcp.netcup.de/'><SOAP-ENV:Body><ns1:changeIPRouting><loginName>$SCP_USER</loginName><password>$SCP_PASS</password><routedIP>$IP</routedIP><routedMask>$CIDR</routedMask><destinationVserverName>$SCP_SERVER</destinationVserverName><destinationInterfaceMAC>$MAC</destinationInterfaceMAC></ns1:changeIPRouting></SOAP-ENV:Body></SOAP-ENV:Envelope>"
|
|
||||||
if [ "$DEBUG" = "true" ];
|
|
||||||
then
|
|
||||||
echo "[DEBUG] Payload: $XML_BODY"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
request () {
|
|
||||||
curl -s -H 'Content-Type: text/xml' -H 'SOAPAction:' -d "$XML_BODY" -X POST "$URL"
|
|
||||||
}
|
|
||||||
|
|
||||||
run () {
|
|
||||||
RESPONSE=`request`
|
|
||||||
if [ "$DEBUG" = "true" ];
|
|
||||||
then
|
|
||||||
echo "[DEBUG] Response: $RESPONSE"
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
parse () {
|
|
||||||
local IFS='&'
|
|
||||||
local check_invalid="validation error&IP already assigned&true"
|
|
||||||
for check in $check_invalid;
|
|
||||||
do
|
|
||||||
if [ "$DEBUG" = "true" ];
|
|
||||||
then
|
|
||||||
echo "[DEBUG] Parsing: $check"
|
|
||||||
fi
|
|
||||||
if [ "${RESPONSE#*$check}" = "$RESPONSE" ];
|
|
||||||
then
|
|
||||||
result="Not found"
|
|
||||||
fi
|
|
||||||
if [ "${RESPONSE#*$check}" != "$RESPONSE" ];
|
|
||||||
then
|
|
||||||
result="Found"
|
|
||||||
fi
|
|
||||||
echo "Check for \"$check\": $result"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
MODE="$1"
|
|
||||||
|
|
||||||
if [ "$2" = "--debug" ];
|
|
||||||
then
|
|
||||||
DEBUG="true"
|
|
||||||
echo "[DEBUG] Script invoked at `date`"
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$MODE" in
|
|
||||||
"--ipv4" )
|
|
||||||
init ip4
|
|
||||||
;;
|
|
||||||
"--ipv6" )
|
|
||||||
init ip6
|
|
||||||
;;
|
|
||||||
"--all" )
|
|
||||||
init ip6
|
|
||||||
init ip4
|
|
||||||
;;
|
|
||||||
* )
|
|
||||||
usage
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
include:
|
|
||||||
- profile.keepalived_script_user
|
|
||||||
|
|
||||||
/usr/local/bin/failover:
|
|
||||||
file.managed:
|
|
||||||
- user: keepalived_script
|
|
||||||
- group: wheel
|
|
||||||
- mode: '0750'
|
|
||||||
- template: jinja
|
|
||||||
- source: salt://{{ slspath }}/files/failover.sh.j2
|
|
@ -1,55 +0,0 @@
|
|||||||
{%- set mypillar = salt['pillar.get']('profile:privatebin', {}) -%}
|
|
||||||
{%- set confdir = '/etc/PrivateBin' -%}
|
|
||||||
{%- set configfile = confdir ~ '/conf.php' -%}
|
|
||||||
|
|
||||||
privatebin_packages:
|
|
||||||
pkg.installed:
|
|
||||||
- names:
|
|
||||||
- PrivateBin-config-httpd
|
|
||||||
|
|
||||||
privatebin_clean:
|
|
||||||
file.directory:
|
|
||||||
- name: {{ confdir }}
|
|
||||||
- clean: True
|
|
||||||
- onchanges:
|
|
||||||
- pkg: privatebin_packages
|
|
||||||
- require:
|
|
||||||
- pkg: privatebin_packages
|
|
||||||
|
|
||||||
{%- if mypillar | length %}
|
|
||||||
{{ configfile }}:
|
|
||||||
ini.options_present:
|
|
||||||
- separator: '='
|
|
||||||
- strict: True
|
|
||||||
- sections:
|
|
||||||
{%- macro conf(section, options) %}
|
|
||||||
{%- for option in options.keys() -%}
|
|
||||||
{%- if ( mypillar[section][option] is string and mypillar[section][option].startswith('$') ) or mypillar[section][option] is number %}
|
|
||||||
{%- set value = mypillar[section][option] -%}
|
|
||||||
{%- else %}
|
|
||||||
{%- set value = "\"'" ~ mypillar[section][option] ~ "'\"" -%}
|
|
||||||
{%- endif %}
|
|
||||||
{{ option }}: {{ value }}
|
|
||||||
{%- endfor -%}
|
|
||||||
{%- endmacro %}
|
|
||||||
{%- for section, options in mypillar.items() %}
|
|
||||||
{{ section }}:
|
|
||||||
{{ conf(section, options) }}
|
|
||||||
{%- endfor %}
|
|
||||||
- require:
|
|
||||||
- pkg: privatebin_packages
|
|
||||||
- watch:
|
|
||||||
- file: privatebin_clean
|
|
||||||
- watch_in:
|
|
||||||
- file: privatebin_permissions
|
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
privatebin_permissions:
|
|
||||||
file.managed:
|
|
||||||
- mode: '0640'
|
|
||||||
- user: wwwrun
|
|
||||||
- group: privatebin
|
|
||||||
- names:
|
|
||||||
- {{ configfile }}
|
|
||||||
- require:
|
|
||||||
- pkg: privatebin_packages
|
|
@ -1,18 +0,0 @@
|
|||||||
{%- set mypillar = salt['pillar.get']('profile:prometheus:targets') %}
|
|
||||||
{%- set targetsdir = '/etc/prometheus/targets' %}
|
|
||||||
|
|
||||||
{%- if mypillar | length %}
|
|
||||||
{{ targetsdir }}:
|
|
||||||
file.directory:
|
|
||||||
- group: prometheus
|
|
||||||
|
|
||||||
{%- for group, nodes in mypillar.items() %}
|
|
||||||
{{ targetsdir }}/{{ group }}.json:
|
|
||||||
file.serialize:
|
|
||||||
- dataset: {{ nodes }}
|
|
||||||
- serializer: json
|
|
||||||
{%- endfor %}
|
|
||||||
|
|
||||||
{%- else %}
|
|
||||||
{%- do salt.log.debug('profile.prometheus: no targets defined') %}
|
|
||||||
{%- endif %}
|
|
@ -1,6 +0,0 @@
|
|||||||
salt_master_formulas:
|
|
||||||
git.latest:
|
|
||||||
- name: https://git.com.de/LibertaCasa/salt-formulas.git
|
|
||||||
- target: /srv/formulas
|
|
||||||
- branch: production
|
|
||||||
- submodules: True
|
|
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
include:
|
include:
|
||||||
- salt.master
|
- salt.master
|
||||||
- .formulas
|
|
||||||
|
|
||||||
salt_master_extension_modules_dirs:
|
salt_master_extension_modules_dirs:
|
||||||
file.directory:
|
file.directory:
|
||||||
@ -18,7 +17,7 @@ salt_master_extension_modules_dirs:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
- user: root
|
- user: root
|
||||||
- group: salt
|
- group: salt
|
||||||
- mode: '0755'
|
- mode: 0755
|
||||||
|
|
||||||
salt_master_extension_modules_bins:
|
salt_master_extension_modules_bins:
|
||||||
file.managed:
|
file.managed:
|
||||||
@ -31,17 +30,24 @@ salt_master_extension_modules_bins:
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
- user: root
|
- user: root
|
||||||
- group: salt
|
- group: salt
|
||||||
- mode: '0640'
|
- mode: 0640
|
||||||
- require:
|
- require:
|
||||||
- file: salt_master_extension_modules_dirs
|
- file: salt_master_extension_modules_dirs
|
||||||
|
|
||||||
|
salt_master_formulas:
|
||||||
|
git.latest:
|
||||||
|
- name: https://git.com.de/LibertaCasa/salt-formulas.git
|
||||||
|
- target: /srv/formulas
|
||||||
|
- branch: production
|
||||||
|
- submodules: True
|
||||||
|
|
||||||
salt_master_extra_packages:
|
salt_master_extra_packages:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- names:
|
- names:
|
||||||
- python3-ldap
|
- python3-ldap
|
||||||
- python3-pynetbox
|
- python3-pynetbox
|
||||||
- python3-redis
|
- python3-redis
|
||||||
- redis7
|
- redis
|
||||||
- salt-bash-completion
|
- salt-bash-completion
|
||||||
- salt-fish-completion
|
- salt-fish-completion
|
||||||
- salt-keydiff
|
- salt-keydiff
|
||||||
@ -66,29 +72,29 @@ salt_master_extra_packages:
|
|||||||
- requirepass {{ master_pillar['cache.redis.password'] }}
|
- requirepass {{ master_pillar['cache.redis.password'] }}
|
||||||
- user: root
|
- user: root
|
||||||
- group: redis
|
- group: redis
|
||||||
- mode: '0640'
|
- mode: 0640
|
||||||
- require:
|
- require:
|
||||||
- pkg: redis7
|
- pkg: redis
|
||||||
|
|
||||||
/var/lib/redis/salt:
|
/var/lib/redis/salt:
|
||||||
file.directory:
|
file.directory:
|
||||||
- user: redis
|
- user: redis
|
||||||
- group: redis
|
- group: redis
|
||||||
- mode: '0750'
|
- mode: 0750
|
||||||
- require:
|
- require:
|
||||||
- pkg: redis7
|
- pkg: redis
|
||||||
|
|
||||||
salt_redis_service_enable:
|
salt_redis_service_enable:
|
||||||
service.enabled:
|
service.enabled:
|
||||||
- name: {{ redis_service }}
|
- name: {{ redis_service }}
|
||||||
- require:
|
- require:
|
||||||
- pkg: redis7
|
- pkg: redis
|
||||||
|
|
||||||
salt_redis_service_start:
|
salt_redis_service_start:
|
||||||
service.running:
|
service.running:
|
||||||
- name: {{ redis_service }}
|
- name: {{ redis_service }}
|
||||||
- require:
|
- require:
|
||||||
- pkg: redis7
|
- pkg: redis
|
||||||
- watch:
|
- watch:
|
||||||
- file: {{ redis_config }}
|
- file: {{ redis_config }}
|
||||||
|
|
||||||
@ -96,7 +102,7 @@ salt_redis_membership:
|
|||||||
group.present:
|
group.present:
|
||||||
- name: redis
|
- name: redis
|
||||||
- require:
|
- require:
|
||||||
- pkg: redis7
|
- pkg: redis
|
||||||
- addusers:
|
- addusers:
|
||||||
- {{ master_pillar['user'] }}
|
- {{ master_pillar['user'] }}
|
||||||
{%- if pillar['secret_salt'] is defined %}
|
{%- if pillar['secret_salt'] is defined %}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{%- set netbox_pillar = salt['pillar.get']('netbox') -%}
|
{%- set netbox_pillar = salt['pillar.get']('netbox') -%}
|
||||||
{%- if 'custom_fields' in netbox_pillar
|
{%- if 'custom_fields' in netbox_pillar and netbox_pillar['custom_fields']['salt_roles'] is not none and 'salt.syndic' in netbox_pillar['custom_fields']['salt_roles'] -%}
|
||||||
and netbox_pillar['custom_fields']['salt_roles'] is not none
|
|
||||||
and 'salt.syndic' in netbox_pillar['custom_fields']['salt_roles'] -%}
|
|
||||||
{%- set master = salt['pillar.get']('salt:master:syndic_master') -%}
|
{%- set master = salt['pillar.get']('salt:master:syndic_master') -%}
|
||||||
{%- elif 'config_context' in netbox_pillar -%}
|
{%- elif 'config_context' in netbox_pillar -%}
|
||||||
{%- set master = netbox_pillar['config_context']['salt_master'] -%}
|
{%- set master = netbox_pillar['config_context']['salt_master'] -%}
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
include:
|
|
||||||
- role.web.apache-httpd
|
|
||||||
- role.memcached
|
|
||||||
- profile.bookstack
|
|
||||||
- php.fpm
|
|
@ -1,3 +0,0 @@
|
|||||||
include:
|
|
||||||
- profile.netcup_failover
|
|
||||||
- role.ha-node
|
|
@ -1,2 +0,0 @@
|
|||||||
include:
|
|
||||||
- memcached.config
|
|
@ -1,2 +0,0 @@
|
|||||||
include:
|
|
||||||
- prometheus.config
|
|
@ -1,2 +0,0 @@
|
|||||||
include:
|
|
||||||
- prometheus.config
|
|
@ -1,3 +0,0 @@
|
|||||||
include:
|
|
||||||
- prometheus.config
|
|
||||||
- profile.prometheus.targets
|
|
@ -1,2 +0,0 @@
|
|||||||
include:
|
|
||||||
- php.fpm
|
|
@ -1,4 +0,0 @@
|
|||||||
include:
|
|
||||||
- role.web.apache-httpd
|
|
||||||
- profile.privatebin
|
|
||||||
- php.fpm
|
|
@ -1,6 +1,5 @@
|
|||||||
include:
|
include:
|
||||||
- nginx.pkg
|
- nginx.pkg
|
||||||
- profile.apparmor.local
|
|
||||||
- nginx.config
|
- nginx.config
|
||||||
- nginx.snippets
|
- nginx.snippets
|
||||||
- nginx.servers
|
- nginx.servers
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
include:
|
|
||||||
- profile.apache-httpd
|
|
Loading…
Reference in New Issue
Block a user