ac7d1503bd
In ./gen_password.sh line 5: function gen_pass { ^-- SC2113: 'function' keyword is non-standard. Use 'foo()' instead of 'function foo'. In ./deployment_scripts/puppet/modules/manila_auxiliary/files/meta.sh line 5: if [[ -z $(manila type-list|grep default_share_type) ]]; then ^-- SC2143: Instead of [ -z $(foo | grep bar) ], use ! foo | grep -q bar . In ./deployment_scripts/puppet/modules/manila_auxiliary/files/meta.sh line 10: if [[ -z $(manila share-network-list| grep test_share_network) ]];then ^-- SC2143: Instead of [ -z $(foo | grep bar) ], use ! foo | grep -q bar . In ./deployment_scripts/puppet/modules/manila_auxiliary/files/meta.sh line 20: if [[ -z $(openstack flavor list|grep manila-service-flavor) ]];then ^-- SC2143: Instead of [ -z $(foo | grep bar) ], use ! foo | grep -q bar . Change-Id: I7f30e99d870ceb45ca4b43f94bd456ae5891878a
27 lines
530 B
Bash
27 lines
530 B
Bash
#!/bin/sh
|
|
|
|
CLUSTER_ID=$1
|
|
|
|
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
|