Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • master
  • reinstall-2023
2 results

Target

Select target project
  • kszk/sysadmin/vsalgo-ansible
1 result
Select Git revision
  • master
  • reinstall-2023
2 results
Show changes

Commits on Source 3

[global]
controllers=10.0.42.101,10.0.42.102,10.0.42.103
[[promoter]]
id = "linstor_db"
[promoter.resources.linstor_db]
start = ["var-lib-linstor.mount", "linstor-controller.service"]
NodeConnections:
- Node1: vsalgo-node-1
Node2: vsalgo-node-2
RequiredConnections: [ cluster, admin, internal ]
- Node1: vsalgo-node-2
Node2: vsalgo-node-3
RequiredConnections: [ cluster, admin, internal ]
- Node1: vsalgo-node-1
Node2: vsalgo-node-3
RequiredConnections: [ cluster, admin, internal ]
\ No newline at end of file
[Service]
Environment=LS_KEEP_RES=linstor_db
Type=notify
TimeoutStartSec=infinity
[Unit]
Description=Filesystem for the LINSTOR controller
[Mount]
# you can use the minor like /dev/drbdX or the udev symlink
What=/dev/drbd/by-res/linstor_db/0
Where=/var/lib/linstor
\ No newline at end of file
......@@ -17,6 +17,7 @@
- linstor-satellite
- linstor-client
- linstor-proxmox
- drbd-reactor
state: present
- name: Enable linstor-satellite
......@@ -28,5 +29,65 @@
- name: Disable linstor-controller
systemd:
service: linstor-controller
state: stopped
enabled: no
- name: copy latest binary of linstor-defaults
get_url:
url: https://git.sch.bme.hu/kszk/sysadmin/memory-storage-defaults/-/jobs/artifacts/master/raw/memory-defaults?job=build
dest: /usr/local/bin/memory-defaults
mode: 0755
- name: copy linstor-defaults config
copy:
dest: /etc/memory-defaults.yaml
src: memory-defaults.yaml
- name: add systemd unit 1
get_url:
url: https://git.sch.bme.hu/kszk/sysadmin/memory-storage-defaults/-/raw/master/systemd/memory-defaults.service
dest: /etc/systemd/system/memory-defaults.service
- name: add systemd unit 2 (timer)
get_url:
url: https://git.sch.bme.hu/kszk/sysadmin/memory-storage-defaults/-/raw/master/systemd/memory-defaults.timer
dest: /etc/systemd/system/memory-defaults.timer
- name: start systemd timer (unit 2)
systemd:
state: started
enabled: yes
name: memory-defaults.timer
- name: create var-lib-linstor.mount
copy:
src: var-lib-linstor.mount
dest: /etc/systemd/system/var-lib-linstor.mount
- name: copy linstor_db.toml
copy:
src: linstor_db.toml
dest: /etc/drbd-reactor.d/linstor_db.toml
- name: create directory for override config so that the next task won't complain...
file:
path: /etc/systemd/system/linstor-satellite.service.d/
state: directory
- name: copy systemd override for linstor-satellite
copy:
src: override.conf
dest: /etc/systemd/system/linstor-satellite.service.d/override.conf
- name: Reload systemd daemon
systemd:
daemon_reload: yes
- name: Enable and restart drbd-reactor
systemd:
name: drbd-reactor
state: restarted
enabled: yes
- name: create linstor client config
copy:
src: linstor-client.conf
dest: /etc/linstor/linstor-client.conf
......@@ -2,5 +2,18 @@
- name: Install some useful stuff
apt:
name:
- mc
- systemd-timesyncd
- mc #norbey
- neovim #mike
state: present
- name: Config timesyncd
lineinfile:
path: /etc/systemd/timesyncd.conf
line: NTP=152.66.208.241
- name: Enable and restart timesyncd
systemd:
name: systemd-timesyncd
state: restarted
enabled: yes