func (tpl *UbuntuCephInstall) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuCephInstall{ osds: tpl.osds, cephuser: tpl.cephuser, phydev: tpl.phydev, }) }
func (tpl *UbuntuMesosSlaveInstall) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuMesosSlaveInstall{ masterip: tpl.masterip, sparkversion: tpl.sparkversion, }) }
func run() error { defer urknall.OpenLogger(os.Stdout).Close() var target urknall.Target var e error uri := "*****@*****.**" password := "" if password != "" { target, e = urknall.NewSshTargetWithPassword(uri, password) } else { target, e = urknall.NewSshTarget(uri) } if e != nil { return e } return urknall.Run(target, &Template{}) }
func provision() error { // setup logging to stdout defer urknall.OpenLogger(os.Stdout).Close() // create a basic urknall.Template // executes "echo hello world" as user ubuntu on the provided host tpl := urknall.TemplateFunc(func(p urknall.Package) { p.AddCommands("run", Shell("echo hello world")) }) // create provisioning target for provisioning via ssh with // user=ubuntu // host=172.16.223.142 // password=ubuntu target, e := urknall.NewSshTargetWithPassword("[email protected]", "ubuntu") if e != nil { return e } return urknall.Run(target, tpl) }
func (tpl *UbuntuRabbitmqInstall) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuRabbitmqInstall{}) }
func (tpl *UbuntuSnowflakeInstall) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuSnowflakeInstall{}) }
func (tpl *UbuntuNilavuRemove) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuNilavuRemove{}) }
func (tpl *UbuntuVerticeReport) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuVerticeReport{}) }
func (tpl *DebianMegamCommonInstall) Run(target urknall.Target) error { return urknall.Run(target, &DebianMegamCommonInstall{}) }
func (tpl *DebianNilavuInstall) Run(target urknall.Target) error { return urknall.Run(target, &DebianNilavuInstall{}) }
func (tpl *UbuntuMegamdInstall) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuMegamdInstall{}) }
func (tpl *UbuntuGatewayInstall) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuGatewayInstall{}) }
func (tpl *DebianCephGateway) Run(target urknall.Target) error { return urknall.Run(target, &DebianCephGateway{}) }
func (tpl *DebianMegamCommonRemove) Run(target urknall.Target) error { return urknall.Run(target, &DebianMegamCommonRemove{}) }
func (tpl *DebianSnowflakeInstall) Run(target urknall.Target) error { return urknall.Run(target, &DebianSnowflakeInstall{}) }
func (tpl *UbuntuRabbitmqRemove) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuRabbitmqRemove{}) }
func (tpl *DebianOneHostInstall) Run(target urknall.Target) error { return urknall.Run(target, &DebianOneHostInstall{}) }
func (tpl *UbuntuMesosMasterInstall) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuMesosMasterInstall{ sparkvrs: tpl.sparkvrs, }) }
func (tpl *UbuntuSshPass) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuSshPass{ Host: tpl.Host, }) }
func (tpl *UbuntuCephRemove) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuCephRemove{ cephuser: tpl.cephuser, }) }
func (tpl *DebianCephDatastore) Run(target urknall.Target) error { return urknall.Run(target, &DebianCephDatastore{}) }
func (tpl *DebianVerticeReport) Run(target urknall.Target) error { return urknall.Run(target, &DebianVerticeReport{}) }
func (tpl *UbuntuGatewayRemove) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuGatewayRemove{}) }
func (tpl *DebianVerticeConfig) Run(target urknall.Target) error { return urknall.Run(target, &DebianVerticeConfig{}) }
func (tpl *UbuntuCreateNetwork) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuCreateNetwork{ BridgeName: tpl.BridgeName, PhyDev: tpl.PhyDev, }) }
func (tpl *DebianGatewayInstall) Run(target urknall.Target) error { return urknall.Run(target, &DebianGatewayInstall{}) }
func (tpl *UbuntuCephDatastore) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuCephDatastore{}) }
func (tpl *UbuntuMegamCommonRemove) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuMegamCommonRemove{}) }
func (tpl *DebianOneRemove) Run(target urknall.Target) error { return urknall.Run(target, &DebianOneRemove{}) }
func (tpl *UbuntuSnowflakeRemove) Run(target urknall.Target) error { return urknall.Run(target, &UbuntuSnowflakeRemove{}) }