Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
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
3 changes: 2 additions & 1 deletion environments/custom/playbook-scs_all_nodes.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
- name: Assign roles to all hosts
hosts: generic
become: true
become: yes
gather_facts: no
roles:
- scs-landscape-nodes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
---
# defaults file for scs-landscape
logical_volumes: []
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"
12 changes: 12 additions & 0 deletions environments/custom/roles/scs-landscape-nodes/tasks/lvm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://docs.debops.org/en/stable-3.1/ansible/roles/lvm/defaults/main.html#volume-groups-and-logical-volumes
- name: Manage LVM Logical Volumes
community.general.lvol:
lv: '{{ lv_item.lv }}'
vg: '{{ lv_item.vg }}'
size: '{{ lv_item.size }}'
force: '{{ lv_item.force | d(omit) }}'
state: 'present'
loop: '{{ logical_volumes }}'
loop_control:
loop_var: lv_item
tags: manage_lvm
4 changes: 3 additions & 1 deletion environments/custom/roles/scs-landscape-nodes/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
- name: Setup Manager
- name: Setup Node
include_tasks: "{{ item }}"
loop:
- lvm.yml
- scripts.yml
- vim.yml
- packages.yml
tags: manage_lvm

Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
- name: Remove ceph wrapper
become: yes
file:
path: /usr/local/bin/ceph
state: absent

- name: Synchronize all scs helper scripts
become: yes
tags: scripts
Expand Down
2 changes: 1 addition & 1 deletion environments/manager/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ configuration_git_protocol: ssh
configuration_git_repository: SovereignCloudStack/hardware-landscape
configuration_git_username: git

configuration_git_version: rework-post7-0-5
configuration_git_version: rework-post-kubernetes
11 changes: 11 additions & 0 deletions inventory/group_vars/control.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,14 @@ 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: []
11 changes: 11 additions & 0 deletions inventory/group_vars/manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,14 @@ 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
2 changes: 1 addition & 1 deletion inventory/host_vars/st01-mgmt-r01-u31/02_chrony.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

---
chrony_bindaddresses: [ "{{ internal_address }}" ]
3 changes: 2 additions & 1 deletion inventory/host_vars/st01-sw100g-r01-u36/01_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ device_model: 7726-32X-O-AC-B
mgmt_mac: 90:2d:77:58:27:50
mgmt_address: 10.10.23.110
serial_device: BCBRb113318
bgp_asn: 65501
bgp_asn: 65501

3 changes: 2 additions & 1 deletion inventory/host_vars/st01-sw100g-r01-u37/01_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ device_model: 7726-32X-O-AC-B
mgmt_mac: 90:2d:77:58:26:50
mgmt_address: 10.10.23.109
serial_device: DEABb113318
bgp_asn: 65501
bgp_asn: 65501

3 changes: 2 additions & 1 deletion inventory/host_vars/st01-sw25g-r01-u34/01_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ device_model: 7326-56X-O-AC-B
mgmt_mac: d0:77:ce:4b:b4:7a
mgmt_address: 10.10.23.107
serial_device: CGBSb113318
bgp_asn: 65504
bgp_asn: 65504

3 changes: 2 additions & 1 deletion inventory/host_vars/st01-sw25g-r01-u35/01_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ device_model: 7326-56X-O-AC-B
mgmt_mac: d0:77:ce:c1:63:80
mgmt_address: 10.10.23.108
serial_device: BSAHb113318
bgp_asn: 65505
bgp_asn: 65505

1 change: 1 addition & 0 deletions inventory/host_vars/switches-template.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ mgmt_mac: {{ bmc_mac }}
mgmt_address: {{ bmc_ip_v4 }}
serial_device: {{ serial_device }}
bgp_asn: {{ asn }}