I'm having a hard time getting the os_user (and I would imagine other
modules) to work just using a service token, ie. there are no users in
keystone yet, so need to create them using the service token.
How would I do that with the os_* modules? I can get the openstack
python client to work with just OS_TOKEN and OS_URL environment
variables also using V3 of the identity API, but can't get the os_user
module to work with the same, setting environment variables in the
playbook.
I have the same problem. The docs state that auth configuration could be read from environment via OS_* variables but it seems that doesn’t use the “OS_TOKEN” environment variable. Right now I am running a bunch of commands like this:
name: Create keystone domains with cli client
command: openstack domain create --description “{{ item.description }}” {{ item.name }}
environment: “{{ os_keystone_auth_env }}”
register: command_result
failed_when: “‘two projects acting as domains with the same name’ not in command_result.stderr and command_result.stderr != ‘’”
with_items: “{{ keystone_domains }}”