Ivan Font
6f5f6610a8
Support for docker image tags
...
Signed-off-by: Ivan Font <ivan.font@redhat.com>
2016-07-12 15:49:07 -07:00
Leseb
ede7a2afd1
Merge pull request #874 from KGoreczny/docker_module_for_ansible_2_1_support
...
Fix docker deployment for Ansible 2.1
2016-07-12 15:36:07 +02:00
KGoreczny
11bed371ac
remove trailing spaces
...
Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>
2016-07-12 14:50:56 +02:00
Erik Hollensbe
6b218a36d9
ceph-osd: fix an item propagation error while partitioning disks
...
Signed-off-by: Erik Hollensbe <github@hollensbe.org>
2016-07-12 03:57:11 -07:00
KGoreczny
13e0b60cbe
Fix for Ansible 2.1: install docker-py in version matched to ansible docker module
...
Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>
2016-07-11 11:35:32 +02:00
Sébastien Han
a83e5d6b10
remove withspaces
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-07-07 16:17:49 +02:00
Leseb
d9d1d7856e
Merge pull request #812 from rootfs/fix
...
some fixes for container deployment
2016-06-09 15:33:32 +02:00
Leseb
58f9a6cfe0
Merge pull request #804 from dang/docker-dev
...
Allow running on local dev docker images
2016-06-06 11:12:43 +02:00
Daniel Gryniewicz
9d08d74385
Allow running on local dev docker images
...
Docker makes it difficult to use images that are not on signed
registries. This is a problem for developers, who likely won't have
access to a registry with proper signed certificates.
This allows the ability to use any docker image on the machine running
vagrant/ansible. The way it works is that the image in question is
exported locally, then sent to each target box and imported there.
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2016-06-03 14:52:21 -04:00
Huamin Chen
6b84f5475b
fix containerized deployment on centos
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-06-03 15:24:00 +00:00
Sébastien Han
c6232bed21
ceph-common: uniformize template path calls
...
In order to align all Ansible versions, we now use the full path for the
template. We rely on `role_path` variable. Now all the tasks using
the template module have a uniform syntax.
Might fix issue raised in #483
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-06-02 18:19:03 +02:00
Huamin Chen
a124078612
in containerized deployment, use the right interface name variable in mon; remove one line inline files
...
cleanup on docker osd tasks
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-05-25 18:17:37 +00:00
Sam Yaple
069c93a238
Unify formatting of when conditional
...
This is purely a refactor. Converts when 'and' conditionals into lists
rather than multiline strings. This does not work for nested
conditionals, but those can be formated with indents.
Moves one line when statements onto the same line as the when command
itself.
A small logic bug was found in ceph-osd/tasks/check_devices.yml which
which was also fixed.
Signed-off-by: Sam Yaple <sam@yaple.net>
2016-05-09 14:08:33 +00:00
Ivo Jimenez
216ab2d776
Mounts /run when executing osd container
2016-05-03 15:47:01 -07:00
Daniel Gryniewicz
256775cb0f
Docker fixes and cleanups
...
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2016-05-02 10:56:52 -04:00
Leseb
4bfae5fc7a
Merge pull request #733 from jimcurtis/master
...
docker: fixes for OpenStack VMs
2016-04-28 14:45:37 -05:00
Jim Curtis
6c9e3ab2a3
docker: typo in comment
2016-04-27 10:31:27 -07:00
Jim Curtis
78eb4f5c24
docker: fixes for OpenStack VMs
2016-04-26 08:20:02 -07:00
Leseb
f3d98a64f9
Merge pull request #731 from ivotron/issue-730
...
bind-mounts /dev in osd containers
2016-04-25 14:56:52 -05:00
Ivo Jimenez
9ac9103e0d
bind-mounts /dev in osd containers
...
This is needed in order to make ceph-disk work
2016-04-25 11:45:23 -05:00
Ivo Jimenez
ea7a79c385
Modifies docker image variable being reference
...
These reference ceph_mon_docker_username instead of the corresponding
one
2016-04-24 14:32:17 -07:00
Huamin Chen
9d81f32538
set path to find mon and osd systemd unit file templates
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-04-14 21:57:27 +00:00
Sébastien Han
7424ad6d68
docker: do not hardcode image and user name
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-04-12 12:01:53 +02:00
Sébastien Han
4b93fc9dbd
ceph-osd: docker fix typo again...
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-04-01 17:33:11 +02:00
Sébastien Han
fbf36716c5
ceph-osd: docker start typo...
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-04-01 17:31:34 +02:00
Sébastien Han
00819ab7b8
ceph-docker: osd fix container prep and start
...
We now check if the device has already been prepared, if we detect a
ceph partition we do not prepare the device.
Also fixed some issues while running on Atomic or CoreOS.
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-04-01 15:40:19 +02:00
Sébastien Han
df6c3f4f72
ceph-docker: fix permissions on directories
...
fixing the can't open /var/lib/ceph/bootstrap-osd/ceph.keyring: can't
open /var/lib/ceph/bootstrap-osd/ceph.keyring: (13) Permission denied
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-04-01 14:43:33 +02:00
pprokop
604ea77ecc
Changes due to review
2016-04-01 12:57:58 +02:00
pprokop
5705cc71a3
Changing when statements
2016-03-30 12:40:57 +02:00
pprokop
d7d83273e7
Adding support for non atomic and non CoreOS machines for deploying containerized osds with kv backend
2016-03-30 12:22:15 +02:00
pprokop
ec9a96e570
Adding ceph-osd continerized deployment with kv store
2016-03-29 10:23:31 +02:00
Sébastien Han
b0f56590e0
docker: fix tons of issues
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-03-24 17:55:21 +01:00
Jim Curtis
b06229bafb
review feedback
2016-03-24 16:19:55 +01: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
04f7b5923f
review feedback
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-03-24 16:16:27 +01:00
Huamin Chen
326db629a0
start osd daemon via systemd if supported
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-03-24 16:16:27 +01:00
Huamin Chen
6cf3fff436
split osd disk to prepare and activate
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-03-24 16:16:27 +01:00
Huamin Chen
0647cad7be
containerized mon
2016-03-24 16:08:20 +01:00
Sébastien Han
17fb38294e
Octal file permissions must contain leading zero
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-02-21 18:21:19 +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
c0a3837d6e
ceph-common: replace 'sudo' by 'become'
...
to avoid warning from ansible v2. works for both `1.9.4` and `2.0.0.2`.
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-02-04 12:36:46 +01:00
Sébastien Han
17bc64e1ea
use dnf when yum is not available
...
fixes the `importError: No module named yum` see here:
https://jenkins.ceph.com/job/ceph-ansible-pull-requests/45/console
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-01-28 19:11:22 +01:00
Sébastien Han
f35a665634
Fix pip package name on debian
...
use python-pip and not pip
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-01-28 15:55:53 +01:00
Sébastien Han
fcfac5c1e1
Install pip before using it
...
Fixes : #430
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-11-16 11:47:23 +01:00
Sébastien Han
9264a868fd
Add proper permission for selinux
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-10-21 12:11:32 +02:00
Sébastien Han
33ed4f5029
Fix typo
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-10-21 02:18:48 +02:00
Sébastien Han
2daeb807ed
Add safety checks prior to deploy a cluster in containers
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-10-21 02:12:43 +02:00
Sébastien Han
5fb7b1be5c
Fix typo
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-10-20 17:17:58 +02:00
Sébastien Han
4c4aa32943
Create missing directories when deploying with docker
...
Signed-off-by: Sébastien Han <sebhan@cisco.com>
2015-10-20 17:05:34 +02:00
Michael Sambol
48b1cf3be2
Refactor osd role
2015-10-18 20:24:47 -05:00
Matt Thompson
afc934d22a
Make fetch directory configurable
...
Currently, the fetch directory is created in your working directory
(where ansible is run from). We prefer to not keep any state in this
directory and would prefer to have the fetch directory configurable so
we can store it outside of our code checkout.
This commit creates a new variable in each role called
`fetch_directory` (defaulting to the previous value of 'fetch/'), and
then updates each reference to 'fetch' to use the new variable instead.
Closes issue #383
2015-08-27 16:49:50 +01:00
Sébastien Han
b47344fdd4
Cleanup and change_when watch
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-07-30 11:33:08 +02: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
Sébastien Han
0508cfea86
Fix the conntrack_max
...
Fixes: https://github.com/ceph/ceph-docker/issues/19
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-07-28 16:48:21 +02:00
Sébastien Han
6d0e8777e2
Re-arrange docker invocation and fix bootstrap
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-07-28 16:05:35 +02:00