server

package
v3.8.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package server DigitalRebar Provision Server

An RestFUL API-driven Provisioner and DHCP server

Terms Of Service:

There are no TOS at this moment, use at your own risk we take no responsibility

Schemes: https
BasePath: /api/v3
Version: 0.1.0
License: APL https://raw.githubusercontent.com/digitalrebar/digitalrebar/master/LICENSE.md
Contact: Greg Althaus<greg@rackn.com> http://rackn.com

Security:
  - basicAuth: []
  - Bearer: []

Consumes:
- application/json

Produces:
- application/json

swagger:meta

Index

Constants

This section is empty.

Variables

View Source
var EmbeddedAssetsExtractFunc func(string, string) error

Functions

func Server

func Server(c_opts *ProgOpts)

Types

type ProgOpts

type ProgOpts struct {
	VersionFlag         bool   `long:"version" description:"Print Version and exit"`
	DisableTftpServer   bool   `long:"disable-tftp" description:"Disable TFTP server"`
	DisableProvisioner  bool   `long:"disable-provisioner" description:"Disable provisioner"`
	DisableDHCP         bool   `long:"disable-dhcp" description:"Disable DHCP server"`
	DisableBINL         bool   `long:"disable-pxe" description:"Disable PXE/BINL server"`
	StaticPort          int    `long:"static-port" description:"Port the static HTTP file server should listen on" default:"8091"`
	TftpPort            int    `long:"tftp-port" description:"Port for the TFTP server to listen on" default:"69"`
	ApiPort             int    `long:"api-port" description:"Port for the API server to listen on" default:"8092"`
	DhcpPort            int    `long:"dhcp-port" description:"Port for the DHCP server to listen on" default:"67"`
	BinlPort            int    `long:"binl-port" description:"Port for the PXE/BINL server to listen on" default:"4011"`
	UnknownTokenTimeout int    `` /* 130-byte string literal not displayed */
	KnownTokenTimeout   int    `` /* 129-byte string literal not displayed */
	OurAddress          string `long:"static-ip" description:"IP address to advertise for the static HTTP file server" default:""`
	ForceStatic         bool   `long:"force-static" description:"Force the system to always use the static IP."`

	BackEndType    string `` /* 136-byte string literal not displayed */
	LocalContent   string `long:"local-content" description:"Storage to use for local overrides." default:"directory:///etc/dr-provision?codec=yaml"`
	DefaultContent string `` /* 129-byte string literal not displayed */

	BaseRoot        string `long:"base-root" description:"Base directory for other root dirs." default:"/var/lib/dr-provision"`
	DataRoot        string `long:"data-root" description:"Location we should store runtime information in" default:"digitalrebar"`
	PluginRoot      string `long:"plugin-root" description:"Directory for plugins" default:"plugins"`
	PluginCommRoot  string `long:"plugin-comm-root" description:"Directory for the communications for plugins" default:"/var/run"`
	LogRoot         string `long:"log-root" description:"Directory for job logs" default:"job-logs"`
	SaasContentRoot string `long:"saas-content-root" description:"Directory for additional content" default:"saas-content"`
	FileRoot        string `long:"file-root" description:"Root of filesystem we should manage" default:"tftpboot"`
	ReplaceRoot     string `long:"replace-root" description:"Root of filesystem we should use to replace embedded assets" default:"replace"`

	LocalUI        string `long:"local-ui" description:"Root of Local UI Pages" default:"ux"`
	UIUrl          string `long:"ui-url" description:"URL to redirect to UI" default:"https://portal.rackn.io"`
	DhcpInterfaces string `long:"dhcp-ifs" description:"Comma-seperated list of interfaces to listen for DHCP packets" default:""`
	DefaultStage   string `long:"default-stage" description:"The default stage for the nodes" default:"none"`
	DefaultBootEnv string `long:"default-boot-env" description:"The default bootenv for the nodes" default:"local"`
	UnknownBootEnv string `` /* 129-byte string literal not displayed */

	DebugBootEnv  string `long:"debug-bootenv" description:"Debug level for the BootEnv System" default:"warn"`
	DebugDhcp     string `long:"debug-dhcp" description:"Debug level for the DHCP Server" default:"warn"`
	DebugRenderer string `long:"debug-renderer" description:"Debug level for the Template Renderer" default:"warn"`
	DebugFrontend string `long:"debug-frontend" description:"Debug level for the Frontend" default:"warn"`
	DebugPlugins  string `long:"debug-plugins" description:"Debug level for the Plug-in layer" default:"warn"`
	TlsKeyFile    string `long:"tls-key" description:"The TLS Key File" default:"server.key"`
	TlsCertFile   string `long:"tls-cert" description:"The TLS Cert File" default:"server.crt"`
	UseOldCiphers bool   `long:"use-old-ciphers" description:"Use Original Less Secure Cipher List"`
	DrpId         string `long:"drp-id" description:"The id of this Digital Rebar Provision instance" default:""`
	CurveOrBits   string `` /* 136-byte string literal not displayed */

	BaseTokenSecret     string `long:"base-token-secret" description:"Auth Token secret to allow revocation of all tokens" default:""`
	SystemGrantorSecret string `long:"system-grantor-secret" description:"Auth Token secret to allow revocation of all Machine tokens" default:""`
	FakePinger          bool   `hidden:"true" long:"fake-pinger"`
	DefaultLogLevel     string `long:"log-level" description:"Level to log messages at" default:"warn"`
}

Jump to

Keyboard shortcuts

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