pmcf 3.18.11 → 3.19.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": "3.18.11",
3
+ "version": "3.19.1",
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.6.3",
58
+ "pacc": "^6.7.0",
59
59
  "package-directory": "^8.1.0"
60
60
  },
61
61
  "devDependencies": {
@@ -1,4 +1,9 @@
1
- import { addType } from "pacc";
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,78 @@ const SystemdJournalServiceTypeDefinition = {
6
11
  extends: ServiceTypeDefinition,
7
12
  specializationOf: ServiceTypeDefinition,
8
13
  owners: ServiceTypeDefinition.owners,
9
- key: "name"
14
+ key: "name",
15
+ attributes: {
16
+ Storage: {
17
+ ...string_attribute_writable
18
+ },
19
+ Seal: {
20
+ ...string_attribute_writable
21
+ },
22
+ SplitMode: {
23
+ ...string_attribute_writable
24
+ },
25
+ SyncIntervalSec: {
26
+ ...duration_attribute_writable
27
+ },
28
+ RateLimitIntervalSec: {
29
+ ...duration_attribute_writable
30
+ },
31
+ RateLimitBurst: {
32
+ ...string_attribute_writable
33
+ },
34
+ SystemMaxUse: {
35
+ ...string_attribute_writable
36
+ },
37
+ SystemKeepFree: {
38
+ ...string_attribute_writable
39
+ },
40
+ SystemMaxFileSize: {
41
+ ...string_attribute_writable
42
+ },
43
+ SystemMaxFiles: {
44
+ ...string_attribute_writable
45
+ },
46
+ RuntimeMaxUse: {
47
+ ...string_attribute_writable
48
+ },
49
+ RuntimeKeepFree: {
50
+ ...string_attribute_writable
51
+ },
52
+ RuntimeMaxFileSize: {
53
+ ...string_attribute_writable
54
+ },
55
+ RuntimeMaxFiles: {
56
+ ...string_attribute_writable
57
+ },
58
+ MaxRetentionSec: {
59
+ ...duration_attribute_writable
60
+ },
61
+ MaxFileSec: {
62
+ ...duration_attribute_writable
63
+ },
64
+ ForwardToSyslog: {
65
+ ...string_attribute_writable
66
+ },
67
+ ForwardToKMsg: {
68
+ ...string_attribute_writable
69
+ },
70
+ ForwardToConsole: {
71
+ ...string_attribute_writable
72
+ },
73
+ ForwardToWall: {
74
+ ...string_attribute_writable
75
+ },
76
+ TTYPath: {
77
+ ...string_attribute_writable
78
+ },
79
+ MaxLevelStore: {
80
+ ...string_attribute_writable
81
+ },
82
+ Compress: {
83
+ ...string_attribute_writable
84
+ }
85
+ }
10
86
  };
11
87
 
12
88
  export class SystemdJournalService extends Service {
@@ -32,11 +108,7 @@ export class SystemdJournalService extends Service {
32
108
  configFileName: `etc/systemd/journal.conf.d/${name}.conf`,
33
109
  content: [
34
110
  "Journal",
35
- {
36
- Compress: "yes",
37
- SystemMaxUse: "500M",
38
- SyncIntervalSec: "15m"
39
- }
111
+ getAttributesJSON(this, SystemdJournalServiceTypeDefinition.attributes)
40
112
  ]
41
113
  };
42
114
  }
@@ -712,17 +712,475 @@ export class SystemdJournalService extends Service {
712
712
  };
713
713
  })[];
714
714
  key: string;
715
+ attributes: {
716
+ Storage: {
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
+ Seal: {
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
+ SplitMode: {
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
+ SyncIntervalSec: {
777
+ type: object;
778
+ isKey: boolean;
779
+ writable: boolean;
780
+ mandatory: boolean;
781
+ collection: boolean;
782
+ private?: boolean;
783
+ credential?: boolean;
784
+ persistent?: boolean;
785
+ depends?: string;
786
+ description?: string;
787
+ default?: any;
788
+ set?: Function;
789
+ get?: Function;
790
+ prepareValue?: Function;
791
+ values?: Set<any>;
792
+ externalName?: string;
793
+ env?: string[] | string;
794
+ additionalValues?: object;
795
+ };
796
+ RateLimitIntervalSec: {
797
+ type: object;
798
+ isKey: boolean;
799
+ writable: boolean;
800
+ mandatory: boolean;
801
+ collection: boolean;
802
+ private?: boolean;
803
+ credential?: boolean;
804
+ persistent?: boolean;
805
+ depends?: string;
806
+ description?: string;
807
+ default?: any;
808
+ set?: Function;
809
+ get?: Function;
810
+ prepareValue?: Function;
811
+ values?: Set<any>;
812
+ externalName?: string;
813
+ env?: string[] | string;
814
+ additionalValues?: object;
815
+ };
816
+ RateLimitBurst: {
817
+ type: object;
818
+ isKey: boolean;
819
+ writable: boolean;
820
+ mandatory: boolean;
821
+ collection: boolean;
822
+ private?: boolean;
823
+ credential?: boolean;
824
+ persistent?: boolean;
825
+ depends?: string;
826
+ description?: string;
827
+ default?: any;
828
+ set?: Function;
829
+ get?: Function;
830
+ prepareValue?: Function;
831
+ values?: Set<any>;
832
+ externalName?: string;
833
+ env?: string[] | string;
834
+ additionalValues?: object;
835
+ };
836
+ SystemMaxUse: {
837
+ type: object;
838
+ isKey: boolean;
839
+ writable: boolean;
840
+ mandatory: boolean;
841
+ collection: boolean;
842
+ private?: boolean;
843
+ credential?: boolean;
844
+ persistent?: boolean;
845
+ depends?: string;
846
+ description?: string;
847
+ default?: any;
848
+ set?: Function;
849
+ get?: Function;
850
+ prepareValue?: Function;
851
+ values?: Set<any>;
852
+ externalName?: string;
853
+ env?: string[] | string;
854
+ additionalValues?: object;
855
+ };
856
+ SystemKeepFree: {
857
+ type: object;
858
+ isKey: boolean;
859
+ writable: boolean;
860
+ mandatory: boolean;
861
+ collection: boolean;
862
+ private?: boolean;
863
+ credential?: boolean;
864
+ persistent?: boolean;
865
+ depends?: string;
866
+ description?: string;
867
+ default?: any;
868
+ set?: Function;
869
+ get?: Function;
870
+ prepareValue?: Function;
871
+ values?: Set<any>;
872
+ externalName?: string;
873
+ env?: string[] | string;
874
+ additionalValues?: object;
875
+ };
876
+ SystemMaxFileSize: {
877
+ type: object;
878
+ isKey: boolean;
879
+ writable: boolean;
880
+ mandatory: boolean;
881
+ collection: boolean;
882
+ private?: boolean;
883
+ credential?: boolean;
884
+ persistent?: boolean;
885
+ depends?: string;
886
+ description?: string;
887
+ default?: any;
888
+ set?: Function;
889
+ get?: Function;
890
+ prepareValue?: Function;
891
+ values?: Set<any>;
892
+ externalName?: string;
893
+ env?: string[] | string;
894
+ additionalValues?: object;
895
+ };
896
+ SystemMaxFiles: {
897
+ type: object;
898
+ isKey: boolean;
899
+ writable: boolean;
900
+ mandatory: boolean;
901
+ collection: boolean;
902
+ private?: boolean;
903
+ credential?: boolean;
904
+ persistent?: boolean;
905
+ depends?: string;
906
+ description?: string;
907
+ default?: any;
908
+ set?: Function;
909
+ get?: Function;
910
+ prepareValue?: Function;
911
+ values?: Set<any>;
912
+ externalName?: string;
913
+ env?: string[] | string;
914
+ additionalValues?: object;
915
+ };
916
+ RuntimeMaxUse: {
917
+ type: object;
918
+ isKey: boolean;
919
+ writable: boolean;
920
+ mandatory: boolean;
921
+ collection: boolean;
922
+ private?: boolean;
923
+ credential?: boolean;
924
+ persistent?: boolean;
925
+ depends?: string;
926
+ description?: string;
927
+ default?: any;
928
+ set?: Function;
929
+ get?: Function;
930
+ prepareValue?: Function;
931
+ values?: Set<any>;
932
+ externalName?: string;
933
+ env?: string[] | string;
934
+ additionalValues?: object;
935
+ };
936
+ RuntimeKeepFree: {
937
+ type: object;
938
+ isKey: boolean;
939
+ writable: boolean;
940
+ mandatory: boolean;
941
+ collection: boolean;
942
+ private?: boolean;
943
+ credential?: boolean;
944
+ persistent?: boolean;
945
+ depends?: string;
946
+ description?: string;
947
+ default?: any;
948
+ set?: Function;
949
+ get?: Function;
950
+ prepareValue?: Function;
951
+ values?: Set<any>;
952
+ externalName?: string;
953
+ env?: string[] | string;
954
+ additionalValues?: object;
955
+ };
956
+ RuntimeMaxFileSize: {
957
+ type: object;
958
+ isKey: boolean;
959
+ writable: boolean;
960
+ mandatory: boolean;
961
+ collection: boolean;
962
+ private?: boolean;
963
+ credential?: boolean;
964
+ persistent?: boolean;
965
+ depends?: string;
966
+ description?: string;
967
+ default?: any;
968
+ set?: Function;
969
+ get?: Function;
970
+ prepareValue?: Function;
971
+ values?: Set<any>;
972
+ externalName?: string;
973
+ env?: string[] | string;
974
+ additionalValues?: object;
975
+ };
976
+ RuntimeMaxFiles: {
977
+ type: object;
978
+ isKey: boolean;
979
+ writable: boolean;
980
+ mandatory: boolean;
981
+ collection: boolean;
982
+ private?: boolean;
983
+ credential?: boolean;
984
+ persistent?: boolean;
985
+ depends?: string;
986
+ description?: string;
987
+ default?: any;
988
+ set?: Function;
989
+ get?: Function;
990
+ prepareValue?: Function;
991
+ values?: Set<any>;
992
+ externalName?: string;
993
+ env?: string[] | string;
994
+ additionalValues?: object;
995
+ };
996
+ MaxRetentionSec: {
997
+ type: object;
998
+ isKey: boolean;
999
+ writable: boolean;
1000
+ mandatory: boolean;
1001
+ collection: boolean;
1002
+ private?: boolean;
1003
+ credential?: boolean;
1004
+ persistent?: boolean;
1005
+ depends?: string;
1006
+ description?: string;
1007
+ default?: any;
1008
+ set?: Function;
1009
+ get?: Function;
1010
+ prepareValue?: Function;
1011
+ values?: Set<any>;
1012
+ externalName?: string;
1013
+ env?: string[] | string;
1014
+ additionalValues?: object;
1015
+ };
1016
+ MaxFileSec: {
1017
+ type: object;
1018
+ isKey: boolean;
1019
+ writable: boolean;
1020
+ mandatory: boolean;
1021
+ collection: boolean;
1022
+ private?: boolean;
1023
+ credential?: boolean;
1024
+ persistent?: boolean;
1025
+ depends?: string;
1026
+ description?: string;
1027
+ default?: any;
1028
+ set?: Function;
1029
+ get?: Function;
1030
+ prepareValue?: Function;
1031
+ values?: Set<any>;
1032
+ externalName?: string;
1033
+ env?: string[] | string;
1034
+ additionalValues?: object;
1035
+ };
1036
+ ForwardToSyslog: {
1037
+ type: object;
1038
+ isKey: boolean;
1039
+ writable: boolean;
1040
+ mandatory: boolean;
1041
+ collection: boolean;
1042
+ private?: boolean;
1043
+ credential?: boolean;
1044
+ persistent?: boolean;
1045
+ depends?: string;
1046
+ description?: string;
1047
+ default?: any;
1048
+ set?: Function;
1049
+ get?: Function;
1050
+ prepareValue?: Function;
1051
+ values?: Set<any>;
1052
+ externalName?: string;
1053
+ env?: string[] | string;
1054
+ additionalValues?: object;
1055
+ };
1056
+ ForwardToKMsg: {
1057
+ type: object;
1058
+ isKey: boolean;
1059
+ writable: boolean;
1060
+ mandatory: boolean;
1061
+ collection: boolean;
1062
+ private?: boolean;
1063
+ credential?: boolean;
1064
+ persistent?: boolean;
1065
+ depends?: string;
1066
+ description?: string;
1067
+ default?: any;
1068
+ set?: Function;
1069
+ get?: Function;
1070
+ prepareValue?: Function;
1071
+ values?: Set<any>;
1072
+ externalName?: string;
1073
+ env?: string[] | string;
1074
+ additionalValues?: object;
1075
+ };
1076
+ ForwardToConsole: {
1077
+ type: object;
1078
+ isKey: boolean;
1079
+ writable: boolean;
1080
+ mandatory: boolean;
1081
+ collection: boolean;
1082
+ private?: boolean;
1083
+ credential?: boolean;
1084
+ persistent?: boolean;
1085
+ depends?: string;
1086
+ description?: string;
1087
+ default?: any;
1088
+ set?: Function;
1089
+ get?: Function;
1090
+ prepareValue?: Function;
1091
+ values?: Set<any>;
1092
+ externalName?: string;
1093
+ env?: string[] | string;
1094
+ additionalValues?: object;
1095
+ };
1096
+ ForwardToWall: {
1097
+ type: object;
1098
+ isKey: boolean;
1099
+ writable: boolean;
1100
+ mandatory: boolean;
1101
+ collection: boolean;
1102
+ private?: boolean;
1103
+ credential?: boolean;
1104
+ persistent?: boolean;
1105
+ depends?: string;
1106
+ description?: string;
1107
+ default?: any;
1108
+ set?: Function;
1109
+ get?: Function;
1110
+ prepareValue?: Function;
1111
+ values?: Set<any>;
1112
+ externalName?: string;
1113
+ env?: string[] | string;
1114
+ additionalValues?: object;
1115
+ };
1116
+ TTYPath: {
1117
+ type: object;
1118
+ isKey: boolean;
1119
+ writable: boolean;
1120
+ mandatory: boolean;
1121
+ collection: boolean;
1122
+ private?: boolean;
1123
+ credential?: boolean;
1124
+ persistent?: boolean;
1125
+ depends?: string;
1126
+ description?: string;
1127
+ default?: any;
1128
+ set?: Function;
1129
+ get?: Function;
1130
+ prepareValue?: Function;
1131
+ values?: Set<any>;
1132
+ externalName?: string;
1133
+ env?: string[] | string;
1134
+ additionalValues?: object;
1135
+ };
1136
+ MaxLevelStore: {
1137
+ type: object;
1138
+ isKey: boolean;
1139
+ writable: boolean;
1140
+ mandatory: boolean;
1141
+ collection: boolean;
1142
+ private?: boolean;
1143
+ credential?: boolean;
1144
+ persistent?: boolean;
1145
+ depends?: string;
1146
+ description?: string;
1147
+ default?: any;
1148
+ set?: Function;
1149
+ get?: Function;
1150
+ prepareValue?: Function;
1151
+ values?: Set<any>;
1152
+ externalName?: string;
1153
+ env?: string[] | string;
1154
+ additionalValues?: object;
1155
+ };
1156
+ Compress: {
1157
+ type: object;
1158
+ isKey: boolean;
1159
+ writable: boolean;
1160
+ mandatory: boolean;
1161
+ collection: boolean;
1162
+ private?: boolean;
1163
+ credential?: boolean;
1164
+ persistent?: boolean;
1165
+ depends?: string;
1166
+ description?: string;
1167
+ default?: any;
1168
+ set?: Function;
1169
+ get?: Function;
1170
+ prepareValue?: Function;
1171
+ values?: Set<any>;
1172
+ externalName?: string;
1173
+ env?: string[] | string;
1174
+ additionalValues?: object;
1175
+ };
1176
+ };
715
1177
  };
716
1178
  get type(): string;
717
1179
  get systemdServices(): string;
718
1180
  systemdConfigs(name: any): {
719
1181
  serviceName: string;
720
1182
  configFileName: string;
721
- content: (string | {
722
- Compress: string;
723
- SystemMaxUse: string;
724
- SyncIntervalSec: string;
725
- })[];
1183
+ content: any[];
726
1184
  };
727
1185
  }
728
1186
  import { Service } from "pmcf";