Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions pillar/cms_maintenance.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ maintenance:
rkhunter_customisation: |
ALLOW_SSH_ROOT_USER=yes
ALLOWDEVFILE=/dev/shm/sem.haveged_sem
ALLOWHIDDENFILE=/etc/.resolv.conf.systemd-resolved.bak
ALLOWHIDDENFILE=/etc/.updated
4 changes: 2 additions & 2 deletions pillar/prometheus_client.sls
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
firewall:
prometheus_ipv4: 139.162.253.17
prometheus_ipv6: "2a01:7e00::f03c:93ff:fe13:a12c 2a01:7e00:e000:4e0::/64"
prometheus_ipv4: 178.79.132.58
prometheus_ipv6: "2a01:7e00::2000:a4ff:fe05:0492 2a01:7e00:e000:4e3::/64"

prometheus:
node_exporter:
Expand Down
8 changes: 4 additions & 4 deletions pillar/prometheus_server.sls
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
network:
host_id: ocp20
ipv4: 139.162.253.17
ipv6: "2a01:7e00:e000:04e0::"
host_id: ocp31
ipv4: 178.79.132.58
ipv6: "2a01:7e00:e000:04e3::"
networkd:
template: linode
gateway4: 139.162.253.1
gateway4: 178.79.132.1

prometheus:
prometheus:
Expand Down
4 changes: 1 addition & 3 deletions pillar/prometheus_server_maintenance.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ maintenance:
patching: manual
rkhunter_customisation: |
ALLOW_SSH_ROOT_USER=yes
RTKT_FILE_WHITELIST=/usr/lib/x86_64-linux-gnu/libkeyutils.so.1.9
USER_FILEPROP_FILES_DIRS=/usr/lib/x86_64-linux-gnu/libkeyutils.so.1.9
PORT_PATH_WHITELIST=/usr/sbin/apache2:TCP:60922
ALLOWDEVFILE=/dev/shm/sem.haveged_sem
4 changes: 3 additions & 1 deletion salt-config/roster
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cove:
docs:
host: ocp19.open-contracting.org
prometheus:
host: ocp20.open-contracting.org
host: ocp31.open-contracting.org

# Hetzner Cloud

Expand Down Expand Up @@ -43,6 +43,8 @@ registry:
# ocp16 was redmine (crm.open-contracting.org)
# ocp17 was cove-oc4ids
# ocp18 was cove on Ubuntu 22
# ocp20 was prometheus on Ubuntu 22
# ocp21 was cms on Ubuntu 22
# ocp22 was credere-dev
# ocp24 was credere-production
# ocp26 was portland-dev
Expand Down
3 changes: 2 additions & 1 deletion salt/apache/files/sites/_common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{%- set ssl = pillar.apache.get('public_access') and https -%}
{#- MDRequireHttps requires a virtual host on port 80. -#}
{%- set ports = [80, 443] if ssl else [80] -%}
{%- set pending_sites = pillar.pending_sites|default([]) %}

{%- macro address(port) -%}
{{ pillar.apache.ipv4 if 'ipv4' in pillar.apache else '*' }}:{{ port }}{% if 'ipv6' in pillar.apache %} [{{ pillar.apache.ipv6 }}]:{{ port }}{% endif %}
Expand All @@ -18,7 +19,7 @@
{%- if ssl and servername -%}
<MDomain {{ ([servername] + serveraliases)|join(' ') }}>
MDRequireHttps permanent
{%- if filename in pillar.pending_sites|default([]) %}
{%- if "*" in pending_sites or filename in pending_sites %}
MDRenewMode manual
{%- endif %}
</MDomain>
Expand Down
6 changes: 6 additions & 0 deletions salt/grafana/files/dashboards.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: 1

providers:
- name: 'OCP Deploy Managed'
options:
path: /var/lib/grafana/dashboards
Loading
Loading