Is it possible, to add more Services like fail2ban? If yes, can you wxplain me the correct way?
Autoinstaller -> Add more Services
- gOOvER
- Closed
- Thread is marked as Resolved.
-
-
It's easy
Each Distro version has a list of required packages in docs/Distr named like:
distribution-packages-flavor.xml (ex debian-packages-squeeze.xml)
Xml format consist in a list of labels, only alternative having special meaning:Quote
<packages>
<servername>
<alternative>
<server1>package1_for_server1</server1>
<server1>package2_for_server1</server1>
<server2>package1_for_server1</server2>
</alternative>
</servername>
<name2>
perl
<other>perl-base</other>
</name2>
<name3>bash</name3>
</packages>
<package></packages> are requiered in place
next level (other, name2 and name 3 are section name for easy identify packages needed for a sofware). Is more like a helper for humans.if you want you can write them asQuote
<packages>
<servername>
<alternative>
<server1>package1_for_server1</server1>
<server1>package2_for_server1</server1>
<server2>package1_for_server1</server2>
</alternative>
</servername>
<somenamehere>
perl
perl-base
bash
</somenamehere>
</packages>
Only important label is alternative which mark a choice to made (dovecot and courier can not be installed at same time) so for mail server (pop and imap) i mark po as servername (used to determine which class will take care of that server), say that i have alternative packages for server1 (courier) and server2 (dovecot):Quote
<po> <- class name
<alternative> <-here I define that i must choose between 2 or more servers
<courier>courier-imap</courier> <-pkg for courier
<courier>courier-imap-ssl</courier> <-pkg for courier
<courier>courier-maildrop</courier> <-pkg for courier
<courier>courier-pop</courier> <-pkg for courier
<courier>courier-pop-ssl</courier> <-pkg for courier
<dovecot>dovecot-imapd</dovecot> <-pkg for dovecot
<dovecot>dovecot-pop3d</dovecot> <-pkg for dovecot
</alternative>
</po>
so to add fail2ban which does not have another software to conflict with modify:Quote
<other>tar</other>
<other>wget</other>
</packages>in
Quote
<other>tar</other>
<other>wget</other>
<other>fail2ban</other>
</packages>or even create own section:
Quote
<other>tar</other>
<other>wget</other>
<fail2banexamplesection>fail2ban</fail2banexamplesection>
</packages>
but you must know that fail2ban do not work out of box with i-MSCP -