pmcf 4.17.0 → 4.17.1

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.17.0",
3
+ "version": "4.17.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/cluster.mjs CHANGED
@@ -85,11 +85,7 @@ export class Cluster extends Host {
85
85
  const location = `${this.location.name}-${host.name}`;
86
86
 
87
87
  const result = {
88
- sources: [
89
- new FileContentProvider(packageStagingDir + "/")[
90
- Symbol.asyncIterator
91
- ]()
92
- ],
88
+ sources: [new FileContentProvider(packageStagingDir + "/")],
93
89
  outputs: host.outputs,
94
90
  properties: {
95
91
  name: `keepalived-${location}`,
@@ -100,12 +96,19 @@ export class Cluster extends Host {
100
96
  }
101
97
  };
102
98
 
99
+ const extra = [];
100
+
101
+ const smtp = this.smtp;
102
+ if (smtp) {
103
+ extra.push(` smtp_server ${smtp.address()}`);
104
+ }
105
+
103
106
  const cfg = [
104
107
  "global_defs {",
105
108
  " notification_email {",
106
109
  " " + this.administratorEmail,
107
110
  " }",
108
- ` smtp_server ${this.smtp.address()}`,
111
+ ...extra,
109
112
  ` notification_email_from keepalived@${host.domainName}`,
110
113
  " enable_script_security",
111
114
  " script_user root",
@@ -503,7 +503,7 @@ export class Cluster extends Host {
503
503
  get backups(): any[];
504
504
  get members(): Set<any>;
505
505
  preparePackages(stagingDir: any): AsyncGenerator<{
506
- sources: AsyncIterable<import("content-entry").ContentEntry | import("content-entry").CollectionEntry>[];
506
+ sources: FileContentProvider[];
507
507
  outputs: any;
508
508
  properties: {
509
509
  name: string;
@@ -515,3 +515,4 @@ export class Cluster extends Host {
515
515
  }, void, unknown>;
516
516
  }
517
517
  import { Host } from "./host.mjs";
518
+ import { FileContentProvider } from "npm-pkgbuild";