2a9fc8db79
Implement a post script for the standalone to generate a basic clouds.yaml for use with various tools. This one does not reuse the undercloud post because the undercloud script performs a bunch of undercloud specific functions. Change-Id: I0496f4dd2026ab6c705683126c8f50302a0861b9
27 lines
519 B
Bash
Executable File
27 lines
519 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
ln -sf /etc/puppet/hiera.yaml /etc/hiera.yaml
|
|
|
|
HOMEDIR="$homedir"
|
|
|
|
# write out clouds.yaml
|
|
|
|
mkdir -p $HOMEDIR/.config/openstack
|
|
touch $HOMEDIR/.config/openstack/clouds.yaml
|
|
chown 600 $HOMEDIR/.config/openstack/clouds.yaml
|
|
cat <<EOF >$HOMEDIR/.config/openstack/clouds.yaml
|
|
clouds:
|
|
$cloud_name:
|
|
auth:
|
|
auth_url: $auth_url
|
|
project_name: admin
|
|
username: admin
|
|
password: $admin_password
|
|
region_name: $region_name
|
|
identity_api_version: 3
|
|
cloud: standalone
|
|
EOF
|
|
|
|
|