Commit Graph

1397 Commits (6b218a36d949735520991b1801e449519a58c8e8)
 

Author SHA1 Message Date
Alessandro Corbelli 2530083751 Fix ceph.conf if mons are unreachable 2014-03-12 15:34:54 +01:00
Alessandro Corbelli 0b6fb1cc2f Fix typo in group_vars/mons and remove "-C foo" 2014-03-12 15:32:09 +01:00
Alessandro Corbelli f97d26470f Use ansible_fqdn when copying from mons 2014-03-12 15:05:42 +01:00
Alessandro Corbelli 1bf18e6c80 Use ansible_fqnd also in mds role 2014-03-12 15:01:46 +01:00
Alessandro Corbelli 57831b4083 Use ansible_fqdn when copying keys to OSDs 2014-03-12 14:46:40 +01:00
Leseb 2b5f5d9877 Merge pull request #34 from leseb/fix-revert-autogeneration-keys
Revert 37882255d6 (auto key generation)
2014-03-12 13:33:57 +01:00
Sébastien Han 36d034ad20 Revert 37882255d6 (auto key generation)
We introduced a key generation mechanism that aimed to ease deployment.
In the end, it brought more complexity to the playbook and doesn't
scale.

Reverting the auto generation commit and instructing users to generate
their own keys.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-12 13:31:22 +01:00
Leseb bcb4861be3 Merge pull request #33 from leseb/feature-reduce-verbose
Ability to reduce verbosity
2014-03-12 10:49:10 +01:00
Sébastien Han 114d5c2689 Ability to reduce verbosity
If you don't want to see the output of all the skipped host, you can set
this value to 'False'.
This will dramatically reduce the output of the run.

Closes: #32

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-12 10:46:41 +01:00
Leseb 40f5f9458e Merge pull request #31 from leseb/fix-cosmetic
Cosmetic on apt module
2014-03-11 15:25:41 +01:00
Sébastien Han cc7f2ab2ab Cosmetic on apt module
Use 'present' instead of 'installed'.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-11 15:24:51 +01:00
Leseb 39df36962f Merge pull request #30 from leseb/fix-vagrant-osd-disk
Add more tiny disks
2014-03-11 14:23:21 +01:00
Sébastien Han cbbd046a0f Add more tiny disks
Instead of having 5GB disks now we have 6 disks of 1GB per virtual
machine, which is more than enough for testing.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-11 14:22:11 +01:00
Leseb 67342f0958 Merge pull request #29 from leseb/fix-ansible-setup2
Remove log section
2014-03-11 14:19:17 +01:00
Sébastien Han eed7f00492 Remove log section
While running Ansible for the first time, this won't affec the local
git.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-11 14:18:19 +01:00
Leseb 947c82b764 Merge pull request #28 from leseb/fix-ansible-setup
Improve vagrant testing and ansible setup
2014-03-11 14:16:13 +01:00
Sébastien Han d418eed16b Improve vagrant testing and ansible setup
It is easier now to git clone the repository and to run your first
environment without extra configuration.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-11 14:14:37 +01:00
Jimmy Tang 5130999435 Update provided facts key to return ansible_facts key 2014-03-11 11:12:41 +00:00
Jimmy Tang 203e05ef08 Update common module boilerplate snippet 2014-03-11 11:12:41 +00:00
Jimmy Tang 5a83a3052c Import of ceph_facts module
Example usage

    ansible -i hosts.foo -m ceph_facts

See source for additional examples
2014-03-11 11:12:41 +00:00
Leseb 87b3644b6c Merge pull request #12 from jcftang/wip-cleanup
Wip cleanup
2014-03-11 12:05:30 +01:00
Jimmy Tang bb644cab3e break out MDS roles into its own group, shouldn't be installing the MDS on every OSD host in this example 2014-03-11 10:29:25 +00:00
Jimmy Tang a82ba21c61 Ignore keyrings, they should never be commited to git 2014-03-11 10:29:25 +00:00
Jimmy Tang 7073066244 Ignore some temporary files 2014-03-11 10:29:25 +00:00
Leseb c53101b477 Merge pull request #26 from leseb/wip-separate-osd-scenarios
Wip separate osd scenarios
2014-03-11 10:37:32 +01:00
Sébastien Han fc38e21333 Separate OSD scenarios to multiple files
Currently everything lives in main.yml, the file has become difficult to
read at some point and can be a real mess since we keep adding new
scenarios.
I think we should separate the scenarios into dedicated files and just
do includes in the main.yml file.

Closes: #16

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-11 10:36:24 +01:00
Leseb 6060a7e56a Merge pull request #25 from leseb/fix-gen-keys
Autogenerate initial mon key
2014-03-11 00:55:54 +01:00
Sébastien Han 37882255d6 Autogenerate initial mon key
As mentionned in the issue 24 it's not really safe to store a default
fsid nor a monitor key. Thus the commit brings the auto-generation of
the initial monitor key. However it is quite complex to do the same for
the fsid, so I leave this to the person in charge of the deployment to
generate one and edit group_vars/all accordingly. The default fsid has
been removed as well.

Close: #24

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-11 00:54:21 +01:00
Alfredo Deza 4beec0a05d Merge pull request #18 from leseb/fix-rm-dev
Use full device name
2014-03-10 13:06:00 -04:00
Alfredo Deza 8925f47d76 Merge pull request #22 from leseb/fix-allow-disable-mds
Allow to disable MDS
2014-03-10 13:05:12 -04:00
Alfredo Deza 69d5953476 Merge pull request #23 from leseb/fix-hardcoded-eth
Remove hardcoded interface name
2014-03-10 12:49:01 -04:00
Sébastien Han 620d2d9a14 Remove hardcoded interface name
Add the ability to select a binding interface for the monitors.

Closes: #20

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-10 17:23:41 +01:00
Sébastien Han 739ee57d39 Allow to disable MDS
Even if MDS are not configured in site.yml the playbook has a
dependancy on the ceph.conf template.
This disables the mds section from the ceph.conf file.

Closes: #21

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-10 17:14:11 +01:00
Sébastien Han 4b6c8c1cfc Use full device name
Use full device name so we can specify custom devices (by-path, links
etc...)

Closes: #17

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-10 16:32:04 +01:00
Alfredo Deza c7175c1400 Merge pull request #13 from leseb/wip-support-install-rh
Multi distro installation support
2014-03-10 08:22:30 -04:00
Sébastien Han 6cdce8b5b2 Multi distro installation support
Now the playbook is able to install Ceph on RedHat systems.
This has been tested on CentOS 6.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-09 17:17:58 +01:00
Alfredo Deza 8577480e41 Merge pull request #11 from leseb/wip-multi-journal
Add multi-journal support and fix collocation scenario
2014-03-07 08:30:21 -05:00
Sébastien Han bb4796774b Add multi-journal support and fix collocation scenario
This commits brings the support of multiple journals where each journal
points to a specific OSD and vice-versa. The commit also clarifies the
usage of multi scenarios for both journal and osd_data.
In the meantime, it fixes the collocation scenario.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-07 14:04:25 +01:00
Alfredo Deza 018c71937d Merge pull request #10 from leseb/wip-check-sys-arch-support
Check system and architecture
2014-03-07 07:56:09 -05:00
Sébastien Han 9d06702fc2 Check system and architecture
If the system is not Linux and the architecture is not x86 Ansible will
fail and exit.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-07 11:20:48 +01:00
Alfredo Deza 146dd31c92 Merge pull request #4 from leseb/wip-many-devices
Support diverse setup disks
2014-03-06 09:25:54 -05:00
Sébastien Han 47c361b255 Support diverse setup disks
This brings the support of heterogeneous hardware. Not all the servers
are identical, some have more or less disks than the others. Prior this
commit, the 'parted' command was hanging, now the command simply exits 1
if the device doesn't exist, same for the 'egrep' piped command after.
Then we skip these errors and continue to run. So now, you can specify
multiple devices in group_vars/osds that don't exist on all the
servers.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-06 11:50:14 +01:00
Alfredo Deza e60fee1a27 Merge pull request #2 from leseb/wip-cleanup
Cleanup redundant command
2014-03-04 08:45:55 -05:00
Sébastien Han 72d3f98fa6 Cleanup redundant command
Since the fetch module takes care of the permissions it is not necessary
to set them with another module. The second command is useless.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-04 00:13:17 +01:00
Alfredo Deza e005f60579 Merge pull request #1 from leseb/wip-ceph-ansible-playbook-init
Add Ceph Playbook
2014-03-03 13:35:04 -05:00
Sébastien Han a984854956 Add Ceph Playbook
Initial commit.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-03 19:08:51 +01:00
ircolle 3940a3bd6b Initial commit 2014-03-03 09:12:09 -08:00