Merge pull request #329 from ceph/fix-mon-gen-key

Fix monitor key generation
pull/330/head
Leseb 2015-07-17 15:29:51 +02:00
commit 9825a448c8
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
---
- name: generate monitor initial keyring
local_action: >
shell python -c "import os ; import struct ; import time; import base64 ; key = os.urandom(16) ; header = struct.pack('<hiih',1,int(time.time()),0,len(key)) ; print base64.b64encode(header + key)' > fetch/monitor_keyring.conf"
shell python -c "import os ; import struct ; import time; import base64 ; key = os.urandom(16) ; header = struct.pack('<hiih',1,int(time.time()),0,len(key)) ; print base64.b64encode(header + key)" | tee fetch/monitor_keyring.conf
creates=fetch/monitor_keyring.conf
register: monitor_keyring
sudo: false