pmcf 2.70.4 → 2.70.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/cluster.mjs
CHANGED
|
@@ -104,7 +104,7 @@ export class Cluster extends Host {
|
|
|
104
104
|
)) {
|
|
105
105
|
cfg.push(`vrrp_instance ${cluster.name} {`);
|
|
106
106
|
cfg.push(
|
|
107
|
-
` state ${cluster.masters.indexOf(ni)
|
|
107
|
+
` state ${cluster.masters.indexOf(ni) === 0 ? "MASTER" : "BACKUP"}`
|
|
108
108
|
);
|
|
109
109
|
cfg.push(` interface ${ni.name}`);
|
|
110
110
|
|
|
@@ -55,41 +55,5 @@ export class WLANNetworkInterface extends EthernetNetworkInterface {
|
|
|
55
55
|
await mkdir(d, { recursive: true });
|
|
56
56
|
|
|
57
57
|
packageData.properties.requires.push("iwd", "impala");
|
|
58
|
-
|
|
59
|
-
/*
|
|
60
|
-
writeFile(
|
|
61
|
-
join(d, `${this.network.name}.psk`),
|
|
62
|
-
`[Security]
|
|
63
|
-
Passphrase=
|
|
64
|
-
SAE-PT-Group19=
|
|
65
|
-
SAE-PT-Group20=
|
|
66
|
-
`,
|
|
67
|
-
"utf8"
|
|
68
|
-
);
|
|
69
|
-
*/
|
|
70
|
-
/*
|
|
71
|
-
const d = join(packageData.dir, "etc/wpa_supplicant");
|
|
72
|
-
await mkdir(d, { recursive: true });
|
|
73
|
-
writeFile(
|
|
74
|
-
join(d, `wpa_supplicant-${this.name}.conf`),
|
|
75
|
-
`country=${this.location.country}
|
|
76
|
-
ctrl_interface=DIR=/run/wpa_supplicant GROUP=netdev
|
|
77
|
-
update_config=1
|
|
78
|
-
p2p_disabled=1
|
|
79
|
-
network={
|
|
80
|
-
ssid="${this.ssid}"
|
|
81
|
-
psk=${this.psk}
|
|
82
|
-
scan_ssid=1
|
|
83
|
-
}`,
|
|
84
|
-
"utf8"
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
addHook(
|
|
88
|
-
packageData.properties.hooks,
|
|
89
|
-
"post_install",
|
|
90
|
-
`systemctl enable wpa_supplicant@${this.name}.service`
|
|
91
|
-
);
|
|
92
|
-
|
|
93
|
-
*/
|
|
94
58
|
}
|
|
95
59
|
}
|
|
@@ -328,5 +328,6 @@ export class LoopbackNetworkInterface extends SkeletonNetworkInterface {
|
|
|
328
328
|
get domainNames(): Set<string>;
|
|
329
329
|
get hostName(): string;
|
|
330
330
|
get ipAddresses(): Map<string, import("pmcf").Subnet>;
|
|
331
|
+
get MTU(): number;
|
|
331
332
|
}
|
|
332
333
|
import { SkeletonNetworkInterface } from "./skeleton.mjs";
|