summarylogtreecommitdiffstats
path: root/pacemaker.install
diff options
context:
space:
mode:
Diffstat (limited to 'pacemaker.install')
-rw-r--r--pacemaker.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/pacemaker.install b/pacemaker.install
new file mode 100644
index 000000000000..ce537fb2fa18
--- /dev/null
+++ b/pacemaker.install
@@ -0,0 +1,14 @@
+post_install(){ :
+ usr/bin/getent group haclient >/dev/null || usr/bin/groupadd -r haclient -g 189
+ usr/bin/getent passwd hacluster >/dev/null || usr/bin/useradd -r -g 189 -u 189 -s /sbin/nologin -c "cluster user" -d / hacluster
+}
+
+post_upgrade(){ :
+}
+
+post_remove(){ :
+ usr/bin/getent group haclient >/dev/null && usr/bin/groupdel -f haclient
+ usr/bin/getent passwd hacluster >/dev/null && usr/bin/userdel hacluster
+ usr/bin/rm -fr var/lib/pacemaker
+}
+