Files
puppet-aodh/manifests/db/sync.pp
Emilien Macchi ca85542cc2 puppet-aodh: Initial commit
This is the initial commit for puppet-aodh.
It has been automatically generated using cookiecutter[1] and msync[2]

[1] https://github.com/openstack/puppet-openstack-cookiecutter
[2] https://github.com/openstack/puppet-modulesync-configs

Change-Id: I17611e8608931cf69b8d9891620e901a8936e19e
2015-10-01 09:35:49 -04:00

15 lines
358 B
Puppet

#
# Class to execute "aodh-manage db_sync
#
class aodh::db::sync {
exec { 'aodh-manage db_sync':
path => '/usr/bin',
user => 'aodh',
refreshonly => true,
subscribe => [Package['aodh'], Aodh_config['database/connection']],
require => User['aodh'],
}
Exec['aodh-manage db_sync'] ~> Service<| title == 'aodh' |>
}