configuration

package
v0.0.0-...-14875fc Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TeamvaultHostname  = network.Host("teamvault.benjamin-borbe.de")
	ConfluenceHostname = network.Host("confluence.benjamin-borbe.de")
	MailHostname       = network.Host("mail.benjamin-borbe.de")
	IPHostname         = network.Host("ip.benjamin-borbe.de")
	ScreegoHostname    = network.Host("screen.benjamin-borbe.de")
)

Variables

View Source
var Co2hz = Server{
	Name:    "co2hz",
	IP:      network.IPStatic("192.168.178.6"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.178.1"),
	VpnIP:   network.IPStatic("172.16.90.28"),
}
View Source
var Co2wz = Server{
	Name:    "co2wz",
	IP:      network.IPStatic("192.168.178.7"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.178.1"),
	VpnIP:   network.IPStatic("172.16.90.24"),
}
View Source
var Fire = Server{
	Name:    "fire",
	IP:      network.IPStatic("192.168.178.3"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.178.1"),
	VpnIP:   network.IPStatic("172.16.90.8"),
}
View Source
var FireK3sDev = Server{
	Name:    "fire-k3s-dev",
	IP:      network.IPStatic("192.168.178.22"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.178.1"),
	VpnIP:   network.IPStatic("172.16.90.5"),
}
View Source
var FireK3sMaster = Server{
	Name:    "fire-k3s-master",
	IP:      network.IPStatic("192.168.178.20"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.178.1"),
	VpnIP:   network.IPStatic("172.16.90.3"),
}
View Source
var FireK3sProd = Server{
	Name:    "fire-k3s-prod",
	IP:      network.IPStatic("192.168.178.21"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.178.1"),
	VpnIP:   network.IPStatic("172.16.90.4"),
}
View Source
var HM = Network{
	Name:  "hm",
	IPNet: network.IPNetStatic("192.168.178.0/24"),
}
View Source
var Hell = Server{
	Name:    "hell",
	IP:      network.IPStatic("192.168.178.9"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.178.1"),
	VpnIP:   network.IPStatic("172.16.90.33"),
}
View Source
var Hetzner = Server{
	Name:    "hetzner",
	IP:      network.IPStatic("159.69.203.89"),
	IPMask:  network.MaskStatic(32),
	Gateway: network.IPStatic("172.31.1.1"),
	VpnIP:   network.IPStatic("172.16.90.1"),
}
View Source
var HetznerVPN = Network{
	Name:  "hetzner-vpn",
	IPNet: network.IPNetStatic("172.16.90.1/24"),
}
View Source
var HetznerVPNServer = VPNServer{
	ServerName:    "hetzner",
	ServerAddress: "hetzner-1.benjamin-borbe.de",
	Port:          network.PortStatic(563),
}
View Source
var Nova = Server{
	Name:    "nova",
	IP:      network.IPStatic("192.168.178.122"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.178.1"),
	VpnIP:   network.IPStatic("172.16.90.16"),
}
View Source
var Nuke = Server{
	Name:    "nuke",
	IP:      network.IPStatic("192.168.178.5"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.178.1"),
	VpnIP:   network.IPStatic("172.16.90.4"),
}
View Source
var PN = Network{
	Name:  "pn",
	IPNet: network.IPNetStatic("192.168.2.0/24"),
}
View Source
var Rasp3 = Server{
	Name:    "rasp3",
	IP:      network.IPStatic("192.168.178.2"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.178.1"),
	VpnIP:   network.IPStatic("172.16.90.20"),
}
View Source
var Rasp4 = Server{
	Name:    "rasp4",
	IP:      network.IPStatic("192.168.178.8"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.178.1"),
	VpnIP:   network.IPStatic("172.16.90.29"),
}
View Source
var Star = Server{
	Name:    "star",
	IP:      network.IPStatic("192.168.178.101"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.178.1"),
	VpnIP:   network.IPStatic("172.16.90.32"),
}
View Source
var Sun = Server{
	Name:    "sun",
	IP:      network.IPStatic("192.168.2.3"),
	IPMask:  network.MaskStatic(24),
	Gateway: network.IPStatic("192.168.2.1"),
	VpnIP:   network.IPStatic("172.16.90.12"),
}

Functions

func BuildClientIPs

func BuildClientIPs(servers ...Server) openvpn.ClientIPs

func BuildIRoutes

func BuildIRoutes(servers ...Server) openvpn.IRoutes

func BuildRoutes

func BuildRoutes(servers ...Server) openvpn.Routes

Types

type AppName

type AppName string

type ClusterName

type ClusterName string

type Network

type Network struct {
	Name  string
	IPNet network.IPNet
}

type Server

type Server struct {
	Name    string
	IP      network.IP
	IPMask  network.IPMask
	VpnIP   network.IP
	Gateway network.IP
}

type VPNServer

type VPNServer struct {
	ServerName    openvpn.ServerName
	ServerAddress openvpn.ServerAddress
	Port          network.Port
}

type World

type World struct {
	App              AppName
	Cluster          ClusterName
	TeamvaultSecrets *secret.Teamvault
	HetznerClient    hetzner.Client
}

func (*World) Applier

func (w *World) Applier() (world.Applier, error)

func (*World) Children

func (w *World) Children(ctx context.Context) (world.Configurations, error)

func (*World) Validate

func (w *World) Validate(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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