Michael Sambol
4531b67a4f
Use stat module instead of shell
2015-08-05 23:06:09 -05:00
Sébastien Han
f671e91e61
Fix the sudoer template
...
+ cleanup the docker.yml from OSD.
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-08-03 23:53:08 +02:00
Sébastien Han
7ed67f37d8
Remove rgw installation from the ceph-rgw role
...
The installation of rgw is now handled by the ceph-common role.
Fixes : #307
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-08-03 22:17:43 +02:00
Michael Sambol
32c149d4f5
Verify only one osd scenario
2015-07-31 22:02:05 -05:00
Michael Sambol
e6f22b948c
Failed_when instead of ignore_errors
...
Changed ignore_errors to failed_when so the output doesn't show in
red.
2015-07-29 13:35:46 -05:00
Matt Thompson
b12d3374e4
Define dependencies in ceph-common's meta/main.yml
...
I'm currently getting a KeyError due to missing 'dependencies' on this
role when I attempt to install it with ansible-galaxy (ansible 1.9.2).
This commit simply defines an empty dependencies list so that
ansible-galaxy executes correctly.
2015-07-28 10:48:07 +01:00
leseb
2cb0fab421
Add contribution note
...
Signed-off-by: leseb <seb@redhat.com>
2015-07-25 11:10:39 +02:00
Leseb
888ea92854
Merge pull request #340 from ceph/add-readmes
...
Add READMEs for each roles
2015-07-25 10:55:04 +02:00
leseb
d84159bdb3
Add READMEs for each roles
...
Galaxy here we are!
Signed-off-by: leseb <seb@redhat.com>
2015-07-25 10:51:53 +02:00
Andrew F. Ly
76d2cd381d
Create a local fetch directory if it doesn't exist
2015-07-24 22:10:39 -05:00
leseb
08add29d92
Modify the repo to host reoles on the galaxy
...
Signed-off-by: leseb <seb@redhat.com>
2015-07-24 18:14:59 +02:00
leseb
f1e6b0216d
Re-arrange roles
...
Trying to add more clarity in the role's task structure.
Signed-off-by: leseb <seb@redhat.com>
2015-07-24 14:50:32 +02:00
leseb
7bb28afdd8
First steps to Ansible Galaxy
...
Signed-off-by: leseb <seb@redhat.com>
2015-07-23 11:45:19 +02:00
leseb
1112cf5431
Add primary affinity option
...
Signed-off-by: leseb <seb@redhat.com>
2015-07-20 14:48:58 +02:00
leseb
5fc4d846a6
Do not track fetch directory
...
Signed-off-by: leseb <seb@redhat.com>
2015-07-17 18:14:12 +02:00
leseb
c27450ff40
Generate initial monitor key dynamically
...
Cool stuff :). We don't need to specify an initial monitor key anymore.
A key will automatically be generated.
The default key can always be overriden with the `monitor_secret`
variable.
Signed-off-by: leseb <seb@redhat.com>
2015-07-17 11:58:50 +02:00
leseb
b6d5c6634f
Add support for image format
...
By default, we want to use format 2.
This closely works with rbd features as well.
Signed-off-by: leseb <seb@redhat.com>
2015-07-08 14:21:16 +02:00
leseb
4b63bb92ba
Fix variable
...
Should have looked at Travis this time...
Signed-off-by: leseb <seb@redhat.com>
2015-07-08 11:17:27 +02:00
leseb
9831da7510
Re-use public network for private network
...
We don't always have a dedicated cluster network so we can by default
re-use the public network value.
This is just laziness :).
Signed-off-by: leseb <seb@redhat.com>
2015-07-07 18:18:47 +02:00
leseb
afe10d4e53
Disable monitors complain about low pgs per osd
...
Also add a bunch of option that weren't activated before...
Signed-off-by: leseb <seb@redhat.com>
2015-07-07 17:55:05 +02:00
leseb
d432af18fe
Do not use latest package
...
While re-running the playbook we do not want to check for new packages.
We shouldn't perform upgrades, we leave this to the operators.
Signed-off-by: leseb <seb@redhat.com>
2015-07-07 10:39:05 +02:00
leseb
52ddb461b6
Ignore errors
...
If we don't ignore errors here, the node will get skipped for the rest
of the playbook...
Signed-off-by: leseb <seb@redhat.com>
2015-07-06 18:22:01 +02:00
leseb
ed3a7136da
Fix a terrible mistake in the ceph.conf template
...
Feel so bad about this one...
Now it's fixed, the rgw section will be activated once the rgws hosts
are part of the inventory.
Signed-off-by: leseb <seb@redhat.com>
2015-07-06 17:39:37 +02:00
leseb
070b790af0
Speed up repository check
...
Even if the subcription command is indempotent it takes around 15/16sec
to get it done. Where with the simple yum check we lower down this to
3sec.
Signed-off-by: leseb <seb@redhat.com>
2015-07-06 17:29:25 +02:00
leseb
6cda705c43
Do not change when adding the repo
...
Since the command is indempotent we don't need to check if the repo is
enabled as it will likely take twice the time.
Signed-off-by: leseb <seb@redhat.com>
2015-07-06 17:03:31 +02:00
leseb
b6f16164c6
Add more client options
...
Add `rbd_default_features` and `rbd_default_map_options`.
Signed-off-by: leseb <seb@redhat.com>
2015-07-06 13:58:08 +02:00
leseb
7fdc2b1d36
Use more variable check
...
Fail early if a variable is not defined.
Signed-off-by: leseb <seb@redhat.com>
2015-07-03 21:38:30 +02:00
Leseb
08fad35751
Merge pull request #313 from ceph/change-default-options
...
Change default options
2015-07-03 18:48:58 +02:00
leseb
b0891016a9
Fix the method used
...
We need to collect the iso from the ansible server.
Signed-off-by: leseb <seb@redhat.com>
2015-07-03 18:43:04 +02:00
leseb
50d1f73afe
Change default options
...
We want to force the user to only enable the options they need. Thus
they shouldn't have to enable one option and then disable another.
Signed-off-by: leseb <seb@redhat.com>
2015-07-03 18:38:30 +02:00
Leseb
17dd29a556
Merge pull request #312 from ceph/disable-cdn-option
...
Safer check
2015-07-03 16:57:51 +02:00
leseb
d331af4e16
Safer check
...
Without this, the subcription manager will run since the default value
for cdn is true...
Signed-off-by: leseb <seb@redhat.com>
2015-07-03 16:56:34 +02:00
Leseb
f4414208d2
Merge pull request #311 from ti-mo/python2-local-action
...
Use local_action to ensure Ansible executes under python2
2015-07-03 16:54:38 +02:00
leseb
99e401b7c9
Add more repo source for stable
...
Attempt to fix #305
Signed-off-by: leseb <seb@redhat.com>
2015-07-03 16:35:17 +02:00
Timo Beckers
d28bd99f89
Use local_action to ensure Ansible executes under python2
2015-07-03 16:25:17 +02:00
leseb
77b5650180
Add red hat storage cdn installation
...
Signed-off-by: leseb <seb@redhat.com>
2015-07-03 12:38:17 +02:00
Leseb
e3988ca099
Merge pull request #304 from ceph/cleanup-rgw
...
Cleanup daemon declaration
2015-07-02 15:32:44 +02:00
leseb
c670004de2
Cleanup daemon declaration
...
Now we don't need to activate the services through a variable. If the
role is activated in the inventory, actions will occur automatically.
Fixing the repo creation for red hat storage too.
Signed-off-by: leseb <seb@redhat.com>
2015-07-02 15:22:18 +02:00
leseb
25ac1af009
Tiny fix for a variable undeclared
...
Signed-off-by: leseb <seb@redhat.com>
2015-07-01 19:15:10 +02:00
leseb
11f72c62f9
Add red hat storage support
...
The new product version has jsut came out. ICE doesn't exist anymore and
Red Hat Storage is the name of the new product.
Signed-off-by: leseb <seb@redhat.com>
2015-07-01 18:36:26 +02:00
leseb
39ebb8f22e
Only apply os-tuning to OSD nodes
...
There is no need to apply these tuning flags to all the nodes.
Signed-off-by: leseb <seb@redhat.com>
2015-06-30 18:13:03 +02:00
leseb
89355e6b77
Improve handlers
...
Signed-off-by: leseb <seb@redhat.com>
2015-06-30 18:07:03 +02:00
leseb
c3bc5b3e44
Merge branch 'group_names' of https://github.com/bjne/ceph-ansible into bjne-group_names
...
Signed-off-by: leseb <seb@redhat.com>
Conflicts:
roles/ceph-common/handlers/main.yml
roles/ceph-mon/tasks/ceph_keys.yml
2015-06-26 15:10:50 +02:00
leseb
4a2c7ae0c1
Cosmetic
...
Add more visibility for the 'when' statement.
Signed-off-by: leseb <seb@redhat.com>
2015-06-26 14:48:05 +02:00
Sébastien Han
3fe1fcc410
Create client socket path
...
This will avoid some error messages from the client when running a
command with the CLI or other.
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-06-17 13:44:05 +02:00
Sébastien Han
57d6ddc56b
Use a bootstrap key for rgw
...
Following the best practice, we don't create a key from the monitor but
we really on the initial keys created by the mons to bootstrap each
daemon.
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-06-12 14:41:40 +02:00
Sébastien Han
b50e525004
Reduce scrubbing impact
...
Add more param to reduce the scrub overhead.
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-06-11 16:49:57 +02:00
Bjørnar Ness
5588ada332
make group names definable
2015-06-11 02:42:41 +02:00
Sébastien Han
e1f0e660e8
Add more flags to RBD clients
...
More options.
We also now configure the rbd clients directories for logs and socket.
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-06-09 17:20:15 +02:00
Bjørnar Ness
a5ed377e4e
Add rbd_concurrent_management_ops
2015-06-09 00:42:01 +02:00