pmcf 4.28.3 → 4.28.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "4.28.3",
3
+ "version": "4.28.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/cluster.mjs CHANGED
@@ -16,7 +16,6 @@ export class Cluster extends Host {
16
16
  static name = "cluster";
17
17
  static priority = 1.5;
18
18
  static owners = [Owner, "network", "location", "root"];
19
- static key = "name";
20
19
  static attributes = {
21
20
  routerId: { ...number_attribute_writable, default: 100 },
22
21
  masters: {
@@ -5,7 +5,6 @@ import { networkAddressType } from "pmcf";
5
5
  export class ExtraSourceService extends Service {
6
6
  static name = "extra-source-service";
7
7
  static specializationOf = Service;
8
- static owners = Service.owners;
9
8
  static attributes = {
10
9
  source: {
11
10
  ...default_attribute_writable,
package/src/host.mjs CHANGED
@@ -28,7 +28,6 @@ export class Host extends ServiceOwner {
28
28
  static name = "host";
29
29
  static priority = 1.9;
30
30
  static owners = ["owner", "network", "root"];
31
- static key = "name";
32
31
  static attributes = {
33
32
  ...networkAddressAttributes,
34
33
  networkInterfaces: {
package/src/location.mjs CHANGED
@@ -5,9 +5,7 @@ import { loadHooks } from "./hooks.mjs";
5
5
 
6
6
  export class Location extends Owner {
7
7
  static name = "location";
8
- static priority = 2;
9
8
  static owners = [Owner, Location, "root"];
10
- static key = "name";
11
9
  static attributes = {};
12
10
 
13
11
  static {
@@ -4,8 +4,6 @@ import { NetworkInterface } from "./network-interface.mjs";
4
4
  export class EthernetNetworkInterface extends NetworkInterface {
5
5
  static name = "ethernet";
6
6
  static specializationOf = NetworkInterface;
7
- static owners = NetworkInterface.owners;
8
- static key = "name";
9
7
  static attributes = {
10
8
  arpbridge: {
11
9
  ...default_attribute_writable,
@@ -13,8 +13,6 @@ const _localDomains = new Set(["localhost"]);
13
13
  export class LoopbackNetworkInterface extends SkeletonNetworkInterface {
14
14
  static name = "loopback";
15
15
  static specializationOf = NetworkInterface;
16
- static owners = NetworkInterface.owners;
17
- static key = "name";
18
16
 
19
17
  static {
20
18
  addType(this);
@@ -4,8 +4,6 @@ import { NetworkInterface } from "./network-interface.mjs";
4
4
  export class TUNNetworkInterface extends NetworkInterface {
5
5
  static name = "tun";
6
6
  static specializationOf = NetworkInterface;
7
- static owners = NetworkInterface.owners;
8
- static key = "name";
9
7
 
10
8
  static {
11
9
  addType(this);
@@ -5,9 +5,6 @@ import { NetworkInterface } from "./network-interface.mjs";
5
5
  export class WireguardNetworkInterface extends SkeletonNetworkInterface {
6
6
  static name = "wireguard";
7
7
  static specializationOf = NetworkInterface;
8
- static owners = NetworkInterface.owners;
9
- static key = "name";
10
-
11
8
 
12
9
  static {
13
10
  addType(this);
@@ -12,8 +12,6 @@ import { EthernetNetworkInterface } from "./ethernet.mjs";
12
12
  export class WLANNetworkInterface extends EthernetNetworkInterface {
13
13
  static name = "wlan";
14
14
  static specializationOf = NetworkInterface;
15
- static owners = EthernetNetworkInterface.owners;
16
- static key = "name";
17
15
  static attributes = {
18
16
  ssid: string_attribute_writable,
19
17
  psk: secret_attribute_writable,
package/src/network.mjs CHANGED
@@ -5,9 +5,7 @@ import { networkAttributes } from "./network-support.mjs";
5
5
 
6
6
  export class Network extends Owner {
7
7
  static name = "network";
8
- static priority = 2;
9
8
  static owners = ["location", Owner, "root"];
10
- static key = "name";
11
9
  static attributes = {
12
10
  ...networkAttributes,
13
11
  bridge: {
package/src/owner.mjs CHANGED
@@ -18,8 +18,7 @@ const EMPTY = new Map();
18
18
  export class Owner extends Base {
19
19
  static name = "owner";
20
20
  static priority = 2;
21
- static owners = ["location", Owner, "root"];
22
- static key = "name";
21
+ static owners = [Owner, "location", "root"];
23
22
  static attributes = {
24
23
  networks: networks_attribute,
25
24
  hosts: {
@@ -5,7 +5,6 @@ export class ServiceOwner extends Base {
5
5
  static name = "service-owner";
6
6
  static priority = 1.9;
7
7
  static owners = ["owner", "network", "root"];
8
- static key = "name";
9
8
  static attributes = {
10
9
  services: {
11
10
  ...default_attribute_writable,
@@ -9,7 +9,6 @@ import { addServiceType, Base } from "pmcf";
9
9
  import { Service } from "../service.mjs";
10
10
 
11
11
  class alpm_repository extends Base {
12
- static key = "name";
13
12
  static attributes = {
14
13
  name: name_attribute_writable,
15
14
  base: string_attribute_writable,
@@ -23,9 +22,7 @@ class alpm_repository extends Base {
23
22
 
24
23
  export class ALPMService extends Service {
25
24
  static name = "alpm";
26
- static priority = 1;
27
25
  static specializationOf = Service;
28
- static owners = Service.owners;
29
26
  static attributes = {
30
27
  repositories: {
31
28
  ...default_attribute_writable,
@@ -34,7 +34,6 @@ const bindNetworkAddressTypes = networkAddressType + "|bind_group";
34
34
 
35
35
  class bind_group extends Base {
36
36
  static priority = 1;
37
- static key = "name";
38
37
  static attributes = {
39
38
  name: name_attribute_writable,
40
39
  access: {
@@ -399,8 +398,6 @@ function addressesStatement(prefix, objects, generateEmpty = false) {
399
398
  export class BindService extends ExtraSourceService {
400
399
  static name = "bind";
401
400
  static specializationOf = Service;
402
- static owners = Service.owners;
403
- static key = "name";
404
401
  static attributes = {
405
402
  groups: {
406
403
  ...default_attribute_writable,
@@ -8,10 +8,7 @@ import { writeLines } from "../utils.mjs";
8
8
 
9
9
  export class ChronyService extends ExtraSourceService {
10
10
  static name = "chrony";
11
- static priority = 1;
12
11
  static specializationOf = Service;
13
- static owners = Service.owners;
14
- static key = "name";
15
12
  static service = {
16
13
  systemdService: "chronyd.service",
17
14
  extends: ["ntp"],
@@ -4,10 +4,7 @@ import { Service } from "../service.mjs";
4
4
 
5
5
  export class HeadscaleService extends Service {
6
6
  static name = "headscale";
7
- static priority = 1;
8
7
  static specializationOf = Service;
9
- static owners = Service.owners;
10
- static key = "name";
11
8
  static service = {
12
9
  endpoints: [
13
10
  {
@@ -11,10 +11,7 @@ import { Service } from "../service.mjs";
11
11
 
12
12
  export class InfluxdbService extends Service {
13
13
  static name = "influxdb";
14
- static priority = 1;
15
14
  static specializationOf = Service;
16
- static owners = Service.owners;
17
- static key = "name";
18
15
  static attributes = {
19
16
  metricsDisabled: {
20
17
  externalName: "metrics-disabled",
@@ -21,10 +21,7 @@ const keaVersion = "3.0.1";
21
21
 
22
22
  export class KeaService extends Service {
23
23
  static name = "kea";
24
- static priority = 1;
25
24
  static specializationOf = Service;
26
- static owners = Service.owners;
27
- static key = "name";
28
25
  static attributes = {
29
26
  "ddns-send-updates": {
30
27
  ...boolean_attribute_writable_true,
@@ -4,10 +4,7 @@ import { Service } from "../service.mjs";
4
4
 
5
5
  export class MosquittoService extends Service {
6
6
  static name = "mosquitto";
7
- static priority = 1;
8
7
  static specializationOf = Service;
9
- static owners = Service.owners;
10
- static key = "name";
11
8
  static attributes = {
12
9
  listener: {
13
10
  ...port_attribute,
@@ -4,10 +4,7 @@ import { Service } from "../service.mjs";
4
4
 
5
5
  export class OpenLDAPService extends Service {
6
6
  static name = "openldap";
7
- static priority = 1;
8
7
  static specializationOf = Service;
9
- static owners = Service.owners;
10
- static key = "name";
11
8
  static attributes = {
12
9
  base: string_attribute_writable,
13
10
  uri: string_attribute_writable
@@ -4,10 +4,7 @@ import { Service } from "../service.mjs";
4
4
 
5
5
  export class PostfixService extends Service {
6
6
  static name = "postfix";
7
- static priority = 1;
8
7
  static specializationOf = Service;
9
- static owners = Service.owners;
10
- static key = "name";
11
8
  static attributes = {};
12
9
  static service = {
13
10
  systemdService: "postfix.service",
@@ -14,10 +14,7 @@ import { filterConfigurable, sectionLines } from "../utils.mjs";
14
14
  */
15
15
  export class SystemdJournalRemoteService extends Service {
16
16
  static name = "systemd-journal-remote";
17
- static priority = 1;
18
17
  static specializationOf = Service;
19
- static owners = Service.owners;
20
- static key = "name";
21
18
  static attributes = {
22
19
  Seal: {
23
20
  ...boolean_attribute_writable,
@@ -14,10 +14,7 @@ import { filterConfigurable, sectionLines } from "../utils.mjs";
14
14
  */
15
15
  export class SystemdJournalUploadService extends Service {
16
16
  static name = "systemd-journal-upload";
17
- static priority = 1;
18
17
  static specializationOf = Service;
19
- static owners = Service.owners;
20
- static key = "name";
21
18
  static attributes = {
22
19
  URL: { ...string_attribute_writable, configurable: true },
23
20
  ServerKeyFile: {
@@ -8,10 +8,7 @@ import { filterConfigurable, sectionLines } from "../utils.mjs";
8
8
 
9
9
  export class SystemdJournaldService extends Service {
10
10
  static name = "systemd-journald";
11
- static priority = 1;
12
11
  static specializationOf = Service;
13
- static owners = Service.owners;
14
- static key = "name";
15
12
  static attributes = {
16
13
  Storage: {
17
14
  ...string_attribute_writable,
@@ -21,10 +21,7 @@ import {
21
21
 
22
22
  export class SystemdResolvedService extends ExtraSourceService {
23
23
  static name = "systemd-resolved";
24
- static priority = 1;
25
24
  static specializationOf = Service;
26
- static owners = Service.owners;
27
- static key = "name";
28
25
  static attributes = {
29
26
  /* Resolve: {
30
27
  ...object_attribute,
@@ -13,9 +13,7 @@ import { filterConfigurable, sectionLines } from "../utils.mjs";
13
13
 
14
14
  export class SystemdTimesyncdService extends ExtraSourceService {
15
15
  static name = "systemd-timesyncd";
16
- static priority = 1;
17
16
  static specializationOf = Service;
18
- static owners = Service.owners;
19
17
 
20
18
  static attributes = {
21
19
  NTP: { ...string_attribute_writable, configurable: true },
@@ -3,10 +3,7 @@ import { Service } from "../service.mjs";
3
3
 
4
4
  export class TailscaleService extends Service {
5
5
  static name = "tailscale";
6
- static priority = 1;
7
6
  static specializationOf = Service;
8
- static owners = Service.owners;
9
- static key = "name";
10
7
  static service = {
11
8
  endpoints: [
12
9
  {