Skip to content

Commit

Permalink
Small corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
rumch-se committed Apr 6, 2023
1 parent 4285cf2 commit 9f31915
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

config_file="{{{ chrony_conf_path }}}"

# Check and configigure servers in /etc/chrony.conf
# Check and configigure servers in {{{ chrony_conf_path }}}
IFS="," read -a SERVERS <<< $var_multiple_time_servers
for srv in "${SERVERS[@]}"
do
Expand All @@ -17,7 +17,7 @@ do
fi
done

# Check and configure pools in /etc/chorny.conf
# Check and configure pools in {{{ chrony_conf_path }}}
IFS="," read -a POOLS <<< $var_multiple_time_pools
for srv in "${POOLS[@]}"
do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,32 @@
<concat>
<literal_component>^(?:pool)[[:space:]]</literal_component>
<split delimiter=",">
<variable_component var_ref="var_multiple_time_servers" />
<variable_component var_ref="var_multiple_time_pools" />
</split>
<literal_component>$</literal_component>
</concat>
</local_variable>

<ind:textfilecontent54_test check="all" check_existence="at_least_one_exists"
comment="Ensure remote NTP server is set " id="test_chrony_remote_server_configuration" version="1">
<ind:object object_ref="object_chrony_remote_server_configuartion" />
comment="Ensure remote NTP server is set" id="test_chrony_remote_server_configuration" version="1">
<ind:object object_ref="object_chrony_remote_server_configuration" />
</ind:textfilecontent54_test>

<ind:textfilecontent54_object comment="Ensure at least one NTP server is set" id="object_chrony_remote_server_configuartion" version="1">
<ind:textfilecontent54_object comment="Ensure at least one NTP server is set" id="object_chrony_remote_server_configuration" version="1">
<ind:filepath>{{{ chrony_conf_path }}}</ind:filepath>
<ind:pattern operation="pattern match" var_ref="temp_variable_test_servers"/>
<ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
</ind:textfilecontent54_object>

<ind:textfilecontent54_test check="all" check_existence="at_least_one_exists"
comment="Ensure remote NTP pool is set " id="test_chrony_remote_pool_configuration" version="1">
<ind:object object_ref="object_chrony_remote_pool_configuartion" />
comment="Ensure remote NTP pool is set" id="test_chrony_remote_pool_configuration" version="1">
<ind:object object_ref="object_chrony_remote_pool_configuration" />
</ind:textfilecontent54_test>

<ind:textfilecontent54_object comment="Ensure at least one NTP pool is set" id="object_chrony_remote_pool_configuartion" version="1">
<ind:textfilecontent54_object comment="Ensure at least one NTP pool is set" id="object_chrony_remote_pool_configuration" version="1">
<ind:filepath>{{{ chrony_conf_path }}}</ind:filepath>
<ind:pattern operation="pattern match" var_ref="temp_variable_test_pools"/>
<ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
</ind:textfilecontent54_object>

</def-group>
</def-group>

0 comments on commit 9f31915

Please sign in to comment.