Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
- Loading branch information
Sebastian Lederer
authored and
Marco van Wieringen
committed
Feb 17, 2015
1 parent
77c7743
commit 0e2dcd5
Showing
42 changed files
with
2,217 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
|
||
VERSION=1 | ||
|
||
. /usr/share/univention-lib/base.sh | ||
. /usr/share/univention-lib/ldap.sh | ||
. /usr/share/univention-join/joinscripthelper.lib | ||
joinscript_init | ||
|
||
eval "$(univention-config-registry shell)" | ||
|
||
ucs_addServiceToLocalhost "Bareos Backup" "$@" | ||
|
||
# keep "cn=custom attributes,cn=univention,$ldap_base" clean | ||
univention-directory-manager container/cn create "$@" --ignore_exists \ | ||
--position "cn=custom attributes,cn=univention,$ldap_base" \ | ||
--set name="bareos" || die | ||
|
||
# extend to more modules? domaincontroller_master? | ||
univention-directory-manager settings/extended_attribute create "$@" \ | ||
--ignore_exists \ | ||
--position="cn=bareos,cn=custom attributes,cn=univention,$ldap_base" \ | ||
--set name=bareos-enabled \ | ||
--set module=computers/linux \ | ||
--set module=computers/ubuntu \ | ||
--set module=computers/windows \ | ||
--set module=computers/ipmanagedclient \ | ||
--set tabName="Bareos Backup" \ | ||
--set tabPosition=2 \ | ||
--set ldapMapping="bareosEnableJob" \ | ||
--set objectClass="bareosClientHost" \ | ||
--set longDescription="schedule backup for this host (the bareos client needs to be installed)" \ | ||
--set shortDescription="enable backup job" \ | ||
--set translationShortDescription='"de_DE" "Backup-Job aktivieren"' \ | ||
--set translationLongDescription='"de_DE" "Backup für diesen Rechner durchführen (Bareos-Client muss installiert sein)"' \ | ||
--set CLIName=bareos \ | ||
--set mayChange=1 \ | ||
--set syntax='OkOrNot' || die | ||
|
||
joinscript_save_current_version | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
VERSION=1 | ||
|
||
. /usr/share/univention-lib/base.sh | ||
. /usr/share/univention-lib/ldap.sh | ||
. /usr/share/univention-join/joinscripthelper.lib | ||
|
||
joinscript_init | ||
|
||
SERVICE="Bareos Backup" | ||
|
||
eval "$(univention-config-registry shell)" | ||
|
||
ucs_removeServiceFromLocalhost "${SERVICE}" "$@" | ||
|
||
if ucs_isServiceUnused "${SERVICE}" "$@"; then | ||
# simply remove them all | ||
univention-directory-manager container/cn remove "$@" --dn "cn=bareos,cn=custom attributes,cn=univention,$ldap_base" | ||
fi | ||
|
||
joinscript_remove_script_from_status_file univention-bareos | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Bareos - Backup Archiving REcovery Open Sourced | ||
|
||
Copyright (C) 2000-2012 Free Software Foundation Europe e.V. | ||
Copyright (C) 2013-2013 Bareos GmbH & Co. KG | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as | ||
published by the Free Software Foundation, either version 3 of the | ||
License, or (at your option) any later version. | ||
|
||
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 Affero General Public License for more details. | ||
|
||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see http://www.gnu.org/licenses/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
objectidentifier DASS 1.3.6.1.4.1.22346 | ||
objectidentifier DASS.BAREOS DASS:6 | ||
objectidentifier DASS.BAREOS.OC DASS.BAREOS:4 | ||
objectidentifier DASS.BAREOS.Attr DASS.BAREOS:6 | ||
# | ||
# schema file for Univention/Bareos attributes | ||
# | ||
# $Id: bareos-attributes.schema 8731 2013-04-19 13:22:10Z slederer $ | ||
# | ||
|
||
attributeType ( DASS.BAREOS.Attr:2.1 | ||
NAME 'bareosCommon' | ||
DESC 'common bareos attributes' | ||
EQUALITY caseIgnoreMatch | ||
SUBSTR caseIgnoreSubstringsMatch | ||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) | ||
|
||
attributeType ( DASS.BAREOS.Attr:2.2 | ||
NAME 'bareosSchedule' | ||
DESC 'backup schedule' | ||
SUP bareosCommon ) | ||
|
||
attributeType ( DASS.BAREOS.Attr:2.3 | ||
NAME 'bareosFileSet' | ||
DESC 'fileset to use for this bareos client' | ||
SUP bareosCommon ) | ||
|
||
attributeType ( DASS.BAREOS.Attr:2.4 | ||
NAME 'bareosOptions' | ||
DESC 'options for the backup job' | ||
SUP bareosCommon ) | ||
|
||
attributeType ( DASS.BAREOS.Attr:2.5 | ||
NAME 'bareosProfile' | ||
DESC 'job defaults' | ||
SUP bareosCommon ) | ||
|
||
attributeType ( DASS.BAREOS.Attr:2.6 | ||
NAME 'bareosEnableJob' | ||
DESC 'enable job for this client' | ||
SUP bareosCommon ) | ||
|
||
# | ||
# schema file for Univention-Bareos objectclasses | ||
# | ||
|
||
# | ||
# $Id: bareos-objectclasses.schema 8731 2013-04-19 13:22:10Z slederer $ | ||
# | ||
|
||
objectClass ( DASS.BAREOS.OC:2.1 NAME 'bareosClientHost' | ||
DESC 'a system that should be backed up by the bareos server' | ||
SUP top | ||
MAY ( bareosSchedule $ bareosFileSet $ bareosOptions $ | ||
bareosProfile $ bareosEnableJob ) | ||
AUXILIARY ) |
Oops, something went wrong.