This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # works from 6 to 8 - | |
| # stops services, removes cluster-config from this node (regardless it's state) and restarts services again. | |
| # - Also removing stalled clusternodes as this is leaving the cluster the 'hard' way. | |
| systemctl stop pve-cluster corosync | |
| pmxcfs -l | |
| rm -rf /etc/corosync/* | |
| rm /etc/pve/corosync.conf | |
| killall pmxcfs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import xml.etree.ElementTree as ET | |
| import sys | |
| import os | |
| # Default-Values | |
| default_xml_file = 'data.xml' | |
| default_channel_scope = 'replace-me' | |
| default_channel_prefix = 'modbus:tcp:device:mydevice' | |
| default_item_prefix = 'MyDevice_' |