From: Ken Dreyer Date: Tue, 5 May 2015 22:12:05 +0000 (-0600) Subject: puddle: add ceph-puddle wrapper script X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20%2Fhead;p=ceph-cm-ansible.git puddle: add ceph-puddle wrapper script 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. --- diff --git a/roles/puddle/tasks/configure.yml b/roles/puddle/tasks/configure.yml index 32869d44..d073fe18 100644 --- a/roles/puddle/tasks/configure.yml +++ b/roles/puddle/tasks/configure.yml @@ -48,3 +48,11 @@ 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 diff --git a/roles/puddle/templates/ceph-puddle b/roles/puddle/templates/ceph-puddle new file mode 100755 index 00000000..b23fa04d --- /dev/null +++ b/roles/puddle/templates/ceph-puddle @@ -0,0 +1,13 @@ +#!/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 "$@"