Ask Your Question
0

Can I modify keystone.conf as part of stack.sh?

asked 2016-09-15 06:11:50 -0500

Nick H gravatar image

In my Devstack instance I want to set the value of expiration in /etc/keystone/keystone.conf for testing a token refresh issue, but to do so I have to stack.sh everything up first to get it installed, edit the file, then restart Keystone (or more likely, re-stack everything). Is it possible to make a change to local.conf or any other part of devstack to get it to modify conf files (or run an arbitrary command) after it's installed everything but before it starts Keystone?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-09-15 06:53:27 -0500

Nick H gravatar image

I read through stack.sh and noticed that it would check for a script called local.sh and run that. So I've put a sed command in to make the necessary changes to keystone.conf and that seems to have done it.

#!/bin/bash
# You can dance if you want to
# You can leave your friends behind
echo "Setting Keystone properties..."
sudo sed -i -e "s/^#*expiration *=.*/expiration = 2/" /etc/keystone/keystone.conf
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-09-15 06:11:50 -0500

Seen: 28 times

Last updated: Sep 15 '16