]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/keystone/manifests/db/sync.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / keystone / manifests / db / sync.pp
diff --git a/3rdparty/modules/keystone/manifests/db/sync.pp b/3rdparty/modules/keystone/manifests/db/sync.pp
new file mode 100644 (file)
index 0000000..5984a03
--- /dev/null
@@ -0,0 +1,14 @@
+#
+# 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' |>
+}