-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
90 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Unused | ||
|
||
I have decided not to use CDKTF for the time being since it's pretty cumbersome | ||
working with modules and does not grant much and doesn't grant much benefit yet. | ||
|
||
I will probably consider using it once my infra needs justify it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// import { Construct } from "constructs"; | ||
// import { App, TerraformStack } from "cdktf"; | ||
// import { readFileSync } from 'node:fs'; | ||
|
||
// import * as nodes from './nodes.json'; | ||
|
||
// import { MatchboxProvider } from "./.gen/providers/matchbox/provider"; | ||
// import { Typhoon } from "./.gen/modules/typhoon"; | ||
|
||
// let PKI_ROOT = process.env.EASYRSA_PKI || '../pki'; | ||
// console.log(process.env.PWD); | ||
|
||
// function readPemCert(path: string): string { | ||
// let f = readFileSync(path).toString(); | ||
// return f; | ||
// } | ||
|
||
// function getLanAddress(): string | ||
// { | ||
// // HACK: Because Ubiquiti is set to use `.lan` as a domain, it will | ||
// // resolve `$HOST.lan` as the device's IP. This should remove the need | ||
// // for a self-hosted DNS and tinkering with the network DNS | ||
// let hostname = readFileSync("/etc/hostname").toString().replace('\n', ''); | ||
// return `${hostname}.lan`; | ||
// } | ||
|
||
// class LabStack extends TerraformStack { | ||
// constructor(scope: Construct, id: string) { | ||
// super(scope, id); | ||
|
||
// new MatchboxProvider(this, "matchbox", { | ||
// ca: readPemCert(PKI_ROOT + '/ca.crt'), | ||
// clientCert: readPemCert(PKI_ROOT + '/client.crt'), | ||
// clientKey: readPemCert(PKI_ROOT + "/client.key"), | ||
// endpoint: '127.0.0.1:8081' // bootstrap is local. | ||
// }); | ||
|
||
// new Typhoon(this, "typhoon-module", <any>{ // FIXME: strong typing? | ||
// clusterName: "h0me", | ||
// k8SDomainName: "lab.segfault.me", // FIXME: How will this work? | ||
// cachedInstall: true, | ||
// matchboxHttpEndpoint: `http://${getLanAddress()}:8080`, | ||
// osVersion: "39.20240112.3.0", | ||
// osStream: "stable", | ||
// arch: "x86_64", // controllers | ||
// ...nodes | ||
// }); | ||
// } | ||
// } | ||
|
||
// const app = new App(); | ||
// new LabStack(app, "segv-lab"); | ||
// app.synth(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"sshAuthorizedKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO+M9LUT9LQWQFTxz7SR2jXhxyZs6rS5CLN2aFS6HMB5", | ||
|
||
"controllers": [ | ||
{"name": "tachyon", "mac": "ac:16:2d:a7:ae:90", "domain": "tachyon.lan"} | ||
], | ||
|
||
"workers": [ | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters