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