This wraps k5start and Puddle so I don't have to remember the exact
command and keytab location. I can now simply run "ceph-puddle", like
so:
$ ceph-puddle /etc/puddle/ceph/ceph-1.3-rhel-7.conf
The purpose of this commit is to make it easier/simpler to run Puddle
with Kerberos credentials.
mode: 0644
notify:
- restart faucet
+
+- name: add ceph wrapper script for puddle
+ template:
+ src: 'ceph-puddle'
+ dest: '/usr/local/bin/ceph-puddle'
+ owner: root
+ group: root
+ mode: 0755
--- /dev/null
+#!/bin/bash
+
+#
+# {{ ansible_managed }}
+#
+
+# In order to allow Puddle to communicate with Red Hat's Errata Tool, we need
+# active Kerberos credentials. This script wraps /usr/bin/puddle with the
+# k5start utility.
+
+set -e
+
+exec k5start -U -f {{ puddle.kerberos_keytab }} -- puddle "$@"