...
This commit is contained in:
@@ -6,16 +6,14 @@ import freeflowuniverse.herolib.core.base
|
||||
import freeflowuniverse.herolib.builder
|
||||
import time
|
||||
import os
|
||||
|
||||
import freeflowuniverse.herolib.core.playcmds
|
||||
|
||||
|
||||
user:=os.environ()['HETZNER_USER'] or {
|
||||
println('HETZNER_USER not set')
|
||||
user := os.environ()['HETZNER_USER'] or {
|
||||
println('HETZNER_USER not set')
|
||||
exit(1)
|
||||
}
|
||||
passwd:=os.environ()['HETZNER_PASSWORD'] or {
|
||||
println('HETZNER_PASSWORD not set')
|
||||
passwd := os.environ()['HETZNER_PASSWORD'] or {
|
||||
println('HETZNER_PASSWORD not set')
|
||||
exit(1)
|
||||
}
|
||||
|
||||
@@ -31,7 +29,7 @@ playcmds.run(
|
||||
|
||||
console.print_header('Hetzner Test.')
|
||||
|
||||
mut cl := hetznermanager.get(name:'main')!
|
||||
mut cl := hetznermanager.get(name: 'main')!
|
||||
|
||||
// for i in 0 .. 5 {
|
||||
// println('test cache, first time slow then fast')
|
||||
@@ -45,7 +43,7 @@ mut cl := hetznermanager.get(name:'main')!
|
||||
|
||||
// cl.server_reset(name:"kristof2",wait:true)!
|
||||
|
||||
//don't forget to specify the keyname needed
|
||||
// don't forget to specify the keyname needed
|
||||
// cl.server_rescue(name:"kristof2",wait:true, hero_install:true,sshkey_name:"kristof")!
|
||||
|
||||
// mut ks:=cl.keys_get()!
|
||||
@@ -55,11 +53,10 @@ mut cl := hetznermanager.get(name:'main')!
|
||||
// mut b := builder.new()!
|
||||
// mut n := b.node_new(ipaddr: serverinfo.server_ip)!
|
||||
|
||||
//this will put hero in debug mode on the system
|
||||
// this will put hero in debug mode on the system
|
||||
// n.hero_install(compile:true)!
|
||||
|
||||
// n.shell("")!
|
||||
|
||||
cl.ubuntu_install(name:"kristof2",wait:true, hero_install:true,sshkey_name:"kristof")!
|
||||
cl.ubuntu_install(name:"kristof20",wait:true, hero_install:true,sshkey_name:"kristof")!
|
||||
|
||||
cl.ubuntu_install(name: 'kristof2', wait: true, hero_install: true, sshkey_name: 'kristof')!
|
||||
cl.ubuntu_install(name: 'kristof20', wait: true, hero_install: true, sshkey_name: 'kristof')!
|
||||
|
||||
@@ -6,8 +6,8 @@ import freeflowuniverse.herolib.ui.console
|
||||
import freeflowuniverse.herolib.installers.virt.lima as limainstaller
|
||||
import os
|
||||
|
||||
mut i:=limainstaller.get(create:true)!
|
||||
i.install(reset:true)!
|
||||
mut i := limainstaller.get(create: true)!
|
||||
i.install(reset: true)!
|
||||
|
||||
// mut virtmanager := lima.new()!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user