Skip to content

Instantly share code, notes, and snippets.

@madAndroid
Created November 20, 2013 09:08
Show Gist options
  • Save madAndroid/7560070 to your computer and use it in GitHub Desktop.
Save madAndroid/7560070 to your computer and use it in GitHub Desktop.
~/r/s/P/puppet-with-cukes git:master ❯❯❯ git df ✭ ✱ ◼
diff --git a/puppet/scalefactory.com/modules/sf_bacula/manifests/director.pp b/puppet/scalefactory.com/modules/sf_bacula/manifests/director.pp
index 695e2fa..10dcedd 100644
--- a/puppet/scalefactory.com/modules/sf_bacula/manifests/director.pp
+++ b/puppet/scalefactory.com/modules/sf_bacula/manifests/director.pp
@@ -516,9 +516,11 @@ class sf_bacula::director (
if $catalog_mysql_hostname != 'localhost' {
$director_restore_hostname = $catalog_mysql_hostname
+ $director_requires = undef
}
else {
$director_restore_hostname = $hostname
+ $director_requires = Class [ "sf_mysql::server::service" ]
}
include sf_bacula::user
@@ -554,9 +556,13 @@ class sf_bacula::director (
enable_builtin_volmgt => $enable_builtin_volmgt,
volmgr_expire_method => $volmgr_expire_method,
volmgr_offsite_method => $volmgr_offsite_method,
+
+ require => $director_requires,
}
- class { "sf_bacula::director::service": }
+ class { "sf_bacula::director::service":
+ require => $director_requires,
+ }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment