Skip to content

Commit

Permalink
Merge branch 'rework-post-kubernetes' of github.com:SovereignCloudSta…
Browse files Browse the repository at this point in the history
…ck/hardware-landscape into rework-post-kubernetes
  • Loading branch information
scoopex committed Jul 7, 2024
2 parents ab479b7 + ea6eff1 commit ec2c137
Show file tree
Hide file tree
Showing 14 changed files with 494 additions and 509 deletions.
2 changes: 1 addition & 1 deletion documentation/System_Runbooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
echo "${VPN_KEYDIR?}"
cat ${VPN_KEYDIR?}/wireguard_public.key
```
* User: Edit [../inventory/group_vars/all.yml](../inventory/group_vars/all.yml) in section ``wireguard_users``
* User: Edit [../inventory/group_vars/wireguard.yml](../inventory/group_vars/wireguard.yml) in section ``wireguard_users``
* Add username (same as github handle)
* Add public key to user entry
* Remove outdated users
Expand Down
6 changes: 3 additions & 3 deletions documentation/System_Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ of your local system to simplify access to systems of the vp18 hardware landscap
* Add this snippet to your SSH configuration:
```
cat >> ~/.ssh/config <<EOF
Include ${SCS_ENV_DIR:?}/hardware-landscape/config-snippets/ssh_config_scs_servers
Include ${SCS_ENV_DIR:?}/hardware-landscape/config-snippets/ssh_config_scs_switches
Include ${SCS_ENV_DIR:?}/hardware-landscape/config-snippets/ssh_config_scs_general
Include ${SCS_ENV_DIR:?}/config-snippets/ssh_config_scs_servers
Include ${SCS_ENV_DIR:?}/config-snippets/ssh_config_scs_switches
Include ${SCS_ENV_DIR:?}/config-snippets/ssh_config_scs_general
Host scs-node-*
ProxyJump scs-manager
Expand Down
14 changes: 14 additions & 0 deletions environments/custom/playbook-lvm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# https://docs.debops.org/en/stable-3.1/ansible/roles/lvm/defaults/main.html#volume-groups-and-logical-volumes
- name: Manage LVM volumes
hosts: generic
gather_facts: yes
become: true
tasks:
- name: Manage LVM Logical Volumes
community.general.lvol:
lv: '{{ item.lv }}'
vg: '{{ item.vg }}'
size: '{{ item.size }}'
force: '{{ item.force | d(omit) }}'
state: 'present'
with_items: '{{ logical_volumes }}'
1 change: 1 addition & 0 deletions environments/custom/playbook-scs_all_nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
become: true
roles:
- scs-landscape-nodes
- debops.lvm
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,6 @@ if [ -d /opt/configuration ];then
cd /opt/configuration
fi

alias df='df -h -x squashfs -x tmpfs -x devtmpfs -x overlay'

export PATH="/usr/local/scripts:$PATH"
875 changes: 444 additions & 431 deletions environments/secrets.yml

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions inventory/group_vars/control.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,16 @@ chrony_allowed_subnets:
# strictly in a client-only mode.
chrony_bind_local_interfaces_only: false


logical_volumes:
- lv: 'log'
vg: 'system'
size: '30G'
resizefs: true
force: true
- lv: 'docker'
vg: 'system'
size: '100G'
resizefs: true
force: true

1 change: 1 addition & 0 deletions inventory/group_vars/generic/15_lvm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
logical_volumes: []
25 changes: 0 additions & 25 deletions inventory/group_vars/generic/ceph.yml

This file was deleted.

25 changes: 0 additions & 25 deletions inventory/group_vars/generic/chrony.yml

This file was deleted.

12 changes: 0 additions & 12 deletions inventory/group_vars/generic/dhcpd.yml

This file was deleted.

10 changes: 0 additions & 10 deletions inventory/group_vars/generic/motd.yml

This file was deleted.

12 changes: 12 additions & 0 deletions inventory/group_vars/manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,15 @@ tinyproxy_allowed_networks:
# - ^.*debian.*$
# - ^.*ubuntu.*$


logical_volumes:
- lv: 'log'
vg: 'system'
size: '30G'
resizefs: true
force: true
- lv: 'docker'
vg: 'system'
size: '100G'
resizefs: true
force: true
5 changes: 3 additions & 2 deletions inventory/group_vars/wireguard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ wireguard_users:
- name: scoopex
key: 3XfXCmSo5+2kCrUgI/OmQDxSrx3gnomvFESNUhXVflw=
ip: 10.10.1.20


- name: matofeder
key: EkL7bli2t4EJSDYo4Edyhg8enHI1zOR+A54Ghco1OlY=
ip: 10.10.1.21

0 comments on commit ec2c137

Please sign in to comment.