Bundle agent bur
This is an example of a role used in the system. It is the role of a backup and recovery server that serves other hosts in the domain.
###############################################################################
#
# Webhuis agent bur for role backup_recovery serving to the network
#
# Copyright (C) 2008 Martin Simons, Webhuis. Renkum The Netherlands
# This source code is licensed under the GNU General Public License, Version 2.
# See http://webhuis.nl/GPL-license for more details.
#
###############################################################################
bundle agent bur {
vars:
"exports_network" string => "10.22.23.0/24";
"nfs_exports[/var/nfs4exports/backups][exports_network]" string => "${exports_network}";
"nfs_exports[/var/nfs4exports/backups][exports_permissions]" string => "${g.exports_rw}";
classes:
"exports_exists" expression => fileexists(${g.etc_exports});
methods:
"any" usebundle => mnt_bur;
!exports_exists::
"any" usebundle => pkg_nfs_server;
any::
"any" usebundle => exports_nfs_array("bur.nfs_exports");
Return to: Dynamic_Cfengine3