Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-ceph-mon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Logan V
ansible-ceph-mon
Commits
cf2d54d8
Commit
cf2d54d8
authored
9 years ago
by
Eric Cook
Browse files
Options
Downloads
Patches
Plain Diff
Add ceph_stable_releases array to ceph-common/defaults/main.yml
rework the various `when' tests to use that array.
parent
3a6c5ec4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/deploy_monitors.yml
+6
-36
6 additions, 36 deletions
tasks/deploy_monitors.yml
tasks/start_monitor.yml
+6
-23
6 additions, 23 deletions
tasks/start_monitor.yml
with
12 additions
and
59 deletions
tasks/deploy_monitors.yml
+
6
−
36
View file @
cf2d54d8
...
...
@@ -25,12 +25,7 @@
mode
:
0600
owner
:
ceph
group
:
ceph
when
:
ceph_stable_release != 'dumpling' and
ceph_stable_release != 'emperor' and
ceph_stable_release != 'firefly' and
ceph_stable_release != 'giant' and
ceph_stable_release != 'hammer'
when
:
ceph_stable_release not in ceph_stable_releases
-
name
:
create monitor directory (for or after infernalis release)
file
:
...
...
@@ -39,12 +34,7 @@
owner
:
ceph
group
:
ceph
mode
:
0755
when
:
ceph_stable_release != 'dumpling' and
ceph_stable_release != 'emperor' and
ceph_stable_release != 'firefly' and
ceph_stable_release != 'giant' and
ceph_stable_release != 'hammer'
when
:
ceph_stable_release not in ceph_stable_releases
-
name
:
set initial monitor key permissions (before infernalis release)
file
:
...
...
@@ -52,12 +42,7 @@
mode
:
0600
owner
:
root
group
:
root
when
:
ceph_stable_release == 'dumpling' or
ceph_stable_release == 'emperor' or
ceph_stable_release == 'firefly' or
ceph_stable_release == 'giant' or
ceph_stable_release == 'hammer'
when
:
ceph_stable_release in ceph_stable_releases
-
name
:
create monitor directory (before infernalis release)
file
:
...
...
@@ -66,31 +51,16 @@
owner
:
root
group
:
root
mode
:
0755
when
:
ceph_stable_release == 'dumpling' or
ceph_stable_release == 'emperor' or
ceph_stable_release == 'firefly' or
ceph_stable_release == 'giant' or
ceph_stable_release == 'hammer'
when
:
ceph_stable_release in ceph_stable_releases
-
name
:
ceph monitor mkfs (for or after infernalis release)
command
:
ceph-mon --setuser ceph --setgroup ceph --mkfs -i {{ ansible_hostname }} --fsid {{ fsid }} --keyring /var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }}
args
:
creates
:
/var/lib/ceph/mon/ceph-{{ ansible_hostname }}/keyring
when
:
ceph_stable_release != 'dumpling' and
ceph_stable_release != 'emperor' and
ceph_stable_release != 'firefly' and
ceph_stable_release != 'giant' and
ceph_stable_release != 'hammer'
when
:
ceph_stable_release not in ceph_stable_releases
-
name
:
ceph monitor mkfs (before infernalis release)
command
:
ceph-mon --mkfs -i {{ ansible_hostname }} --fsid {{ fsid }} --keyring /var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }}
args
:
creates
:
/var/lib/ceph/mon/ceph-{{ ansible_hostname }}/keyring
when
:
ceph_stable_release == 'dumpling' or
ceph_stable_release == 'emperor' or
ceph_stable_release == 'firefly' or
ceph_stable_release == 'giant' or
ceph_stable_release == 'hammer'
when
:
ceph_stable_release in ceph_stable_releases
This diff is collapsed.
Click to expand it.
tasks/start_monitor.yml
+
6
−
23
View file @
cf2d54d8
...
...
@@ -9,13 +9,8 @@
with_items
:
-
done
-
upstart
when
:
ansible_distribution == "Ubuntu" and
(ceph_stable_release != 'dumpling' and
ceph_stable_release != 'emperor' and
ceph_stable_release != 'firefly' and
ceph_stable_release != 'giant' and
ceph_stable_release != 'hammer')
when
:
ansible_distribution == "Ubuntu" and ceph_stable_release not in ceph_stable_releases
changed_when
:
false
...
...
@@ -31,11 +26,7 @@
-
upstart
when
:
ansible_distribution == "Ubuntu" and
(ceph_stable_release == 'dumpling' or
ceph_stable_release == 'emperor' or
ceph_stable_release == 'firefly' or
ceph_stable_release == 'giant' or
ceph_stable_release == 'hammer')
ceph_stable_release in ceph_stable_releases
changed_when
:
false
-
name
:
start and add that the monitor service to the init sequence (ubuntu)
...
...
@@ -53,11 +44,7 @@
changed_when
:
false
when
:
ansible_distribution != "Ubuntu" and
(ceph_stable_release == 'dumpling' or
ceph_stable_release == 'emperor' or
ceph_stable_release == 'firefly' or
ceph_stable_release == 'giant' or
ceph_stable_release == 'hammer')
ceph_stable_release in ceph_stable_releases
-
name
:
start and add that the monitor service to the init sequence (for or after infernalis)
service
:
...
...
@@ -66,12 +53,8 @@
enabled
:
yes
changed_when
:
false
when
:
ansible_distribution != "Ubuntu" and not
(ceph_stable_release == 'dumpling' or
ceph_stable_release == 'emperor' or
ceph_stable_release == 'firefly' or
ceph_stable_release == 'giant' or
ceph_stable_release == 'hammer')
ansible_distribution != "Ubuntu" and
ceph_stable_release not in ceph_stable_releases
-
name
:
collect admin and bootstrap keys
command
:
ceph-create-keys --id {{ ansible_hostname }}
...
...
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