Advertisement
Guest User

Untitled

a guest
May 31st, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 1.27 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..063052e 100644
  3. --- a/deployment/puppet/nailgun/manifests/tuningbox/syncdb.pp
  4. +++ b/deployment/puppet/nailgun/manifests/tuningbox/syncdb.pp
  5. @@ -3,8 +3,10 @@ class nailgun::tuningbox::syncdb (
  6.    ) inherits nailgun::tuningbox::params {
  7.  
  8.    exec {"${syncdb_script}":
  9. -    tries     => 5,
  10. -    try_sleep => 10,
  11. -    path      => '/usr/bin:/bin:/usr/sbin:/sbin',
  12. +    tries       => 5,
  13. +    try_sleep   => 10,
  14. +    refreshonly => true,
  15. +    path        => '/usr/bin:/bin:/usr/sbin:/sbin',
  16. +    subscribe   => File["${config_file_path}"],
  17.    }
  18.  }
  19. diff --git a/deployment/puppet/nailgun/manifests/tuningbox/systemd.pp b/deployment/puppet/nailgun/manifests/tuningbox/systemd.pp
  20. index e99cd1c..2b22962 100644
  21. --- a/deployment/puppet/nailgun/manifests/tuningbox/systemd.pp
  22. +++ b/deployment/puppet/nailgun/manifests/tuningbox/systemd.pp
  23. @@ -22,7 +22,7 @@ class nailgun::tuningbox::systemd (
  24.    service { "${app_name}":
  25.      ensure    => running,
  26.      enable    => true,
  27. -    subscribe => Exec['systemd_reload'],
  28. +    subscribe => [ Exec['systemd_reload'], Exec["${syncdb_script}"] ]
  29.      require   => File["${systemd_script_path}"],
  30.    }
  31.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement