From fe628b9fb2e9511e78a7dc6883fa1d4766413a54 Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Tue, 17 Apr 2018 17:01:46 +0000 Subject: [PATCH] Remove the sample configuration file for keystone This commit just makes sure that the configuration file for keystone exists on the system. We use iniset to actually populate the values we want before we run keystone anyway. This results in a cleaner configuration file that isn't bloated with comments and help text. Change-Id: I7a1f879e9e242a11e2c4663ec116e33da28db7f5 --- lib/keystone | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/keystone b/lib/keystone index 714f089cca..696e351ab0 100644 --- a/lib/keystone +++ b/lib/keystone @@ -202,7 +202,7 @@ function configure_keystone { sudo install -d -o $STACK_USER $KEYSTONE_CONF_DIR if [[ "$KEYSTONE_CONF_DIR" != "$KEYSTONE_DIR/etc" ]]; then - install -m 600 $KEYSTONE_DIR/etc/keystone.conf.sample $KEYSTONE_CONF + install -m 600 /dev/null $KEYSTONE_CONF if [[ -f "$KEYSTONE_DIR/etc/keystone-paste.ini" ]]; then cp -p "$KEYSTONE_DIR/etc/keystone-paste.ini" "$KEYSTONE_PASTE_INI" fi @@ -220,7 +220,7 @@ function configure_keystone { inidelete $KEYSTONE_PASTE_INI composite:admin \\/v2.0 fi - # Rewrite stock ``keystone.conf`` + # Populate ``keystone.conf`` if is_service_enabled ldap; then iniset $KEYSTONE_CONF identity domain_config_dir "$KEYSTONE_CONF_DIR/domains" iniset $KEYSTONE_CONF identity domain_specific_drivers_enabled "True"