summaryrefslogtreecommitdiffstats
path: root/manifests/pacemaker/resource_restart_flag.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/pacemaker/resource_restart_flag.pp')
-rw-r--r--manifests/pacemaker/resource_restart_flag.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/pacemaker/resource_restart_flag.pp b/manifests/pacemaker/resource_restart_flag.pp
index aded802..c201c9b 100644
--- a/manifests/pacemaker/resource_restart_flag.pp
+++ b/manifests/pacemaker/resource_restart_flag.pp
@@ -26,10 +26,21 @@
#
define tripleo::pacemaker::resource_restart_flag() {
+ ensure_resource('file', ['/var/lib/tripleo', '/var/lib/tripleo/pacemaker-restarts'],
+ {
+ 'ensure' => 'directory',
+ 'owner' => 'root',
+ 'mode' => '0755',
+ 'group' => 'root',
+ }
+ )
+
exec { "${title} resource restart flag":
command => "touch /var/lib/tripleo/pacemaker-restarts/${title}",
path => ['/bin','/usr/bin','/sbin','/usr/sbin'],
refreshonly => true,
}
+ File['/var/lib/tripleo/pacemaker-restarts'] ->
+ Exec["${title} resource restart flag"]
}