Fuel plugin which enables OpenStack Manila with MOS controllers deployment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gen_password.sh 613B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. CLUSTER_ID=$1
  3. PLUGIN_YAML=/etc/fuel/cluster/$CLUSTER_ID/fuel-plugin-manila.yaml
  4. if [ ! -f $PLUGIN_YAML ]; then
  5. gen_pass() {
  6. openssl rand -base64 32|tr -d '='
  7. }
  8. user_pass=$(gen_pass)
  9. maniladb_pass=$(gen_pass)
  10. echo "
  11. ---
  12. manila:
  13. user_password: $user_pass
  14. db_password: $maniladb_pass
  15. service_vm_image:
  16. container_format: bare
  17. disk_format: qcow2
  18. glance_properties: \"\"
  19. img_name: manila-service-image
  20. img_path: /tmp/manila-service-image.qcow2
  21. min_ram: \"256\"
  22. os_name: ubuntu
  23. public: \"true\"
  24. " > $PLUGIN_YAML
  25. fi