pmcf 4.28.6 → 4.28.8
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 +1 -1
- package/src/initialization-context.mjs +2 -2
- package/src/network-interfaces/ethernet.mjs +3 -3
- package/src/network-interfaces/loopback.mjs +1 -2
- package/src/network-interfaces/tun.mjs +1 -2
- package/src/network-interfaces/wireguard.mjs +1 -2
- package/src/network-interfaces/wlan.mjs +2 -3
- package/src/root.mjs +1 -2
- package/src/services/alpm.mjs +2 -3
- package/src/services/bind.mjs +1 -2
- package/src/services/chrony.mjs +1 -2
- package/src/services/headscale.mjs +1 -2
- package/src/services/influxdb.mjs +1 -2
- package/src/services/kea.mjs +1 -2
- package/src/services/mosquitto.mjs +1 -2
- package/src/services/openldap.mjs +1 -2
- package/src/services/postfix.mjs +1 -2
- package/src/services/tailscale.mjs +1 -2
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { join } from "node:path";
|
|
|
3
3
|
import { toInternal, attributeIterator, types, resolveTypeLinks } from "pacc";
|
|
4
4
|
import { asArray } from "./utils.mjs";
|
|
5
5
|
import { Base } from "./base.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { root } from "./root.mjs";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Keeps track of all in flight object creations and loose ends during config initialization.
|
|
@@ -14,7 +14,7 @@ export class InitializationContext {
|
|
|
14
14
|
constructor(directory = "/") {
|
|
15
15
|
resolveTypeLinks();
|
|
16
16
|
this.directory = directory;
|
|
17
|
-
this.root = new
|
|
17
|
+
this.root = new root(directory);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
resolveOutstanding() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { default_attribute_writable, addType } from "pacc";
|
|
2
2
|
import { NetworkInterface } from "./network-interface.mjs";
|
|
3
3
|
|
|
4
|
-
export class
|
|
5
|
-
static name = "ethernet";
|
|
4
|
+
export class ethernet extends NetworkInterface {
|
|
6
5
|
static specializationOf = NetworkInterface;
|
|
7
6
|
static attributes = {
|
|
8
7
|
arpbridge: {
|
|
9
8
|
...default_attribute_writable,
|
|
10
9
|
type: "network_interface",
|
|
11
|
-
collection: true
|
|
10
|
+
collection: true,
|
|
11
|
+
owner: false
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -10,8 +10,7 @@ const _localAddresses = new Map([
|
|
|
10
10
|
|
|
11
11
|
const _localDomains = new Set(["localhost"]);
|
|
12
12
|
|
|
13
|
-
export class
|
|
14
|
-
static name = "loopback";
|
|
13
|
+
export class loopback extends SkeletonNetworkInterface {
|
|
15
14
|
static specializationOf = NetworkInterface;
|
|
16
15
|
|
|
17
16
|
static {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { addType } from "pacc";
|
|
2
2
|
import { NetworkInterface } from "./network-interface.mjs";
|
|
3
3
|
|
|
4
|
-
export class
|
|
5
|
-
static name = "tun";
|
|
4
|
+
export class tun extends NetworkInterface {
|
|
6
5
|
static specializationOf = NetworkInterface;
|
|
7
6
|
|
|
8
7
|
static {
|
|
@@ -2,8 +2,7 @@ import { addType } from "pacc";
|
|
|
2
2
|
import { SkeletonNetworkInterface } from "./skeleton.mjs";
|
|
3
3
|
import { NetworkInterface } from "./network-interface.mjs";
|
|
4
4
|
|
|
5
|
-
export class
|
|
6
|
-
static name = "wireguard";
|
|
5
|
+
export class wireguard extends SkeletonNetworkInterface {
|
|
7
6
|
static specializationOf = NetworkInterface;
|
|
8
7
|
|
|
9
8
|
static {
|
|
@@ -7,10 +7,9 @@ import {
|
|
|
7
7
|
} from "pacc";
|
|
8
8
|
import { writeLines, sectionLines } from "../utils.mjs";
|
|
9
9
|
import { NetworkInterface } from "./network-interface.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { ethernet } from "./ethernet.mjs";
|
|
11
11
|
|
|
12
|
-
export class
|
|
13
|
-
static name = "wlan";
|
|
12
|
+
export class wlan extends ethernet {
|
|
14
13
|
static specializationOf = NetworkInterface;
|
|
15
14
|
static attributes = {
|
|
16
15
|
ssid: string_attribute_writable,
|
package/src/root.mjs
CHANGED
package/src/services/alpm.mjs
CHANGED
|
@@ -20,8 +20,7 @@ class alpm_repository extends Base {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export class
|
|
24
|
-
static name = "alpm";
|
|
23
|
+
export class alpm extends Service {
|
|
25
24
|
static specializationOf = Service;
|
|
26
25
|
static attributes = {
|
|
27
26
|
repositories: {
|
|
@@ -43,7 +42,7 @@ export class ALPMService extends Service {
|
|
|
43
42
|
repositories = new Map();
|
|
44
43
|
|
|
45
44
|
typeNamed(type, name) {
|
|
46
|
-
if (type ===
|
|
45
|
+
if (type === alpm.name) {
|
|
47
46
|
return this.repositories.get(name);
|
|
48
47
|
}
|
|
49
48
|
|
package/src/services/bind.mjs
CHANGED
|
@@ -395,8 +395,7 @@ function addressesStatement(prefix, objects, generateEmpty = false) {
|
|
|
395
395
|
return [];
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
export class
|
|
399
|
-
static name = "bind";
|
|
398
|
+
export class bind extends ExtraSourceService {
|
|
400
399
|
static specializationOf = Service;
|
|
401
400
|
static attributes = {
|
|
402
401
|
groups: {
|
package/src/services/chrony.mjs
CHANGED
|
@@ -6,8 +6,7 @@ import { addServiceType, ExtraSourceService } from "pmcf";
|
|
|
6
6
|
import { Service, serviceEndpoints } from "../service.mjs";
|
|
7
7
|
import { writeLines } from "../utils.mjs";
|
|
8
8
|
|
|
9
|
-
export class
|
|
10
|
-
static name = "chrony";
|
|
9
|
+
export class chrony extends ExtraSourceService {
|
|
11
10
|
static specializationOf = Service;
|
|
12
11
|
static service = {
|
|
13
12
|
systemdService: "chronyd.service",
|
|
@@ -2,8 +2,7 @@ import { addType } from "pacc";
|
|
|
2
2
|
import { addServiceType } from "pmcf";
|
|
3
3
|
import { Service } from "../service.mjs";
|
|
4
4
|
|
|
5
|
-
export class
|
|
6
|
-
static name = "headscale";
|
|
5
|
+
export class headscale extends Service {
|
|
7
6
|
static specializationOf = Service;
|
|
8
7
|
static service = {
|
|
9
8
|
endpoints: [
|
|
@@ -9,8 +9,7 @@ import {
|
|
|
9
9
|
} from "../utils.mjs";
|
|
10
10
|
import { Service } from "../service.mjs";
|
|
11
11
|
|
|
12
|
-
export class
|
|
13
|
-
static name = "influxdb";
|
|
12
|
+
export class influxdb extends Service {
|
|
14
13
|
static specializationOf = Service;
|
|
15
14
|
static attributes = {
|
|
16
15
|
metricsDisabled: {
|
package/src/services/kea.mjs
CHANGED
|
@@ -19,8 +19,7 @@ import { writeLines } from "../utils.mjs";
|
|
|
19
19
|
|
|
20
20
|
const keaVersion = "3.0.1";
|
|
21
21
|
|
|
22
|
-
export class
|
|
23
|
-
static name = "kea";
|
|
22
|
+
export class kea extends Service {
|
|
24
23
|
static specializationOf = Service;
|
|
25
24
|
static attributes = {
|
|
26
25
|
"ddns-send-updates": {
|
|
@@ -2,8 +2,7 @@ import { port_attribute, string_attribute_writable, addType } from "pacc";
|
|
|
2
2
|
import { addServiceType } from "pmcf";
|
|
3
3
|
import { Service } from "../service.mjs";
|
|
4
4
|
|
|
5
|
-
export class
|
|
6
|
-
static name = "mosquitto";
|
|
5
|
+
export class mosquitto extends Service {
|
|
7
6
|
static specializationOf = Service;
|
|
8
7
|
static attributes = {
|
|
9
8
|
listener: {
|
|
@@ -2,8 +2,7 @@ import { string_attribute_writable, addType } from "pacc";
|
|
|
2
2
|
import { addServiceType } from "pmcf";
|
|
3
3
|
import { Service } from "../service.mjs";
|
|
4
4
|
|
|
5
|
-
export class
|
|
6
|
-
static name = "openldap";
|
|
5
|
+
export class openldap extends Service {
|
|
7
6
|
static specializationOf = Service;
|
|
8
7
|
static attributes = {
|
|
9
8
|
base: string_attribute_writable,
|
package/src/services/postfix.mjs
CHANGED
|
@@ -2,8 +2,7 @@ import { addType } from "pacc";
|
|
|
2
2
|
import { addServiceType } from "pmcf";
|
|
3
3
|
import { Service } from "../service.mjs";
|
|
4
4
|
|
|
5
|
-
export class
|
|
6
|
-
static name = "postfix";
|
|
5
|
+
export class postfix extends Service {
|
|
7
6
|
static specializationOf = Service;
|
|
8
7
|
static attributes = {};
|
|
9
8
|
static service = {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { addType } from "pacc";
|
|
2
2
|
import { Service } from "../service.mjs";
|
|
3
3
|
|
|
4
|
-
export class
|
|
5
|
-
static name = "tailscale";
|
|
4
|
+
export class tailscale extends Service {
|
|
6
5
|
static specializationOf = Service;
|
|
7
6
|
static service = {
|
|
8
7
|
endpoints: [
|