Changes

Modularisation

1,635 bytes added, 13:30, 23 October 2013
** Helper Scripts, like notifications (quota, backup failed, rsnapshot, ...): helper.pl
** Tests (CLI, Unit-Tests, ...): test.sh
 
== Module Naming ==
 
 
== GitHub ==
Proposed directory structure on GitHub.
 
=== Directory Structure Web Module ===
<pre>
/data #
/data/ldif # LDAP: load.ldif
/api # API (PHP): api.php
/api/... # Structure from CWI according to best practice from the Yii-Framework (a separation of configuration and code would be nice).
/api/... # It would be nice, if the configuration files could be outside the web root (htdocs), so that a miss-configuration of
/api/... # the web server does not lead to password leaks.
/web # Web Interface (HTML/JS/CSS, uses API): gui.js
/web/... #
/cli # CLI (Python, Perl, PHP, Bash with curl ... uses API): api.sh
/cli/... #
/test # Tests (GUI, Unit-Tests, ...): test.xml
/test/... #
</pre>
 
It would be nice to be able to install new modules without the need to modify the main configuration file. Maybe with single configuration files per module? Or do you have other suggestions?
 
=== Directory Structure Service Module ===
<pre>
/bin # Helper Scripts, like notifications (quota, backup failed, rsnapshot, ...): helper.pl
/etc # Configuration
/etc/Provsioning #
/etc/Provsioning/Backup #
/lib # Provisioning Perl-Modules for a dedicated Service: KVM.pm or rsnapshot.pm
/lib/perl #
/lib/perl/Provisioning #
/lib/perl/Provisioning/Backup #
/libexec #
/test # Tests (CLI, Unit-Tests, ...): test.sh
</pre>
[[Category:Development]]
SLB, editor, reviewer
3,368
edits