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
2b402ace
Commit
2b402ace
authored
8 years ago
by
Jeffrey Zhang
Browse files
Options
Downloads
Patches
Plain Diff
Fix the WARNING in copy keystone domain task
Change-Id: I2bf2e8a6ba17c813bb2b9cdf05d3062f29d9fdf6 Closes-Bug: #1653168
parent
fee7ec05
No related branches found
Branches containing commit
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/config.yml
+20
-15
20 additions, 15 deletions
ansible/roles/keystone/tasks/config.yml
ansible/roles/keystone/templates/keystone.conf.j2
+1
-1
1 addition, 1 deletion
ansible/roles/keystone/templates/keystone.conf.j2
with
21 additions
and
16 deletions
ansible/roles/keystone/tasks/config.yml
+
20
−
15
View file @
2b402ace
...
...
@@ -5,7 +5,7 @@
-
name
:
Check if Keystone Domain specific settings enabled
local_action
:
stat path="{{ node_custom_config }}/keystone/domains"
register
:
keystone_domain_
cfg
register
:
keystone_domain_
directory
-
name
:
Ensuring config directories exist
file
:
...
...
@@ -17,17 +17,6 @@
-
item.value.enabled
with_dict
:
"
{{
keystone_services
}}"
-
name
:
Creating Keystone Domain directory
vars
:
keystone
:
"
{{
keystone_services.keystone
}}"
file
:
dest
:
"
{{
node_config_directory
}}/keystone/domains/"
state
:
"
directory"
when
:
-
inventory_hostname in groups[keystone.group]
-
keystone.enabled | bool
-
keystone_domain_cfg.stat.exists
-
name
:
Copying over config.json files for services
template
:
src
:
"
{{
item.key
}}.json.j2"
...
...
@@ -65,18 +54,34 @@
-
Restart keystone container
-
Restart keystone-fernet container
-
name
:
Creating Keystone Domain directory
vars
:
keystone
:
"
{{
keystone_services.keystone
}}"
file
:
dest
:
"
{{
node_config_directory
}}/keystone/domains/"
state
:
"
directory"
when
:
-
inventory_hostname in groups[keystone.group]
-
keystone.enabled | bool
-
keystone_domain_directory.stat.exists
-
name
:
Get file list in custom domains folder
local_action
:
find path="{{ node_custom_config }}/keystone/domains" recurse=no file_type=file
register
:
keystone_domains
when
:
keystone_domain_directory.stat.exists
-
name
:
Copying Keystone Domain specific settings
vars
:
keystone
:
"
{{
keystone_services.keystone
}}"
copy
:
src
:
"
{{
item
}}"
src
:
"
{{
item
.path
}}"
dest
:
"
{{
node_config_directory
}}/keystone/domains/"
register
:
keystone_domains
when
:
-
inventory_hostname in groups[keystone.group]
-
keystone.enabled | bool
with_fileglob
:
-
"
{{
node_custom_config
}}/
keystone
/
domains
/*
"
-
keystone_domain_directory.stat.exists
with_items
:
"
{{
keystone
_
domains
.files|default([])
}}
"
notify
:
-
Restart keystone container
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/keystone/templates/keystone.conf.j2
+
1
−
1
View file @
2b402ace
...
...
@@ -14,7 +14,7 @@ secure_proxy_ssl_header = HTTP_X_FORWARDED_PROTO
connection = mysql+pymysql://{{ keystone_database_user }}:{{ keystone_database_password }}@{{ keystone_database_address }}/{{ keystone_database_name }}
max_retries = -1
{% if keystone_domain_
cfg
.stat.exists %}
{% if keystone_domain_
directory
.stat.exists %}
[identity]
domain_specific_drivers_enabled = true
domain_config_dir = /etc/keystone/domains
...
...
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