]>
git.proxmox.com Git - pmg-docs.git/blob - gen-pmg.conf.5-opts.pl
12 my $types = PMG
::Config
::Base-
>lookup_types;
14 my $single_section = shift;
27 rejectunknownsender
=> 1,
36 conn_count_limit
=> 1,
38 message_rate_limit
=> 1,
63 # verify if we document all mail settings
64 my $plugin = PMG
::Config
::Base-
>lookup('mail');
65 my $schema = $plugin->updateSchema(1);
66 my $properties = $schema->{properties
};
68 my $found_mail_keys = {};
69 foreach my $group (keys %$key_groups) {
70 my ($sec, $hash) = @{$key_groups->{$group}};
71 next if $sec ne 'mail';
72 foreach my $k (keys %$hash) {
73 die "unknown key '$k'" if !defined($properties->{$k});
74 $found_mail_keys->{$k} = 1;
77 foreach my $k (keys %$properties) {
78 next if $skiped_keys->{$k};
79 next if $k =~ m/^max_(filters|policy|smtpd_in|smtpd_out)$/;
80 die "undocumented key '$k'" if !defined($found_mail_keys->{$k});
87 if ($single_section) {
88 if (my $a = $key_groups->{$single_section}) {
89 my ($sec, $hash) = @$a;
90 $single_section = $sec;
96 foreach my $section (@$types) {
97 my $plugin = PMG
::Config
::Base-
>lookup($section);
98 my $schema = $plugin->updateSchema(1);
99 my $properties = $schema->{properties
};
101 if (defined($single_section)) {
102 next if $section ne $single_section;
104 print ".Section '$section'\n\n";
110 my ($key, $phash) = @_;
111 return 1 if $skiped_keys->{$key};
112 return 1 if $select_keys && !$select_keys->{$key};
116 print PVE
::RESTHandler
::dump_properties
(
117 $properties, 'asciidoc', 'config', $filter);
120 if (defined($single_section)) {
121 die "no such section '$single_section'" if !$found;