Skip to content

Instantly share code, notes, and snippets.

@masterzen
Created October 1, 2010 13:42
Show Gist options
  • Select an option

  • Save masterzen/606229 to your computer and use it in GitHub Desktop.

Select an option

Save masterzen/606229 to your computer and use it in GitHub Desktop.
class bacula::fd {
$password = generate("bacula-pass");
# client fd config
file {
"/etc/bacula/bacula-fd.conf":
content => template("bacula/fd.conf")
}
# bacula dir config
@@file {
"/etc/bacula/bacula-${fqdn}.conf":
content => template("bacula/master.conf"),
tag => "bacula-master"
}
}
class bacula::director {
File <<| tag == "bacula-master" |>>
}
### then in your node definition
node master {
include bacula::director
}
### and all other nodes
node othernode {
include bacula::fd
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment