File: sync.pp

package info (click to toggle)
puppet-module-congress 16.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 508 kB
  • sloc: ruby: 1,265; python: 36; sh: 15; makefile: 11
file content (33 lines) | stat: -rw-r--r-- 763 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
#
# Class to execute congress-manage db_sync
#
# == Parameters
#
# [*user*]
#   (Optional) User to run dbsync command.
#   Defaults to 'congress'
#
class congress::db::sync(
  $user = 'congress',
) {

  include congress::deps

  exec { 'congress-db-sync':
    command     => 'congress-db-manage --config-file /etc/congress/congress.conf upgrade head',
    path        => ['/bin', '/usr/bin'],
    user        => $user,
    refreshonly => true,
    try_sleep   => 5,
    tries       => 10,
    logoutput   => 'on_failure',
    subscribe   => [
      Anchor['congress::install::end'],
      Anchor['congress::config::end'],
      Anchor['congress::dbsync::begin']
    ],
    notify      => Anchor['congress::dbsync::end'],
    tag         => 'openstack-db',
  }

}