示例#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,
	})
}
示例#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{})
}
示例#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)
}
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{})
}
示例#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{})
}
示例#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{})
}
示例#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{})
}
示例#16
0
func (tpl *UbuntuRabbitmqRemove) Run(target urknall.Target) error {
	return urknall.Run(target, &UbuntuRabbitmqRemove{})
}
示例#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,
	})
}
示例#19
0
func (tpl *UbuntuSshPass) Run(target urknall.Target) error {
	return urknall.Run(target, &UbuntuSshPass{
		Host: tpl.Host,
	})
}
示例#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{})
}
示例#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{})
}
示例#24
0
func (tpl *DebianVerticeConfig) Run(target urknall.Target) error {
	return urknall.Run(target, &DebianVerticeConfig{})
}
示例#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{})
}
示例#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{})
}