Merge pull request #644 from andymcc/recon_fix

Fix location for swift-recon-cron
This commit is contained in:
Andy McCrae 2014-11-25 14:50:42 +00:00
commit cb71208d7b

View File

@ -13,10 +13,15 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# We need the location of swift-recon-cron
- name: "Get location of swift-recon-cron"
shell: which swift-recon-cron
register: recon_cron_path
- name: "Setup swift-recon-cron cron job" - name: "Setup swift-recon-cron cron job"
cron: > cron: >
name="swift-recon-cron run" name="swift-recon-cron run"
minute=*/5 minute=*/5
user="swift" user="swift"
job="/usr/bin/swift-recon-cron /etc/swift/object-server/object-server.conf" job="{{ recon_cron_path.stdout }} /etc/swift/object-server/object-server.conf"
cron_file="swift_recon_cron" cron_file="swift_recon_cron"