Advertisement
Guest User

Untitled

a guest
May 31st, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 1.00 KB | None | 0 0
  1. diff --git a/deployment/puppet/nailgun/manifests/tuningbox/syncdb.pp b/deployment/puppet/nailgun/manifests/tuningbox/syncdb.pp
  2. index 4cec01d..18193fe 100644
  3. --- a/deployment/puppet/nailgun/manifests/tuningbox/syncdb.pp
  4. +++ b/deployment/puppet/nailgun/manifests/tuningbox/syncdb.pp
  5. @@ -1,10 +1,15 @@
  6.  class nailgun::tuningbox::syncdb (
  7. -  $syncdb_script = $::nailgun::tuningbox::params::syncdb_script,
  8. +  $config_file_path = $::nailgun::tuningbox::params::config_file_path,
  9. +  $app_name         = $::nailgun::tuningbox::params::app_name,
  10. +  $syncdb_script    = $::nailgun::tuningbox::params::syncdb_script,
  11.    ) inherits nailgun::tuningbox::params {
  12.  
  13.    exec {"${syncdb_script}":
  14. -    tries     => 5,
  15. -    try_sleep => 10,
  16. -    path      => '/usr/bin:/bin:/usr/sbin:/sbin',
  17. +    tries       => 5,
  18. +    try_sleep   => 10,
  19. +    refreshonly => true,
  20. +    path        => '/usr/bin:/bin:/usr/sbin:/sbin',
  21. +    subscribe   => File["${config_file_path}"],
  22. +    notify      => Service["${app_name}"],
  23.    }
  24.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement