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 +1 -1
- package/src/base.mjs +0 -4
- package/src/host.mjs +1 -1
- package/src/owner.mjs +0 -5
- package/src/services/keepalived.mjs +13 -3
package/package.json
CHANGED
package/src/base.mjs
CHANGED
package/src/host.mjs
CHANGED
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
|
|
116
|
+
const smtp_server = this.smtp_server;
|
|
107
117
|
|
|
108
|
-
if (
|
|
109
|
-
extra.push(` smtp_server ${
|
|
118
|
+
if (smtp_server) {
|
|
119
|
+
extra.push(` smtp_server ${smtp_server.address}`);
|
|
110
120
|
}
|
|
111
121
|
|
|
112
122
|
const cfg = [
|