File: sync.pp

package info (click to toggle)
puppet-module-vmms 1.0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 172 kB
  • sloc: ruby: 89; makefile: 11; sh: 10; python: 5
file content (34 lines) | stat: -rw-r--r-- 775 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Class to execute "vmms-manage 'db_sync'"
#
# ==Parameters
#
# [*db_sync_timeout*]
#   (Optional) Timeout for the execution of the db_sync
#   Defaults to 300
#
class vmms::db::sync(
  $db_sync_timeout = 300,
) {

  include vmms::deps
  include vmms::params

  exec { 'vmms-db-sync':
    command     => $::vmms::params::db_sync_command,
    path        => '/usr/bin',
    user        => $::vmms::params::user,
    logoutput   => on_failure,
    refreshonly => true,
    try_sleep   => 5,
    tries       => 10,
    timeout     => $db_sync_timeout,
    subscribe   => [
      Anchor['vmms::install::end'],
      Anchor['vmms::config::end'],
      Anchor['vmms::dbsync::begin']
    ],
    notify      => Anchor['vmms::dbsync::end'],
    tag         => 'openstack-db',
  }
}