Created
October 1, 2010 13:42
-
-
Save masterzen/606229 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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