Exemple #1
0
func (m *DebianOneRemoveTemplate) Render(pkg urknall.Package) {
	pkg.AddCommands("one",
		u.RemovePackage("opennebula opennebula-sunstone"),
		u.RemovePackages(""),
		u.PurgePackages("opennebula opennebula-sunstone"),
	)
	pkg.AddCommands("one-clean",
		u.Shell("rm -r /var/lib/urknall/one.*"),
	)
}
func (m *DebianOneHostRemoveTemplate) Render(pkg urknall.Package) {
	pkg.AddCommands("onehost",
		u.RemovePackage("opennebula-node openvswitch-common openvswitch-switch bridge-utils sshpass"),
		u.RemovePackages(""),
		u.PurgePackages("opennebula-node openvswitch-common openvswitch-switch bridge-utils sshpass"),
	)
	pkg.AddCommands("onehost-clean",
		u.Shell("rm -r /var/lib/urknall/onehost*"),
	)
}
func (m *DebianNilavuRemoveTemplate) Render(pkg urknall.Package) {
	pkg.AddCommands("verticenilavu",
		u.RemovePackage("verticenilavu"),
		u.RemovePackages(""),
		u.PurgePackages("verticenilavu"),
		u.Shell("dpkg --get-selections megam*"),
	)
	pkg.AddCommands("nilavu-clean",
		u.Shell("rm -r /var/lib/urknall/nilavu*"),
	)
}
func (m *DebianMegamCommonRemoveTemplate) Render(pkg urknall.Package) {
	pkg.AddCommands("verticecommon",
		u.RemovePackage("verticecommon"),
		u.RemovePackages(""),
		u.PurgePackages("verticecommon"),
		u.Shell("dpkg --get-selections megam*"),
	)
	pkg.AddCommands("common-clean",
		u.Shell("rm -r /var/lib/urknall/common*"),
	)
}
func (m *DebianGatewayRemoveTemplate) Render(pkg urknall.Package) {
	pkg.AddCommands("verticegateway",
		u.RemovePackage("verticegateway"),
		u.RemovePackages(""),
		u.PurgePackages("verticegateway"),
		u.Shell("dpkg --get-selections megam*"),
	)
	pkg.AddCommands("verticegateway-clean",
		u.Shell("rm -r /var/lib/urknall/gateway*"),
	)
}
func (m *DebianSnowflakeRemoveTemplate) Render(pkg urknall.Package) {
	pkg.AddCommands("verticesnowflake",
		u.Shell("systemctl stop snowflake"),
		u.RemovePackage("verticesnowflake"),
		u.RemovePackages(""),
		u.PurgePackages("verticesnowflake"),
		u.Shell("dpkg --get-selections megam*"),
	)
	pkg.AddCommands("snowflake-clean",
		u.Shell("rm -r /var/lib/urknall/snowflake*"),
	)
}