Puppet Class: cubbystack::cinder::db_sync

Defined in:
manifests/cinder/db_sync.pp

Overview

Class: cubbystack::cinder::db_sync

Schedules and performs the ‘cinder-manage db sync` command.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'manifests/cinder/db_sync.pp', line 5

class cubbystack::cinder::db_sync {

  # Order the db sync correctly
  Package<| tag == 'cinder' |>           ~> Exec['cinder-manage db sync']
  Cubbystack_config<| tag == 'cinder' |> -> Exec['cinder-manage db sync']
  Exec['cinder-manage db sync']          ~> Service<| tag == 'cinder' |>

  # Configure the cinder database
  exec { 'cinder-manage db sync':
    path        => '/usr/bin',
    refreshonly => true,
    logoutput   => 'on_failure',
  }

}