00_apt-cacher-ng.xml
| 1 |
<?xml version="1.0" encoding="utf-8"?>
|
|---|---|
| 2 |
<creole>
|
| 3 |
|
| 4 |
<files>
|
| 5 |
<file name='/etc/apt-cacher-ng/security.conf' source='acng-security.conf' filelist='apt_cacher' /> |
| 6 |
<service_access service='apt_cacher'> |
| 7 |
<port port_type='SymLinkOption' service_accesslist='apt_cacher_distant'>apt_cacher_port</port> |
| 8 |
</service_access>
|
| 9 |
<service_restriction service='apt_cacher'> |
| 10 |
<ip interface='auto' ip_type='SymLinkOption' service_restrictionlist='apt_cacher_distant'>apt_cacher_distant_ip</ip> |
| 11 |
</service_restriction>
|
| 12 |
</files>
|
| 13 |
|
| 14 |
<variables>
|
| 15 |
<family name='apt-cacher' mode='expert'> |
| 16 |
<variable name="apt_cacher_distant" type="oui/non" description="Autoriser d'autres serveurs locaux à se connecter sur apt-cacher-ng"> |
| 17 |
<value>non</value> |
| 18 |
</variable>
|
| 19 |
<variable name="apt_cacher_distant_ip" type="ip" description="Adresse IP du serveur autorisé" multi='True' mandatory='True'/> |
| 20 |
<variable name="apt_cacher_distant_pwd" type="string" description="Mot de passe d'accès à l'interface d'administration"/> |
| 21 |
</family>
|
| 22 |
</variables>
|
| 23 |
|
| 24 |
<constraints>
|
| 25 |
<fill name='gen_random' target='apt_cacher_distant_pwd'/> |
| 26 |
<condition name='disabled_if_in' source='activer_firewall'> |
| 27 |
<param>non</param> |
| 28 |
<target>apt_cacher_distant_ip</target> |
| 29 |
</condition>
|
| 30 |
<condition name='disabled_if_in' source='apt_cacher_distant'> |
| 31 |
<param>non</param> |
| 32 |
<target>apt_cacher_distant_ip</target> |
| 33 |
<target>apt_cacher_distant_pwd</target> |
| 34 |
<target type='service_accesslist'>apt_cacher_distant</target> |
| 35 |
<target type='service_restrictionlist'>apt_cacher_distant</target> |
| 36 |
</condition>
|
| 37 |
</constraints>
|
| 38 |
|
| 39 |
<help/> |
| 40 |
|
| 41 |
</creole>
|