wiki:GanetiNotes

Version 2 (modified by mike, 14 years ago) (diff)

--

Ganeti Notes

Remove DRBD from Guest

gnt-instance modify --disk-template plain <instancename>

Create Password using Bash

# Generate password script/function
genpw() {
        local l=${1:-16}
        local s=${2:-0}
        local n=${3:-1}
        [ "$s" == "0" ] && PAT="a-zA-Z0-9" || PAT="a-zA-Z0-9-!@#$%^&*()+{}|:<>?$"
        cat /dev/urandom | tr -dc "${PAT}" | fold -w ${l} | head -n ${n}
}
Trac Appliance - Powered by TurnKey Linux