Esempio n. 1
0
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,
	})
}
Esempio n. 3
0
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{})
}
Esempio n. 4
0
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)
}
Esempio n. 5
0
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{})
}
Esempio n. 8
0
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{})
}
Esempio n. 11
0
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{})
}
Esempio n. 13
0
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{})
}
Esempio n. 16
0
func (tpl *UbuntuRabbitmqRemove) Run(target urknall.Target) error {
	return urknall.Run(target, &UbuntuRabbitmqRemove{})
}
Esempio n. 17
0
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,
	})
}
Esempio n. 19
0
func (tpl *UbuntuSshPass) Run(target urknall.Target) error {
	return urknall.Run(target, &UbuntuSshPass{
		Host: tpl.Host,
	})
}
Esempio n. 20
0
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{})
}
Esempio n. 22
0
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{})
}
Esempio n. 24
0
func (tpl *DebianVerticeConfig) Run(target urknall.Target) error {
	return urknall.Run(target, &DebianVerticeConfig{})
}
Esempio n. 25
0
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{})
}
Esempio n. 29
0
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{})
}