pmcf 6.69.1 → 6.69.2

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": "6.69.1",
3
+ "version": "6.69.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -118,10 +118,6 @@ export class base extends core {
118
118
  return this.owner?.network;
119
119
  }
120
120
 
121
- get smtpServer() {
122
- return this.owner?.smtpServer;
123
- }
124
-
125
121
  get domain() {
126
122
  return this.owner?.domain;
127
123
  }
package/src/host.mjs CHANGED
@@ -212,7 +212,7 @@ export class host extends ServiceOwner {
212
212
 
213
213
  get network() {
214
214
  for (const ni of this.networkInterfaces.values()) {
215
- if (ni._kind !== "loopback" && ni._network) {
215
+ if (ni._network) {
216
216
  return ni._network;
217
217
  }
218
218
  }
package/src/owner.mjs CHANGED
@@ -33,11 +33,6 @@ export class owner extends ServiceOwner {
33
33
  networkInterfaces: networkInterfaces_attribute,
34
34
  owners: owners_attribute,
35
35
  country: { ...string_attribute_writable, name: "country" },
36
- smtpServer: {
37
- ...string_attribute_writable,
38
- name: "smtpServer",
39
- deferredExpression: true
40
- },
41
36
  domain: { ...string_attribute_writable, name: "domain" },
42
37
  domains: { ...string_set_attribute_writable, skipEmpty: true, name: "domains" },
43
38
  timezone: { ...string_attribute_writable, name: "timezone" },
@@ -2,11 +2,13 @@ import { join } from "node:path";
2
2
  import {
3
3
  default_attribute_writable,
4
4
  default_collection_attribute_writable,
5
+ string_attribute_writable,
5
6
  enum_string_attribute_writable,
6
7
  priority_attribute_writable,
7
8
  email_attribute_writable
8
9
  } from "pacc";
9
10
  import { FAMILY_IPV4, FAMILY_IPV6 } from "ip-utilties";
11
+ import { SOURCES_THIS_EXTENDS } from "../common-attributes.mjs";
10
12
  import { addType } from "../type.mjs";
11
13
  import { PROTOCOL_TCP } from "../constants.mjs";
12
14
  import { core } from "../core.mjs";
@@ -84,10 +86,18 @@ export class keepalived extends CoreService {
84
86
  type: keepalive_cluster_member,
85
87
  name: "clusters"
86
88
  },
89
+ smtp_server: {
90
+ ...string_attribute_writable,
91
+ name: "smtp_server",
92
+ deferredExpression: true,
93
+ scope: SCOPE_KEEPALIVED
94
+ },
95
+
87
96
  notification_email_from: {
88
97
  ...email_attribute_writable,
89
98
  name: "notification_email_from",
90
99
  default: "keepalived",
100
+ sources: SOURCES_THIS_EXTENDS,
91
101
  scope: SCOPE_KEEPALIVED
92
102
  }
93
103
  };
@@ -103,10 +113,10 @@ export class keepalived extends CoreService {
103
113
 
104
114
  const extra = [];
105
115
 
106
- const smtpServer = this.smtpServer;
116
+ const smtp_server = this.smtp_server;
107
117
 
108
- if (smtpServer) {
109
- extra.push(` smtp_server ${smtpServer.address}`);
118
+ if (smtp_server) {
119
+ extra.push(` smtp_server ${smtp_server.address}`);
110
120
  }
111
121
 
112
122
  const cfg = [