Ask Your Question

Can I modify keystone.conf as part of

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 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

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

Nick H gravatar image

I read through and noticed that it would check for a script called 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.

# 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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 29 times

Last updated: Sep 15 '16