Documentation ¶
Index ¶
- type NanoCms
- func (n *NanoCms) Bootstrap(fqdn string, stateid string, user string, password string) *nanocms_runners.RunnerResponse
- func (n *NanoCms) GetStateIndex() *nanocms_state.NanoStateIndex
- func (n *NanoCms) LoadNstFile(statepath string) *nanocms_state.Nanostate
- func (n *NanoCms) RunStateSSH(state *nanocms_state.Nanostate, fqdns ...string) *nanocms_runners.RunnerResponse
- func (n *NanoCms) SetStaticDataRoot(root string) *NanoCms
- func (n *NanoCms) SshCopyId(fqdn string, username string, password string) bool
- func (n *NanoCms) StartUp()
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 ¶
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 ¶
SetStaticDataRoot sets configuration of the static data
Click to show internal directories.
Click to hide internal directories.