Skip to content

Commit 44f6a65

Browse files
committed
Manual edits to make comments more consistent
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
1 parent fa464c0 commit 44f6a65

15 files changed

Lines changed: 41 additions & 30 deletions

File tree

examples/rss/rss.cf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,27 @@ bundle agent example_rss_promise
1919
# REPAIRED if content on disk changes
2020
# KEPT if content on disk does not need changed
2121
# NOTKEPT if unable to fetch rss, unable to re-write content
22+
# Default to newest
2223
feed => "https://blogs.nasa.gov/stationreport/feed/",
2324
select => "oldest";
2425

25-
# Default to newest
2626
"/tmp/ISS-random.txt"
2727
# Contains Item description
2828
# REPAIRED if content on disk changes
2929
# KEPT if content on disk does not need changed
3030
# NOTKEPT if unable to fetch rss, unable to re-write content
31+
# Default to newest
3132
feed => "https://blogs.nasa.gov/stationreport/feed/",
3233
select => "random";
3334

34-
# Default to newest
3535
"/tmp/ISS-newest-from-local-file-source.txt"
3636
# Contains Item description
3737
# REPAIRED if content on disk changes
3838
# KEPT if content on disk does not need changed
3939
# NOTKEPT if unable to fetch rss, unable to re-write content
40+
# Default to newest
4041
feed => "/tmp/iss.xml",
4142
select => "newest";
42-
# Default to newest
4343
}
4444

4545
bundle agent __main__

inventory/inventory-fwupd/policy.cf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ bundle agent inventory_fwupd_main
4343
"_template" string => "$(this.promise_dirname)/fwupd-inventory.mustache";
4444

4545
# TTLs in seconds for the fwupdmgr-derived JSON caches.
46+
# 12 h:
4647
"_updates_ttl" string => "43200";
4748

48-
# 12 h
49+
# 24 h:
4950
"_security_ttl" string => "86400";
5051

51-
# 24 h
5252
# Pre-compute file mtimes here rather than calling filestat() inline
5353
# inside class expressions: nested $(filestat($(path), mtime)) does not
5454
# expand reliably inside isgreaterthan(), so the staleness comparisons

security/delete-home-dotrhosts/policy/main.cf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ bundle agent main
2020

2121
vars:
2222
dotrhosts_management_disabled::
23+
# Fill in exception reason if missing (class was used)
2324
"exception"
24-
# Fill in exception reason if missing (class was used)
2525
string => "Unknown reason",
2626
if => not(isvariable("delete_home_dotrhosts:main.exception"));
2727

security/delete-home-dotshosts/policy/main.cf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ bundle agent main
2020

2121
vars:
2222
dotshosts_management_disabled::
23+
# Fill in exception reason if missing (class was used)
2324
"exception"
24-
# Fill in exception reason if missing (class was used)
2525
string => "Unknown reason",
2626
if => not(isvariable("delete_home_dotshosts:main.exception"));
2727

security/install-aide/install-aide.cf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ bundle agent install_aide
77
{
88
vars:
99
redhat|suse::
10+
# Name in yum:
1011
"pkg_name" slist => { "aide" };
1112

12-
# Name in yum
1313
debian::
14+
# Name in apt:
1415
"pkg_name" slist => { "aide" };
15-
# name in apt
16+
1617
packages:
1718
"${pkg_name}" -> { "CCE-27096-7" }
1819
policy => "present",

security/inventory-selinux-modules/main.cf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,17 @@ bundle agent semodule_list_modules
6060
"$(cache_file)"
6161
delete => default:tidy,
6262
if => isgreaterthan(
63+
# now minus mtime of cache file:
6364
format("%d", eval("$(sys.systime)-$(cache_file_age)")),
64-
# now minus mtime of cache file
65+
# cache minutes:
6566
format("%d", eval("$(hours_cached)*60*60"))
6667
);
67-
# cache minutes
68+
6869
commands:
6970
_inventory_selinux_semodule_list_modules_supported_platform::
7071
"/sbin/semodule"
7172
arglist => { "--list-modules=full", ">", "$(cache_file)" },
73+
# Required for redirection:
7274
contain => default:in_shell,
73-
# Required for redirection
7475
if => not(fileexists($(cache_file)));
7576
}

security/uninstall-apache/uninstall-apache.cf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ bundle agent uninstall_apache
77
{
88
vars:
99
redhat|suse::
10+
# Name in yum:
1011
"pkg_name" slist => { "httpd" };
1112

12-
# Name in yum
1313
debian::
14+
# Name in apt:
1415
"pkg_name" slist => { "apache2" };
15-
# name in apt
16+
1617
classes:
1718
"apache_allowed"
1819
or => {

security/uninstall-bind/uninstall-bind.cf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ bundle agent uninstall_bind
77
{
88
vars:
99
redhat|suse::
10+
# Name in yum:
1011
"pkg_name" slist => { "bind" };
1112

12-
# Name in yum
1313
debian::
14+
# Name in apt:
1415
"pkg_name" slist => { "bind", "bind9" };
15-
# name in apt
16+
1617
classes:
1718
"bind_allowed"
1819
or => {

security/uninstall-dhcp/uninstall-dhcp.cf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ bundle agent uninstall_dhcp
77
{
88
vars:
99
redhat|suse::
10+
# Name in yum:
1011
"pkg_name" slist => { "dhcp" };
1112

12-
# Name in yum
1313
debian::
14+
# Name in apt:
1415
"pkg_name" slist => { "isc-dhcp-server" };
15-
# name in apt
16+
1617
classes:
1718
"dhcp_allowed"
1819
or => {

security/uninstall-dovecot/uninstall-dovecot.cf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ bundle agent uninstall_dovecot
77
{
88
vars:
99
redhat|suse::
10+
# Name in yum:
1011
"pkg_name" slist => { "dovecot" };
1112

12-
# Name in yum
1313
debian::
14+
# Name in apt:
1415
"pkg_name" slist => { "dovecot-core" };
15-
# name in apt
16+
1617
classes:
1718
"dovecot_allowed"
1819
or => {

0 commit comments

Comments
 (0)