Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
23e289ec
Commit
23e289ec
authored
9 years ago
by
Jenkins
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Keystone container should use the openstackclient"
parents
be230d47
7f172034
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/keystone/tasks/bootstrap.yml
+2
-2
2 additions, 2 deletions
ansible/roles/keystone/tasks/bootstrap.yml
docker/keystone/start.sh
+7
-10
7 additions, 10 deletions
docker/keystone/start.sh
with
9 additions
and
12 deletions
ansible/roles/keystone/tasks/bootstrap.yml
+
2
−
2
View file @
23e289ec
...
...
@@ -52,8 +52,8 @@
PUBLIC_URL
:
"
http://{{
kolla_external_address
}}:{{
keystone_public_port
}}/v2.0"
INTERNAL_URL
:
"
http://{{
kolla_internal_address
}}:{{
keystone_public_port
}}/v2.0"
ADMIN_URL
:
"
http://{{
kolla_internal_address
}}:{{
keystone_admin_port
}}/v2.0"
OS_
SERVICE_
TOKEN
:
"
{{
keystone_admin_token
}}"
OS_
SERVICE_ENDPOINT
:
"
http://{{
hostvars[inventory_hostname]['ansible_'
+
api_interface]['ipv4']['address']
}}:{{
keystone_admin_port
}}/v2.0"
OS_TOKEN
:
"
{{
keystone_admin_token
}}"
OS_
URL
:
"
http://{{
hostvars[inventory_hostname]['ansible_'
+
api_interface]['ipv4']['address']
}}:{{
keystone_admin_port
}}/v2.0"
run_once
:
True
when
:
database.stdout.find('localhost | SUCCESS => ') != -1 and (database.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed
...
...
This diff is collapsed.
Click to expand it.
docker/keystone/start.sh
+
7
−
10
View file @
23e289ec
...
...
@@ -29,19 +29,16 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
$CMD
sleep
5
keystone service-create
--name
keystone
--type
identity
\
--description
"OpenStack Identity"
keystone endpoint-create
--region
"
${
REGION_NAME
}
"
\
openstack service create
--name
keystone
--description
"OpenStack Identity"
identity
openstack endpoint create
--region
"
${
REGION_NAME
}
"
\
--publicurl
"
${
PUBLIC_URL
}
"
\
--internalurl
"
${
INTERNAL_URL
}
"
\
--adminurl
"
${
ADMIN_URL
}
"
\
--service-id
$(
keystone service-list |
awk
'/ identity / {print $2}'
)
keystone tenant-create
--description
"Admin Project"
--name
admin
keystone user-create
--pass
"
${
KEYSTONE_ADMIN_PASSWORD
}
"
--name
admin
keystone role-create
--name
admin
keystone user-role-add
--user
admin
--tenant
admin
--role
admin
identity
openstack project create
--description
"Admin Project"
admin
openstack user create
--password
"
${
KEYSTONE_ADMIN_PASSWORD
}
"
admin
openstack role create admin
openstack role add
--project
admin
--user
admin admin
exit
0
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment