Puppet Class: cinder::db::sync

Defined in:
manifests/db/sync.pp

Overview

Class to execute cinder dbsync

Parameters

extra_params

(optional) String of extra command line parameters to append to the cinder-manage db sync command. These will be inserted in the command line between ‘cinder-manage’ and ‘db sync’. Defaults to undef

Parameters:

  • extra_params (Any) (defaults to: undef)


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'manifests/db/sync.pp', line 12

class cinder::db::sync(
  $extra_params = undef,
) {

  include ::cinder::deps
  include ::cinder::params

  exec { 'cinder-manage db_sync':
    command     => "cinder-manage ${extra_params} db sync",
    path        => '/usr/bin',
    user        => 'cinder',
    refreshonly => true,
    logoutput   => 'on_failure',
    subscribe   => [
      Anchor['cinder::install::end'],
      Anchor['cinder::config::end'],
      Anchor['cinder::dbsync::begin']
    ],
    notify      => Anchor['cinder::dbsync::end'],
  }
}