]>
git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
Sébastien Han [Wed, 11 May 2016 07:14:55 +0000 (09:14 +0200)]
ceph-common: update the README for purge config
Highlight the variables that were used prior to this path:
https://github.com/ceph/ceph-ansible/pull/694
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Tue, 10 May 2016 16:24:07 +0000 (18:24 +0200)]
Merge pull request #694 from ceph/purge-ceph-conf-options
ceph-common: purge ceph.conf file
Sébastien Han [Thu, 7 Apr 2016 08:46:42 +0000 (10:46 +0200)]
ceph-common: purge ceph.conf file
Since ##461 we have been having the ability to override ceph default
options. Previously we had to add a new line in the template and then
another variable as well. Doing a PR for one option was such a pain. As
a result, we now have tons of options that we need to maintain across
all the ceph version, yet another painful thing to do.
This commit removes all the ceph options so they are handled by ceph
directly. If you want to add a new option, feel free to to use the
`ceph_conf_overrides` variable of your `group_vars/all`.
Risks, for those who have been managing their ceph using ceph-ansible
this is not a trivial change as it will trigger a change in your
`ceph.conf` and then restart all your ceph services. Moreover if you did
some specific tweaks as well, prior to run ansible you should update the
`ceph_conf_overrides` variable to reflect your previous changes.
To avoid service restart, you need to know a bit of ansible for this,
but generally the idea would be to run ansible on a dummy host to
generate the ceph.conf, then scp this file to all your ceph hosts and
you should be good.
Closes: #693
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Tue, 10 May 2016 08:24:02 +0000 (10:24 +0200)]
Merge pull request #768 from mcsage/master
Make install-ansible.sh work with Linux Mint and enable swap by default but decrease vm.swappiness
Stephan Hohn [Tue, 10 May 2016 08:20:23 +0000 (10:20 +0200)]
align group_vars/all.sample with roles/ceph-common/defaults/main.yml
Stephan Hohn [Mon, 9 May 2016 20:05:01 +0000 (22:05 +0200)]
Increase system stabillity by re-enabling swap and setting vm.swappiness to 10
Stephan Hohn [Mon, 9 May 2016 19:00:56 +0000 (21:00 +0200)]
Make install-ansible.sh work with Linux Mint
Leseb [Mon, 9 May 2016 16:25:37 +0000 (18:25 +0200)]
Merge pull request #749 from SamYaple/unified_when
Unify formatting of when conditional
Sam Yaple [Mon, 9 May 2016 15:26:37 +0000 (15:26 +0000)]
Add in missing is_before_infernalis statement
Leseb [Mon, 9 May 2016 15:05:21 +0000 (17:05 +0200)]
Merge pull request #766 from ceph/retry-sgdisk
try to zap a device again if sgdisk fails on the first try
Sam Yaple [Mon, 9 May 2016 14:17:14 +0000 (14:17 +0000)]
Fixed a few missed when conditionals from rebase
Sam Yaple [Mon, 9 May 2016 14:08:33 +0000 (14:08 +0000)]
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>
Alfredo Deza [Mon, 9 May 2016 13:12:28 +0000 (09:12 -0400)]
try to zap a device again if sgdisk fails on the first try
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Leseb [Mon, 9 May 2016 09:09:22 +0000 (11:09 +0200)]
Merge pull request #765 from flyd1005/wip-fix-typo
cleanup: fix typos and inappropriate variable names
Li Peng [Mon, 9 May 2016 07:14:13 +0000 (15:14 +0800)]
cleanup: fix inappropriate variable names
Signed-off-by: Li Peng <lip@dtdream.com>
Li Peng [Mon, 9 May 2016 07:12:01 +0000 (15:12 +0800)]
cleanup: fix typos
Signed-off-by: Li Peng <lip@dtdream.com>
Leseb [Sun, 8 May 2016 23:13:54 +0000 (01:13 +0200)]
Merge pull request #748 from ceph/use-jewel
ceph: use jewel release
Leseb [Sun, 8 May 2016 23:00:02 +0000 (01:00 +0200)]
Merge pull request #764 from ceph/systemd
Several fixes
Sébastien Han [Sun, 8 May 2016 22:41:44 +0000 (00:41 +0200)]
ceph-mon: fix monitor startup
Somehow on CentOS 7.2 with Jewel, the service enablement by the Ansible service module
does not seem to work properly.
Signed-off-by: Sébastien Han <seb@redhat.com>
Sébastien Han [Sun, 8 May 2016 22:36:15 +0000 (00:36 +0200)]
ceph-mds: fix the handler
Moving the mds_name fact in the common role so the MDS can properly
be restarted.
Signed-off-by: Sébastien Han <seb@redhat.com>
Sébastien Han [Sun, 8 May 2016 22:34:24 +0000 (00:34 +0200)]
ceph-mds: fix MDS conditions
We don't need to set is_systemd when we are applying a configuration for
a sysvinit init.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Sat, 7 May 2016 00:52:45 +0000 (02:52 +0200)]
Merge pull request #763 from ceph/install-mds
ceph-common: install ceph-mds package
Sébastien Han [Sat, 7 May 2016 00:37:09 +0000 (02:37 +0200)]
ceph-common: install ceph-mds package
We kinda ommitted this package, now Jewel is out and the metadata server
is considered as stable.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Sat, 7 May 2016 00:16:32 +0000 (02:16 +0200)]
Merge pull request #762 from ceph/install-script
install: remove epel
Sébastien Han [Sat, 7 May 2016 00:14:46 +0000 (02:14 +0200)]
install: remove epel
We just add epel to conviently install Ansible. However we don't keep it
as it could disrupt ceph's installation and dependancies.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Fri, 6 May 2016 23:03:35 +0000 (01:03 +0200)]
Merge pull request #761 from dang/docker-fixes
Docker fixes for MDS
Leseb [Fri, 6 May 2016 23:02:49 +0000 (01:02 +0200)]
Merge pull request #758 from ceph/ubuntu_use_systemd
Adds an use_systemd fact
Andrew Schoen [Fri, 6 May 2016 14:14:06 +0000 (09:14 -0500)]
strip any newlines from the init_system fact
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 5 May 2016 21:53:56 +0000 (16:53 -0500)]
add a mdss group to the CLI testing inventory
The ceph-mds role is being tested, but there was not group for it in the
inventory so ceph-mds was not being installed on the testing machine.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 5 May 2016 20:00:47 +0000 (15:00 -0500)]
Use the use_systemd fact when starting rbd
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 5 May 2016 19:54:50 +0000 (14:54 -0500)]
Use the use_systemd fact when starting mdss
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Daniel Gryniewicz [Fri, 6 May 2016 13:46:58 +0000 (09:46 -0400)]
Docker fixes for MDS
Fixes to make the ceph-mds role work with Docker
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
Andrew Schoen [Thu, 5 May 2016 19:31:12 +0000 (14:31 -0500)]
Use the use_systemd fact when starting rgw
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 5 May 2016 18:59:36 +0000 (13:59 -0500)]
use the use_systemd fact when starting OSDs
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 5 May 2016 18:56:32 +0000 (13:56 -0500)]
use the use_systemd fact when starting monitors
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Wed, 4 May 2016 17:16:27 +0000 (12:16 -0500)]
Adds an use_systemd fact
This adds a helper fact that uses the ``init_system`` fact to determine if
we should be using systemd or not when controlling services.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Leseb [Wed, 4 May 2016 15:34:34 +0000 (17:34 +0200)]
Merge pull request #756 from ceph/fix-ansible-install
install-ansible: refactor install on Red Hat
Sébastien Han [Wed, 4 May 2016 15:33:07 +0000 (17:33 +0200)]
install-ansible: refactor install on Red Hat
Merge both lsb_release and /etc/redhat-release cases.
Also testing if epel is already installed or not.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Wed, 4 May 2016 14:40:46 +0000 (16:40 +0200)]
Merge pull request #750 from ceph/osd-id-fix
Get the correct OSD ID when the cluster name includes numbers
Leseb [Wed, 4 May 2016 14:39:41 +0000 (16:39 +0200)]
Merge pull request #755 from mattt416/fix_issue_741
Set init_system fact and reference in ceph-osd role
Matt Thompson [Wed, 4 May 2016 10:47:24 +0000 (11:47 +0100)]
Set init_system fact and reference in ceph-osd role
The ceph-osd role currently uses ansible_service_mgr, which is a fact
only available on ansible 2.x and greater. This commit sets a similar
fact called init_system which will store the contents of /proc/1/comm
(systemd, init, etc.) and then references it ceph-osd instead.
Closes #741
Leseb [Wed, 4 May 2016 09:50:25 +0000 (11:50 +0200)]
Merge pull request #747 from smatzek/add_ubuntu_cloud_archive
Add support for install from Ubuntu Cloud Archive
Leseb [Wed, 4 May 2016 09:44:21 +0000 (11:44 +0200)]
Merge pull request #752 from ivotron/issue-751
Mounts /run when executing osd container
Leseb [Wed, 4 May 2016 08:38:43 +0000 (10:38 +0200)]
Merge pull request #753 from ceph/take-over-2
take-over: remove the connection local
Sébastien Han [Wed, 4 May 2016 08:37:59 +0000 (10:37 +0200)]
take-over: remove the connection local
Signed-off-by: Sébastien Han <seb@redhat.com>
Ivo Jimenez [Tue, 3 May 2016 22:47:01 +0000 (15:47 -0700)]
Mounts /run when executing osd container
Leseb [Tue, 3 May 2016 20:16:18 +0000 (22:16 +0200)]
Merge pull request #728 from ivotron/issue727
docker: use ceph_docker_osd_devices variable for purging docker cluster
Andrew Schoen [Tue, 3 May 2016 19:47:47 +0000 (14:47 -0500)]
Get the correct OSD ID when the cluster name includes numbers
If the ceph cluster name includes numbers, the grep used to find the OSD
IDs from /var/lib/ceph/osd/ would also return the numbers that were in
the cluster name.
For example, if the cluster was named 'mine123' and there was only one
OSD on the node, then the task that finds the OSD IDs would return
'123' and '0'.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Ivo Jimenez [Mon, 25 Apr 2016 14:40:41 +0000 (09:40 -0500)]
docker: uses ceph_osd_docker_devices variable in purge
Also checks for the existence of gdisk
Samuel Matzek [Mon, 2 May 2016 16:25:52 +0000 (11:25 -0500)]
Add support for install from Ubuntu Cloud Archive
This adds support to allow the install of Ceph from the
Ubuntu Cloud Archive. The Ubuntu Cloud Archive provides newer
release of Ceph than the normal Ubuntu distro repository.
Signed-off-by: Samuel Matzek <smatzek@us.ibm.com>
Sébastien Han [Sun, 1 May 2016 14:22:43 +0000 (16:22 +0200)]
ceph: use jewel release
Also fix the repo url.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Mon, 2 May 2016 16:53:06 +0000 (18:53 +0200)]
Merge pull request #746 from dang/docker-fixes
Docker fixes and cleanups
Daniel Gryniewicz [Mon, 2 May 2016 14:33:16 +0000 (10:33 -0400)]
Docker fixes and cleanups
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
Leseb [Mon, 2 May 2016 14:43:41 +0000 (16:43 +0200)]
Merge pull request #744 from ceph/take-over
take over an existing cluster with ceph ansible
Leseb [Mon, 2 May 2016 13:05:31 +0000 (15:05 +0200)]
Merge pull request #745 from ceph/dev-package
ceph-common: install ceph-mon/osd for ceph dev
Sébastien Han [Mon, 2 May 2016 12:18:33 +0000 (14:18 +0200)]
ceph-common: install ceph-mon/osd for ceph dev
Since developement versions of Ceph are after infernalis a package split
happened. So basically ceph-mon, ceph-osd, ceph-mds need to be
installed.
Signed-off-by: Sébastien Han <seb@redhat.com>
Sébastien Han [Sun, 1 May 2016 14:46:28 +0000 (16:46 +0200)]
take over an existing cluster with ceph ansible
Introducing a playbook helper to control a ceph cluster that was not
deployed with ceph ansible.
The procedure is rather simple. If the cluster was deployed with the
following project there won’t be any issue:
* Ceph Deploy
* Puppet Ceph
* Chef Ceph
* Any other deployment tool that relies on ceph-disk
The procedure comes as fellow:
1. Install Ansible and add your monitors and osds hosts in it. For more
detailed information you can read the Ceph Ansible Wiki
2. Set generate_fsid: false in group_vars
3. Get your current cluster fsid with ceph fsid and set cluster_fsid
accordingly in group_vars
4. Run the playbook called: take-over-existing-cluster.yml like this
ansible-playbook take-over-existing-cluster.yml.
5. Eventually run Ceph Ansible to validate everything by doing:
ansible-playbook site.yml.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Sun, 1 May 2016 14:42:54 +0000 (16:42 +0200)]
Merge pull request #743 from ceph/centos-install
ansible-install: allow CentOS
Sébastien Han [Sun, 1 May 2016 14:42:12 +0000 (16:42 +0200)]
ansible-install: allow CentOS
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Fri, 29 Apr 2016 14:23:13 +0000 (09:23 -0500)]
Merge pull request #742 from dang/restapi
Allow RESTAPI to be optional
Daniel Gryniewicz [Fri, 29 Apr 2016 14:07:10 +0000 (10:07 -0400)]
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>
Leseb [Thu, 28 Apr 2016 19:46:04 +0000 (14:46 -0500)]
Merge pull request #734 from bengland2/cleanup-tmp-rh-storage
cleanup /tmp/rh-storage-repo so newer repos are actually installed
Leseb [Thu, 28 Apr 2016 19:45:37 +0000 (14:45 -0500)]
Merge pull request #733 from jimcurtis/master
docker: fixes for OpenStack VMs
Leseb [Thu, 28 Apr 2016 14:54:02 +0000 (09:54 -0500)]
Merge pull request #739 from ceph/use-package-split
Adds a use_server_package_split var
Andrew Schoen [Wed, 27 Apr 2016 21:10:39 +0000 (16:10 -0500)]
Adds a use_server_package_split var
This will allow a user to conditionally install the ceph package on rpm
based systems. Installing this package is not required or wanted in
versions passed infernalis.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Leseb [Thu, 28 Apr 2016 14:07:59 +0000 (09:07 -0500)]
Merge pull request #737 from ceph/issue-736
Define readable vars for Ceph version comparisons
Alfredo Deza [Wed, 27 Apr 2016 14:51:15 +0000 (10:51 -0400)]
ceph-rgw: port start_radosgw task to use new ceph version facts
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Wed, 27 Apr 2016 14:48:46 +0000 (10:48 -0400)]
ceph-rbd-mirror: port start_rbd_mirror task to use new ceph version facts
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Wed, 27 Apr 2016 14:43:09 +0000 (10:43 -0400)]
ceph-osd: port activate_osds task to use new ceph version facts
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Wed, 27 Apr 2016 14:41:39 +0000 (10:41 -0400)]
ceph-mon: port start_monitor task to use new ceph version facts
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Wed, 27 Apr 2016 14:39:57 +0000 (10:39 -0400)]
ceph-mds: port pre_requisite task to use new ceph version facts
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Wed, 27 Apr 2016 14:34:08 +0000 (10:34 -0400)]
ceph-common: port main handler to use new ceph version facts
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Ben England [Wed, 27 Apr 2016 17:36:32 +0000 (13:36 -0400)]
requested format cleanup
Jim Curtis [Wed, 27 Apr 2016 17:31:27 +0000 (10:31 -0700)]
docker: typo in comment
Alfredo Deza [Wed, 27 Apr 2016 14:01:02 +0000 (10:01 -0400)]
ceph-mon: port deploy_monitors task to use new ceph version facts
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Wed, 27 Apr 2016 13:50:10 +0000 (09:50 -0400)]
ceph-common: port main task to use new ceph version facts
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Wed, 27 Apr 2016 13:28:17 +0000 (09:28 -0400)]
create is_before_RELEASE vars as well
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Wed, 27 Apr 2016 13:19:32 +0000 (09:19 -0400)]
ceph-common: include the facts task always
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Wed, 27 Apr 2016 13:17:56 +0000 (09:17 -0400)]
ceph-common: create a facts task to define ceph versions
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Jim Curtis [Tue, 26 Apr 2016 23:34:57 +0000 (16:34 -0700)]
docker: Fix ordering of rgw docker tasks so directory is created befor fetch
Ben England [Tue, 26 Apr 2016 17:01:01 +0000 (13:01 -0400)]
cleanup /tmp/rh-storage-repo so newer repos are actually installed
Jim Curtis [Tue, 26 Apr 2016 15:20:02 +0000 (08:20 -0700)]
docker: fixes for OpenStack VMs
Leseb [Mon, 25 Apr 2016 19:56:52 +0000 (14:56 -0500)]
Merge pull request #731 from ivotron/issue-730
bind-mounts /dev in osd containers
Leseb [Mon, 25 Apr 2016 19:46:07 +0000 (14:46 -0500)]
Merge pull request #724 from ivotron/issue-723
Modifies docker image variable being referenced
Ivo Jimenez [Mon, 25 Apr 2016 16:42:06 +0000 (11:42 -0500)]
bind-mounts /dev in osd containers
This is needed in order to make ceph-disk work
Ivo Jimenez [Sun, 24 Apr 2016 21:32:17 +0000 (14:32 -0700)]
Modifies docker image variable being reference
These reference ceph_mon_docker_username instead of the corresponding
one
Leseb [Fri, 22 Apr 2016 23:00:23 +0000 (01:00 +0200)]
Merge pull request #721 from ceph/fix-admin-socket-warning
change defaults for rbd_client_directories and rbd_client_admin_socket_path
Andrew Schoen [Fri, 22 Apr 2016 17:39:16 +0000 (12:39 -0500)]
default rbd_client_log_path to /var/log/ceph
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Leseb [Fri, 22 Apr 2016 16:14:29 +0000 (18:14 +0200)]
Merge pull request #722 from ceph/rgw-civet-listen
ceph-rgw: ability to bind civetweb on an IP
Andrew Schoen [Fri, 22 Apr 2016 15:59:00 +0000 (10:59 -0500)]
default rbd_client_admin_socket_path to /var/run/ceph
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 22 Apr 2016 15:56:30 +0000 (10:56 -0500)]
default rbd_client_directories to true
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Sébastien Han [Fri, 22 Apr 2016 15:44:56 +0000 (17:44 +0200)]
ceph-rgw: ability to bind civetweb on an IP
Introducing a new config option: `radosgw_civetweb_bind_ip` which points
to the `ansible_default_ipv4` by default. You can override this
variable. Use ansible facts to put a proper value.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Thu, 21 Apr 2016 14:55:45 +0000 (16:55 +0200)]
Merge pull request #720 from ceph/mon-addr-fix
correctly set mon addr when monitor_interface is defined in group_vars
Andrew Schoen [Thu, 21 Apr 2016 14:09:16 +0000 (09:09 -0500)]
correctly set mon addr when monitor_interface is defined in group_vars
This fixes the ceph.conf template so that it will look for an inventory
defined value for monitor_interface or for monitor_interface defined in
a group_vars file.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Leseb [Tue, 19 Apr 2016 08:09:48 +0000 (10:09 +0200)]
Merge pull request #664 from jsaintrocc/master
Add infernalis to list of stable releases comment
James Saint-Rossy [Mon, 18 Apr 2016 14:49:35 +0000 (10:49 -0400)]
Updated version compare to 0.84.0 per laseb comment
Leseb [Fri, 15 Apr 2016 08:55:42 +0000 (10:55 +0200)]
Merge pull request #715 from rootfs/jewel
some fixes to run containers on Atomic
Huamin Chen [Thu, 14 Apr 2016 21:57:27 +0000 (21:57 +0000)]
set path to find mon and osd systemd unit file templates
Signed-off-by: Huamin Chen <hchen@redhat.com>
Huamin Chen [Thu, 14 Apr 2016 13:41:05 +0000 (13:41 +0000)]
fix deployment on Atomic
Signed-off-by: Huamin Chen <hchen@redhat.com>
Leseb [Wed, 13 Apr 2016 20:25:59 +0000 (22:25 +0200)]
Merge pull request #713 from stpierre/fix-rbd-client-dirs
Fix creation of RBD client directories