Compare commits
4
Commits
0ae688ac66
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f57f1822f | ||
|
|
07c4678a6d | ||
|
|
fb1f8db36b | ||
|
|
10a4578ce4 |
@@ -166,7 +166,9 @@ const ciRunnerKey = new tls.PrivateKey("ci-runner-key", {
|
|||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
const k3sVmPassword = config.requireSecret("k3sVmPassword");
|
const k3sVmPassword = config.requireSecret("k3sVmPassword");
|
||||||
const sshPvePublicKey = config.requireSecret("sshPvePublicKey");
|
const pve1SshPublicKey = config.requireSecret("pve1SshPublicKey");
|
||||||
|
const pve2SshPublicKey = config.requireSecret("pve2SshPublicKey");
|
||||||
|
const pve3SshPublicKey = config.requireSecret("pve3SshPublicKey");
|
||||||
|
|
||||||
interface NodeConfig {
|
interface NodeConfig {
|
||||||
name: string;
|
name: string;
|
||||||
@@ -271,7 +273,9 @@ const k3sVms = nodeConfigs.map(
|
|||||||
username: "ubuntu",
|
username: "ubuntu",
|
||||||
password: k3sVmPassword,
|
password: k3sVmPassword,
|
||||||
keys: [
|
keys: [
|
||||||
sshPvePublicKey.apply((k) => k.trim()),
|
pve1SshPublicKey.apply((k) => k.trim()),
|
||||||
|
pve2SshPublicKey.apply((k) => k.trim()),
|
||||||
|
pve3SshPublicKey.apply((k) => k.trim()),
|
||||||
ciRunnerKey.publicKeyOpenssh.apply((k) => k.trim()),
|
ciRunnerKey.publicKeyOpenssh.apply((k) => k.trim()),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,12 +3,10 @@ import * as command from "@pulumi/command";
|
|||||||
|
|
||||||
const config = new pulumi.Config();
|
const config = new pulumi.Config();
|
||||||
|
|
||||||
//fetch credentials from proxmox-infra
|
|
||||||
const infraRef = new pulumi.StackReference(
|
const infraRef = new pulumi.StackReference(
|
||||||
`${pulumi.getOrganization()}/proxmox-infra/dev`,
|
`${pulumi.getOrganization()}/proxmox-infra/dev`,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Proxmox API credentials — same as proxmox-infra stack
|
|
||||||
const pve1Endpoint = infraRef.requireOutput(
|
const pve1Endpoint = infraRef.requireOutput(
|
||||||
"pve1Endpoint",
|
"pve1Endpoint",
|
||||||
) as pulumi.Output<string>;
|
) as pulumi.Output<string>;
|
||||||
|
|||||||
Reference in New Issue
Block a user