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
b62e1d95
Commit
b62e1d95
authored
7 years ago
by
Jenkins
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add the ceph keyring files related task condition"
parents
c272b8ec
12621ef8
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ansible/roles/nova/tasks/external-ceph.yml
+12
-3
12 additions, 3 deletions
ansible/roles/nova/tasks/external-ceph.yml
ansible/roles/nova/templates/nova.conf.j2
+1
-1
1 addition, 1 deletion
ansible/roles/nova/templates/nova.conf.j2
etc/kolla/globals.yml
+3
-0
3 additions, 0 deletions
etc/kolla/globals.yml
with
16 additions
and
4 deletions
ansible/roles/nova/tasks/external-ceph.yml
+
12
−
3
View file @
b62e1d95
...
...
@@ -12,12 +12,15 @@
local_action
:
stat path="{{ node_custom_config }}/nova/ceph.client.nova.keyring"
register
:
nova_cephx_keyring_file
failed_when
:
not nova_cephx_keyring_file.stat.exists
when
:
external_ceph_cephx_enabled | bool
-
name
:
Check cinder keyring file
local_action
:
stat path="{{ node_custom_config }}/nova/ceph.client.cinder.keyring"
register
:
cinder_cephx_keyring_file
failed_when
:
not cinder_cephx_keyring_file.stat.exists
when
:
cinder_backend_ceph | bool
when
:
-
cinder_backend_ceph | bool
-
external_ceph_cephx_enabled | bool
# NOTE: nova-compute and nova-libvirt only need ceph.client.nova.keyring.
-
name
:
Copy over ceph nova keyring file
...
...
@@ -27,7 +30,9 @@
with_items
:
-
nova-compute
-
nova-libvirt
when
:
inventory_hostname in groups['compute']
when
:
-
inventory_hostname in groups['compute']
-
external_ceph_cephx_enabled | bool
-
name
:
Copy over ceph.conf
copy
:
...
...
@@ -57,11 +62,14 @@
-
name
:
Extract nova key from file
local_action
:
shell cat "{{ nova_cephx_keyring_file.stat.path }}" | grep -E 'key\s*=' | awk '{ print $3 }'
register
:
nova_cephx_raw_key
when
:
external_ceph_cephx_enabled | bool
-
name
:
Extract cinder key from file
local_action
:
shell cat "{{ cinder_cephx_keyring_file.stat.path }}" | grep -E 'key\s*=' | awk '{ print $3 }'
register
:
cinder_cephx_raw_key
when
:
cinder_backend_ceph | bool
when
:
-
cinder_backend_ceph | bool
-
external_ceph_cephx_enabled | bool
-
name
:
Pushing secrets key for libvirt
copy
:
...
...
@@ -71,6 +79,7 @@
when
:
-
inventory_hostname in groups['compute']
-
item.enabled | bool
-
external_ceph_cephx_enabled | bool
with_items
:
-
uuid
:
"
{{
rbd_secret_uuid
}}"
content
:
"
{{
nova_cephx_raw_key.stdout
}}"
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/nova/templates/nova.conf.j2
+
1
−
1
View file @
b62e1d95
...
...
@@ -192,7 +192,7 @@ disk_cachemodes="network=writeback"
hw_disk_discard = {{ nova_hw_disk_discard }}
{% endif %}
{% endif %}
{% if nova_backend == "rbd" %}
{% if nova_backend == "rbd"
and external_ceph_cephx_enabled | bool
%}
rbd_secret_uuid = {{ rbd_secret_uuid }}
{% endif %}
...
...
This diff is collapsed.
Click to expand it.
etc/kolla/globals.yml
+
3
−
0
View file @
b62e1d95
...
...
@@ -207,6 +207,9 @@ kolla_internal_vip_address: "10.10.10.254"
# Set to no if using external Ceph without cephx.
#external_ceph_cephx_enabled: "yes"
# Set to no if using external Ceph without cephx.
#external_ceph_cephx_enabled: "yes"
# Ceph is not able to determine the size of a cache pool automatically,
# so the configuration on the absolute size is required here, otherwise the flush/evict will not work.
#ceph_target_max_bytes: ""
...
...
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