summaryrefslogtreecommitdiffstats
path: root/components/congress/install/puppet/manifests/db/sync.pp
blob: bb07f7e0001683db3d28d91afb311917b6669639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
# Class to execute "congress-manage db_sync
#
class congress::db::sync {
  exec { 'congress-manage db_sync':
    path        => '/usr/bin',
    user        => 'congress',
    refreshonly => true,
    subscribe   => [Package['congress'], congress_config['database/connection']],
    require     => User['congress'],
  }

  Exec['congress-manage db_sync'] ~> Service<| title == 'congress' |>
}