tripleo-heat-templates/extraconfig/post_deploy/standalone_post.sh
Emilien Macchi 2a9fc8db79 standalone run a post config to generate a clouds.yaml
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
2018-07-09 21:06:48 +00:00

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