Commit Graph

45 Commits (aaeadcab12ca8b91d230bff4b08b74ab11d622ea)

Author SHA1 Message Date
Daniel Gryniewicz 1f52a97d31 Allow RESTAPI to be optional
When running via Vagrant, rather than always starting RESTAPI on each
monitor, make it optional via a configuration option in
vagrant_variables.yml.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2016-04-29 10:07:10 -04:00
Jim Curtis 78eb4f5c24 docker: fixes for OpenStack VMs 2016-04-26 08:20:02 -07:00
Sébastien Han 2b7da0058b vagrant use pool_default_size to 2
For dev envs it is easir to use a replica count of 2 instead of 3.

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-04-05 16:24:21 +02:00
Jim Curtis dae1bb072e Review feedback fixes from PR #518 2016-03-24 16:19:45 +01:00
Jim Curtis d5f642c206 Changes to allow ceph-ansible and vagrant to work on Openstack VMs 2016-03-24 16:18:46 +01:00
Huamin Chen f88eff37d7 initial steps to provision CentOS Atomic host
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-03-24 16:13:15 +01:00
MAA 45eadf003b Suppress Virtualbox disk creation if already present 2016-03-12 23:36:57 +03:00
Sébastien Han 314ebfb0ae vagrant: ability to configure installation source
now with vagrant, you can either enable ceph_stable or ceph_dev
depending on what you're looking to test.

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-03-07 14:05:01 +01:00
retspen 988010f2b8 Added support parallels provider 2016-02-18 13:58:33 +02:00
Daniel Gryniewicz 5c52c8070b Allow RGW and client VMs together
RGW and Client VMs were sharing a network range, causing vagrant
failure.  Bump the RGW range to the next value.
2016-02-11 15:16:13 -05:00
Sébastien Han a3cc055e61 ceph-osd: docker: fix type
use ceph_osd_docker_devices and not ceph_osd_docker_device

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-02-11 17:57:10 +01:00
Sébastien Han fa610cabf7 ceph-ansible: allow to run containerized daemons
run containerized daemons in virtual machines.
to enable it simply do:

`cp site-docker.yml.sample site-docker.yml`

and set `docker: true` in `vagrant_variables.yml`

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-02-07 22:30:32 +01:00
Sébastien Han 21cd46bf8a remove unecessary variables
these variables will be created on the fly, there is no need to force
them.

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-01-27 23:58:51 +01:00
Andrew Schoen f5bf9d8c57 Include os_tuning_params in the settings used for vagrant testing
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-01-22 11:00:36 -06:00
Luis Pabón ec1cb44220 Support for libvirt provider in vagrant 2015-12-02 17:59:52 -05:00
Huamin Chen 860125ff8f various fixes for CentOS
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-11-05 20:39:03 +00:00
Emilien Mantel 1d6fa46079 Vagrant storagectl as option 2015-08-27 11:26:10 +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 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 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
Sébastien Han 8dc1554788 Fix multiple things
* fix the Vagrantfile ruby check
* fix the variable positions

Bring more mandatory variables and try to separate Vagrant vars from the
playbook vars.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2015-05-15 14:32:26 +02:00
Yin Jifeng 03508a7ab2 journal_size for Vagrant 2015-05-15 13:45:50 +08:00
Sébastien Han 3dd14e5e37 Ability to configure the memory
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2015-04-27 19:01:02 +02:00
Sébastien Han 5927df7962 Add ceph-common role to client machines
Add another warning for cephx signatures

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2015-04-14 12:53:41 +02:00
Sébastien Han ad0d75a9a1 Make more boxes available
The box can be configured thanks to a new var, look at vagrant_variables
and select your box.
Handy to test several distros deployment.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2015-03-30 11:48:17 +02:00
Sébastien Han a1d062b8f9 Fix Vagrant vars for MDS and RGW
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2015-03-02 17:41:52 +01:00
Sébastien Han 227927044c Use an external file to manage Vagrant variables
This is really handy when we are testing code since we don't need to
modify the Vagrantfile, which is tracked by git.
The next commit will ignore the vagrant_variables.yml file.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2015-02-24 00:09:29 +01:00
Sébastien Han f12dab9835 Enable proper options while activating rgw or mds with Vagrant
When enabling radosgw virtual machines, we also need to enable the
radosgw variable. Same thing goes with the mds.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2015-02-15 02:01:35 +01:00
Sébastien Han 812776bce4 Change disk controller name
The recently added Trusty box was build with a Controller named
"SATAController", we must reuse the same name while adding our devices.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2015-01-19 18:25:14 +01:00
Sébastien Han b31a81b2b5 Upgrade to Trusty box
Use a Trusty box instead of Precise.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2015-01-19 17:41:19 +01:00
Sébastien Han 84271325d7 Fix vagrant deployment for vagrant version > 1.7
See: https://github.com/mitchellh/vagrant/issues/5048.

Closes: #172

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2015-01-06 16:23:43 +01:00
Sébastien Han 64df495bb6 Introduce client configuration
Introduce a client VM for KRBD and RGW.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-11-19 12:27:56 -08:00
Leseb 3a485bf22a Revert "Fix autogen UUID and add auto gen monitor key" 2014-11-14 15:03:50 +01:00
Sébastien Han a7bba85027 Fix autogen UUID and add auto gen monitor key
This fixes the UUID auto generation and introduces the monitor key auto
generation.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-11-13 15:38:10 +01:00
Matthew Rees 11f8f71aa1 Further linting and deployment automation 2014-11-10 14:33:21 +02:00
Sébastien Han 8fe3b97284 Make RGW configurable in Vagrant
Depending on what we want to test, it might be handy to simply disable
the creation of a specific virtual machine. Now if NRGWS is set to 0
this will disable it.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-11-06 12:15:25 +01:00
Matthew Rees 56ad45859f Ruby linting for Vagrantfile
Mostly cosmetic changes with a few changes to preferred conditional
formatting.

The only linting issues outstanding are lines that are too long and
using snake_case for the filename.
2014-11-05 17:40:36 +02:00
Sébastien Han 83be67cd54 Use a very unlikely subnet address for Vagrant
Since 192.168.0.0/24 is very commong and might overlap with some
existing networks on your laptop, using another subnet like '42' is less
bound to happen.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-09-03 00:13:07 +02:00
Sébastien Han 6f17371632 Fix OSD weight and device size
Because of the following bug: http://tracker.ceph.com/issues/8551
If we use a disk file size of 1GB the OSD weight calculation ends up
being 0. Thus no data will be stored on any OSD.
Increasing the disk file size up to 11GB (we save some filesystem
overhead since the calculation is based on df thus 11GB is safer than
10GB). Because we significantly increased the size of the disk files we
now only create 2 devices per OSD host.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-09-03 00:08:06 +02:00
Joseph Glanville e562303c03 Introduce VMware Fusion Vagrant support
* Use a box that supports all providers
* Fix hdd creation so it doesn't call customize more than once
* Introduce method to create vmdks
* Add provider customization for VMware Fusion
2014-08-16 19:06:29 +10:00
Lorin Hochstein 92c0445989 Use Vagrant's Ansible provisioner
Use Vagrant's built-in support for Ansible provisioner. This eliminates the need
for a hosts file, and simplifies the ansible config file.

Renames config from .ansible.cfg to ansible.cfg since Ansible expects the file
to be called ansible.cfg and be adjacent to Vagrantfile when using the Vagrant
provisioner.
2014-05-11 19:34:37 -04:00
Sébastien Han 8a9851a045 Reduce VM memory consumption
We now have 7 virtual machines in the Vagrant sandbox. This takes a lot
of memory. This might be a problem for some laptop and whon't help
testings.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-14 10:47:06 +01:00
Sébastien Han f295b4f5b4 Add RADOS Gateway support
This is a wip branch.
This works on Ubuntu precise, Debian Wheezy and CentOS 6.4.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-03-13 23:43:57 +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
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