pmcf 3.18.11 → 3.19.0
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": "3.
|
|
3
|
+
"version": "3.19.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"ip-utilties": "^2.0.2",
|
|
57
57
|
"npm-pkgbuild": "^19.1.2",
|
|
58
|
-
"pacc": "^6.
|
|
58
|
+
"pacc": "^6.7.0",
|
|
59
59
|
"package-directory": "^8.1.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
addType,
|
|
3
|
+
getAttributesJSON,
|
|
4
|
+
string_attribute_writable,
|
|
5
|
+
duration_attribute_writable
|
|
6
|
+
} from "pacc";
|
|
2
7
|
import { Service, ServiceTypeDefinition } from "pmcf";
|
|
3
8
|
|
|
4
9
|
const SystemdJournalServiceTypeDefinition = {
|
|
@@ -6,7 +11,18 @@ const SystemdJournalServiceTypeDefinition = {
|
|
|
6
11
|
extends: ServiceTypeDefinition,
|
|
7
12
|
specializationOf: ServiceTypeDefinition,
|
|
8
13
|
owners: ServiceTypeDefinition.owners,
|
|
9
|
-
key: "name"
|
|
14
|
+
key: "name",
|
|
15
|
+
attributes: {
|
|
16
|
+
Compress: {
|
|
17
|
+
...string_attribute_writable
|
|
18
|
+
},
|
|
19
|
+
SystemMaxUse: {
|
|
20
|
+
...string_attribute_writable
|
|
21
|
+
},
|
|
22
|
+
SyncIntervalSec: {
|
|
23
|
+
...duration_attribute_writable
|
|
24
|
+
}
|
|
25
|
+
}
|
|
10
26
|
};
|
|
11
27
|
|
|
12
28
|
export class SystemdJournalService extends Service {
|
|
@@ -32,11 +48,7 @@ export class SystemdJournalService extends Service {
|
|
|
32
48
|
configFileName: `etc/systemd/journal.conf.d/${name}.conf`,
|
|
33
49
|
content: [
|
|
34
50
|
"Journal",
|
|
35
|
-
|
|
36
|
-
Compress: "yes",
|
|
37
|
-
SystemMaxUse: "500M",
|
|
38
|
-
SyncIntervalSec: "15m"
|
|
39
|
-
}
|
|
51
|
+
getAttributesJSON(this, SystemdJournalServiceTypeDefinition.attributes)
|
|
40
52
|
]
|
|
41
53
|
};
|
|
42
54
|
}
|
|
@@ -712,17 +712,75 @@ export class SystemdJournalService extends Service {
|
|
|
712
712
|
};
|
|
713
713
|
})[];
|
|
714
714
|
key: string;
|
|
715
|
+
attributes: {
|
|
716
|
+
Compress: {
|
|
717
|
+
type: object;
|
|
718
|
+
isKey: boolean;
|
|
719
|
+
writable: boolean;
|
|
720
|
+
mandatory: boolean;
|
|
721
|
+
collection: boolean;
|
|
722
|
+
private?: boolean;
|
|
723
|
+
credential?: boolean;
|
|
724
|
+
persistent?: boolean;
|
|
725
|
+
depends?: string;
|
|
726
|
+
description?: string;
|
|
727
|
+
default?: any;
|
|
728
|
+
set?: Function;
|
|
729
|
+
get?: Function;
|
|
730
|
+
prepareValue?: Function;
|
|
731
|
+
values?: Set<any>;
|
|
732
|
+
externalName?: string;
|
|
733
|
+
env?: string[] | string;
|
|
734
|
+
additionalValues?: object;
|
|
735
|
+
};
|
|
736
|
+
SystemMaxUse: {
|
|
737
|
+
type: object;
|
|
738
|
+
isKey: boolean;
|
|
739
|
+
writable: boolean;
|
|
740
|
+
mandatory: boolean;
|
|
741
|
+
collection: boolean;
|
|
742
|
+
private?: boolean;
|
|
743
|
+
credential?: boolean;
|
|
744
|
+
persistent?: boolean;
|
|
745
|
+
depends?: string;
|
|
746
|
+
description?: string;
|
|
747
|
+
default?: any;
|
|
748
|
+
set?: Function;
|
|
749
|
+
get?: Function;
|
|
750
|
+
prepareValue?: Function;
|
|
751
|
+
values?: Set<any>;
|
|
752
|
+
externalName?: string;
|
|
753
|
+
env?: string[] | string;
|
|
754
|
+
additionalValues?: object;
|
|
755
|
+
};
|
|
756
|
+
SyncIntervalSec: {
|
|
757
|
+
type: object;
|
|
758
|
+
isKey: boolean;
|
|
759
|
+
writable: boolean;
|
|
760
|
+
mandatory: boolean;
|
|
761
|
+
collection: boolean;
|
|
762
|
+
private?: boolean;
|
|
763
|
+
credential?: boolean;
|
|
764
|
+
persistent?: boolean;
|
|
765
|
+
depends?: string;
|
|
766
|
+
description?: string;
|
|
767
|
+
default?: any;
|
|
768
|
+
set?: Function;
|
|
769
|
+
get?: Function;
|
|
770
|
+
prepareValue?: Function;
|
|
771
|
+
values?: Set<any>;
|
|
772
|
+
externalName?: string;
|
|
773
|
+
env?: string[] | string;
|
|
774
|
+
additionalValues?: object;
|
|
775
|
+
};
|
|
776
|
+
};
|
|
715
777
|
};
|
|
716
778
|
get type(): string;
|
|
717
779
|
get systemdServices(): string;
|
|
718
780
|
systemdConfigs(name: any): {
|
|
719
781
|
serviceName: string;
|
|
720
782
|
configFileName: string;
|
|
721
|
-
content:
|
|
722
|
-
Compress: string;
|
|
723
|
-
SystemMaxUse: string;
|
|
724
|
-
SyncIntervalSec: string;
|
|
725
|
-
})[];
|
|
783
|
+
content: any[];
|
|
726
784
|
};
|
|
727
785
|
}
|
|
728
786
|
import { Service } from "pmcf";
|