Project

General

Profile

Bug #2473 » policy.xml

Francois BAYART, 2012-05-03 14:18

 
<!--
Copyright 2011 Normation SAS

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, Version 3.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<!--
This is the hosts configuration PT.
Compatibility : Debian like, RedHat like, SuSE like and Windows

It is intended to check if the required hosts entries are set.
-->
<POLICY name="Hosts settings">
<DESCRIPTION>This technique configures the machine hosts file. Be careful: The IP address is used as the key reference for any edition and if multiple hosts have been specified with the same IP in the hosts file, the matching entry defined here will take precedence and erase all the other occurrences of the same IP</DESCRIPTION>
<COMPATIBLE>
<OS version=">= 4 (Etch)">Debian</OS>
<OS version=">= 4 (Nahant)">RHEL / CentOS</OS>
<OS version=">= 10 SP1 (Agama Lizard)">SuSE LES / DES / OpenSuSE</OS>
<OS version=">= NT 5.1 (Windows XP/Server 2003)">Windows</OS>
<AGENT version=">= 3.1.5">cfengine-community</AGENT>
</COMPATIBLE>

<BUNDLES>
<NAME>check_hosts_configuration</NAME>
</BUNDLES>
<TMLS>
<TML name="hostsConfiguration"/>
</TMLS>
<SECTIONS>
<SECTION name="Enforce the content of the host file">
<INPUT>
<NAME>HOSTS_ENFORCE</NAME>
<DESCRIPTION>Force the hosts file content</DESCRIPTION>
<LONGDESCRIPTION>If enabled, only the entries defined here and the TCP/IP defaults ones will be inserted in the hosts file. Every other line will be deleted</LONGDESCRIPTION>
<CONSTRAINT>
<TYPE>boolean</TYPE>
</CONSTRAINT>
</INPUT>
</SECTION>
<!-- resolver settings , index 1-->
<SECTION name="Hosts settings" multivalued="true">
<INPUT>
<NAME>HOSTS_HOST</NAME>
<DESCRIPTION>Hostname</DESCRIPTION>
</INPUT>
<INPUT>
<NAME>HOSTS_IP</NAME>
<DESCRIPTION>Host IP address</DESCRIPTION>
<CONSTRAINT>
<TYPE>string</TYPE>
</CONSTRAINT>
</INPUT>
</SECTION>
</SECTIONS>

</POLICY>
(3-3/4)