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/vbash | |
source /opt/vyatta/etc/functions/script-template | |
if [ "$(id -g -n)" != 'vyattacfg' ] ; then | |
exec sg vyattacfg -c "/bin/vbash $(readlink -f $0) $@" | |
fi | |
VRRP_NEW_STATE=BACKUP | |
lock="/var/lock/vrrp-state" |
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
Can be useful for vm guests with dhcp assigned addresses, but can likely be extended to do almost | |
anything cloud-init can be used to do. | |
regenerate-cloud-init-data.pl is a hookscript that is attached to your vm template so that it | |
is present in the config for all VMs cloned from it. It is not likely suitable for environments | |
with multiple nodes as-is. | |
It is run prior to the starting of the VM and regenetates the vm-<id>-userconfig.yaml file from a | |
template containing the bootcmd and any other cloud-config data you wish to use. It also appends | |
configuration data to set the hostname (the VM name) and fqdn (configured in the script) of the VM. |
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
# WSB (Windows Server Backup) | |
############################################################################### | |
#### Script Prerequisites ##################################################### | |
############################################################################### | |
using namespace Microsoft.Windows.ServerBackup.Commands | |
Import-Module ServerManager |