nanocms_backend

package
v0.0.0-...-7574d5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NanoCms

type NanoCms struct {
	// contains filtered or unexported fields
}

func NewNanoCms

func NewNanoCms() *NanoCms

func (*NanoCms) Bootstrap

func (n *NanoCms) Bootstrap(fqdn string, stateid string, user string, password string) *nanocms_runners.RunnerResponse

StageNode runs node stanging by calling the Node Controller to wipe it out and prepare for being added to the cluster.

To stage any Uyuni Server, one needs to do the following:

  • Run Uyuni Server in cluster node mode
  • Configure and start Node Controller on it

After stage node message is received on Node Controller, it should:

  • reset the database to the initial state (remove all systems, channels etc)
  • Confirm this done and ack the response

All this is achieved by installing a ncd binary and let it run a nanostate.

func (*NanoCms) GetStateIndex

func (n *NanoCms) GetStateIndex() *nanocms_state.NanoStateIndex

GetStateIndex returns an instance of a state index. XXX: This is subject to change, because nanostate API are unstable, so is the indexer.

func (*NanoCms) LoadNstFile

func (n *NanoCms) LoadNstFile(statepath string) *nanocms_state.Nanostate

LoadNstFile loads a nanostate from a file path

func (*NanoCms) RunStateSSH

func (n *NanoCms) RunStateSSH(state *nanocms_state.Nanostate, fqdns ...string) *nanocms_runners.RunnerResponse

RunStateSSH is to run nanostate over SSH

func (*NanoCms) SetStaticDataRoot

func (n *NanoCms) SetStaticDataRoot(root string) *NanoCms

SetStaticDataRoot sets configuration of the static data

func (*NanoCms) SshCopyId

func (n *NanoCms) SshCopyId(fqdn string, username string, password string) bool

SshCopyId is copying SSH keys to the target machine, using username and password

func (*NanoCms) StartUp

func (n *NanoCms) StartUp()

Initialise cluster schema

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL