Skip to content

Commit 1155035

Browse files
authored
Merge branch 'main' into improve_yaml
2 parents 270d57a + 858cdc2 commit 1155035

File tree

16 files changed

+54
-14
lines changed

16 files changed

+54
-14
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
- name: Assign roles to all hosts
33
hosts: generic
4-
become: true
4+
become: yes
5+
gather_facts: no
56
roles:
67
- scs-landscape-nodes
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
---
22
# defaults file for scs-landscape
3+
logical_volumes: []

environments/custom/roles/scs-landscape-nodes/files/scripts/scs_profile.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,6 @@ if [ -d /opt/configuration ];then
8080
cd /opt/configuration
8181
fi
8282

83+
alias df='df -h -x squashfs -x tmpfs -x devtmpfs -x overlay'
84+
8385
export PATH="/usr/local/scripts:$PATH"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# https://docs.debops.org/en/stable-3.1/ansible/roles/lvm/defaults/main.html#volume-groups-and-logical-volumes
2+
- name: Manage LVM Logical Volumes
3+
community.general.lvol:
4+
lv: '{{ lv_item.lv }}'
5+
vg: '{{ lv_item.vg }}'
6+
size: '{{ lv_item.size }}'
7+
force: '{{ lv_item.force | d(omit) }}'
8+
state: 'present'
9+
loop: '{{ logical_volumes }}'
10+
loop_control:
11+
loop_var: lv_item
12+
tags: manage_lvm
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
- name: Setup Manager
1+
- name: Setup Node
22
include_tasks: "{{ item }}"
33
loop:
4+
- lvm.yml
45
- scripts.yml
56
- vim.yml
67
- packages.yml
8+
tags: manage_lvm
79

environments/custom/roles/scs-landscape-nodes/tasks/scripts.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
- name: Remove ceph wrapper
2-
become: yes
3-
file:
4-
path: /usr/local/bin/ceph
5-
state: absent
6-
71
- name: Synchronize all scs helper scripts
82
become: yes
93
tags: scripts

environments/manager/configuration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ configuration_git_protocol: ssh
6464
configuration_git_repository: SovereignCloudStack/hardware-landscape
6565
configuration_git_username: git
6666

67-
configuration_git_version: rework-post7-0-5
67+
configuration_git_version: rework-post-kubernetes

inventory/group_vars/control.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,14 @@ chrony_allowed_subnets:
2121
# strictly in a client-only mode.
2222
chrony_bind_local_interfaces_only: false
2323

24+
logical_volumes:
25+
- lv: 'log'
26+
vg: 'system'
27+
size: '30G'
28+
resizefs: true
29+
force: true
30+
- lv: 'docker'
31+
vg: 'system'
32+
size: '100G'
33+
resizefs: true
34+
force: true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
logical_volumes: []

inventory/group_vars/manager.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,14 @@ tinyproxy_allowed_networks:
3737
# - ^.*debian.*$
3838
# - ^.*ubuntu.*$
3939

40+
logical_volumes:
41+
- lv: 'log'
42+
vg: 'system'
43+
size: '30G'
44+
resizefs: true
45+
force: true
46+
- lv: 'docker'
47+
vg: 'system'
48+
size: '100G'
49+
resizefs: true
50+
force: true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1+
---
22
chrony_bindaddresses: [ "{{ internal_address }}" ]

inventory/host_vars/st01-sw100g-r01-u36/01_base.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ device_model: 7726-32X-O-AC-B
1111
mgmt_mac: 90:2d:77:58:27:50
1212
mgmt_address: 10.10.23.110
1313
serial_device: BCBRb113318
14-
bgp_asn: 65501
14+
bgp_asn: 65501
15+

inventory/host_vars/st01-sw100g-r01-u37/01_base.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ device_model: 7726-32X-O-AC-B
1111
mgmt_mac: 90:2d:77:58:26:50
1212
mgmt_address: 10.10.23.109
1313
serial_device: DEABb113318
14-
bgp_asn: 65501
14+
bgp_asn: 65501
15+

inventory/host_vars/st01-sw25g-r01-u34/01_base.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ device_model: 7326-56X-O-AC-B
1111
mgmt_mac: d0:77:ce:4b:b4:7a
1212
mgmt_address: 10.10.23.107
1313
serial_device: CGBSb113318
14-
bgp_asn: 65504
14+
bgp_asn: 65504
15+

inventory/host_vars/st01-sw25g-r01-u35/01_base.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ device_model: 7326-56X-O-AC-B
1111
mgmt_mac: d0:77:ce:c1:63:80
1212
mgmt_address: 10.10.23.108
1313
serial_device: BSAHb113318
14-
bgp_asn: 65505
14+
bgp_asn: 65505
15+

inventory/host_vars/switches-template.yml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ mgmt_mac: {{ bmc_mac }}
1212
mgmt_address: {{ bmc_ip_v4 }}
1313
serial_device: {{ serial_device }}
1414
bgp_asn: {{ asn }}
15+

0 commit comments

Comments
 (0)