fuel-plugin-manila/gen_password.sh
Igor Gajsin 9c28d305c7 move generation of passwords and ssh keys to master node
Change-Id: If22761b75ed18fb95af6f43c54a7a1d50e8c109a
2016-08-17 15:12:37 +03:00

27 lines
537 B
Bash

#!/bin/sh
CLUSTER_ID=$1
function gen_pass {
openssl rand -base64 32|tr -d '='
}
user_pass=$(gen_pass)
maniladb_pass=$(gen_pass)
echo "
---
manila:
user_password: $user_pass
db_password: $maniladb_pass
service_vm_image:
container_format: bare
disk_format: qcow2
glance_properties: \"\"
img_name: manila-service-image
img_path: /tmp/manila-service-image.qcow2
min_ram: \"256\"
os_name: ubuntu
public: \"true\"
" > /etc/fuel/cluster/$CLUSTER_ID/fuel-plugin-manila.yaml