Skip to content

Commit

Permalink
Merge pull request #142 from SUNET/pahol-baas2-exclude
Browse files Browse the repository at this point in the history
baas2 exclude
  • Loading branch information
SpaceFarmer authored Mar 20, 2024
2 parents a958a7c + b2732d9 commit 9a8d06d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/baas2.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
# @param monitor_backups If we should monitor scheduled backups
# @param version The version of the client to install
# @param backup_dirs Specific directories to backup, default is to backup everything
# @param exclude_list List of exclude statements
# @param install_tbmr If set to true it will install "Bare Machine Recovery for Tivoli TSM (TBMR)"
# @param tbmr_version The version of TBMR to be installed (it has to match the version in $tbmr_url)
# @param tbmr_url The download URL for the TBMR installer (it has to match the version in $tbmr_version)
Expand All @@ -34,6 +35,7 @@
Boolean $monitor_backups=true,
String $version='8.1.17.2',
Array[String] $backup_dirs = [],
Array[String] $exclude_list = [],
Boolean $install_tbmr=false,
String $tbmr_version='9.5.2.3206-1',
String $tbmr_url='https://s3.sto1.safedc.net/94f5b4f4aa674782b6bc4181943e67f1:tbmr/wab0snk8lrh6l8cjzgnaozm8siw7g7/tbmr_9.5.2.3206-1_amd64.deb',
Expand Down
6 changes: 6 additions & 0 deletions templates/baas2/dsm.sys.erb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ SERVERNAME SafeDC
* https://www.ibm.com/docs/en/tsmfsm/7.1.0?topic=SSSR2R_7.1.0/com.ibm.itsm.client.develop.doc/c_encryp_transp.htm
include.encrypt /.../*

<% if ! @exclude_list.empty? -%>
<% @exclude_list.each do |entry| -%>
exclude <%= entry %>
<% end -%>
<% end -%>

<% if ! @backup_dirs_transformed.empty? -%>
* Configure a virtualmountpoint and domain for each backup dir. Trying to use
* include/exclude statements for this results in backing up all directory
Expand Down

0 comments on commit 9a8d06d

Please sign in to comment.