Commit Graph

1050 Commits (993bcd632c0a5476b27c1c734dbe03979d185072)
 

Author SHA1 Message Date
Leseb d050179121 Merge pull request #512 from guits/quick_fix
Refact code using `set_fact` to handle 'legacy' versions
2016-02-05 16:41:35 +01:00
Guillaume Abrioux dcec63adc8 Refact code using `set_fact`
At the moment, all the tasks using the file module are duplicated to have differents ownerships depending on the fact `is_ceph_infernalis`.
The goal of this commit is to have a new logic for this:
- First set facts depending on the `is_ceph_infernalis` fact
- Create the files or directories using the setted facts as ownerships.
2016-02-05 16:14:01 +01:00
Leseb 115d62d560 Merge pull request #516 from ceph/ansible-v2-warnings
ceph-common: replace 'sudo' by 'become'
2016-02-04 15:31:12 +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
Leseb db1cf0e292 Merge pull request #514 from ceph/pkg-install-tags
Adds a package-install tag to all installation tasks
2016-02-03 18:42:39 +01:00
Andrew Schoen df7c8da0e9 Adds a package-install tag to all installation tasks
We have a requirement to install the packages first without
configuration. These tags should allow us to target the tasks need to do
that.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-02-03 11:27:16 -06:00
Leseb b37443dd97 Merge pull request #508 from mattt416/upgrade_flag
Control when ceph packages get updated
2016-02-02 15:16:03 +01:00
Leseb ba544806d3 Merge pull request #511 from ceph/use-pythonuuid
ceph-common: use a generic way to create uuid
2016-02-02 13:28:41 +01:00
Sébastien Han 5ef844988e ceph-common: use a generic way to create uuid
as reported in #510 some systems don't have uuidgen installed so we
better use a more global way to generate it. It sounds like python
should be available in case uuidgen is not.
Otherwise we will have to find another way :)

closes #510

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-02-02 11:24:58 +01:00
Matt Thompson a227a50ab2 Control when ceph packages get updated
Currently, all the ceph package installation resources use
"state=latest", which means subsequent runs of the ceph playbooks
could result in ceph being upgraded if there are package updates
available in the selected repo.

This commit adds a new variable to ceph-common called
'upgrade_ceph_packages' which defaults to False.  This variable is used
in the package installation resources for ceph packages to determine if
the resource should use "state=present" or "state=latest".  If the
variable gets set to True, "state=latest" will be used.

Additionally, we update rolling_update.yml to override
upgrade_ceph_packages to true to permit package upgrades in this
context specifically.

Closes issue #506
2016-02-02 09:56:40 +00:00
Leseb 456e937d1e Merge pull request #493 from ceph/sudo-test
CI does not use root, but sudo will do fine
2016-01-29 16:45:51 +01:00
Sébastien Han 2665c43f34 fix type on ice template
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-01-29 01:15:32 +01:00
Leseb d54d6f9888 Merge pull request #502 from ceph/use-dnf
use dnf when yum is not available
2016-01-29 01:03:04 +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
Andrew Schoen e6882b8591 remove remote_user from test.yml so it uses the current user
We need this so that the CI tests with jenkins will use the correct
user with sudo access.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-01-28 11:53:23 -06:00
Alfredo Deza f16194b82b create a single-machine inventory for testing
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2016-01-28 11:53:23 -06:00
Alfredo Deza c3bdf9d5c6 CI does not use root, but sudo will do fine
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2016-01-28 11:53:23 -06:00
Leseb b1265608ad Merge pull request #501 from ceph/common-defaults
Add defaults for ceph_stable_ice_tmp_path and ceph_stable_ice_kmod
2016-01-28 18:51:42 +01:00
Andrew Schoen 1fc8a17eb0 Add defaults for ceph_stable_ice_tmp_path and ceph_stable_ice_kmod
It seems that in ansible 2.0 even if a task is skipped by it's `when`
clause not evaluating to true the variables in the play are still
rendered. Because these were not defined in defaults/main.yml ansible
was failing in installs/install_on_redhat where those variables are
being used in a `with_items` stanza.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-01-28 11:40:18 -06:00
Leseb a25d1f3692 Merge pull request #500 from ceph/python-pip
Fix pip package name on debian
2016-01-28 15:56:46 +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
Leseb 67eaabb6e4 Merge pull request #498 from ceph/fsid-monitor-key
remove unecessary variables
2016-01-28 00:32:22 +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
Leseb 065ac72b9f Merge pull request #497 from ceph/vm-kybte
update group_vars/all.sample with min_free_kbytes
2016-01-27 23:30:56 +01:00
Sébastien Han 22d1b26f15 update group_vars/all.sample with min_free_kbytes
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-01-27 23:29:54 +01:00
Leseb 2f0c853d32 Merge pull request #490 from ceph/ansible-2
Necessary change to work on ansible v2
2016-01-25 14:09:26 +01:00
Sébastien Han 64b32020e9 Necessary change to work on ansible v2
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-01-25 11:21:30 +01:00
Leseb e86af15f21 Merge pull request #489 from ceph/vagrant-virtualbox-updates
updates related to using vagrant and virtualbox for testing
2016-01-22 13:18:15 -05:00
Andrew Schoen ec573e6ca2 update the README on using vagrant with virtualbox
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-01-22 11:09:52 -06: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
Andrew Schoen cb308d60a5 adds os_tuning_params to the vagrant_variables.yml.sample file
When using virtualbox with vagrant the default set of os_tuning_params
was locking up my vms. Specifically the vm.vfs_cache_pressure setting.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-01-22 10:58:33 -06:00
Leseb eeb2f6ccc5 Merge pull request #488 from PiotrProkop/fix
Adding python-setuptools dependency for CentOS 7.
2016-01-22 11:43:01 -05:00
pprokop cb21e4e3a3 Adding newline 2016-01-22 14:27:36 +01:00
pprokop 3cc0ea72cc Adding python-setuptools dependency for CentOS 7 2016-01-22 14:25:10 +01:00
Leseb 926249b5f7 Merge pull request #487 from mcsage/master
Changed vm.min_free_kbytes to 4 GB
2016-01-20 15:20:11 -05:00
mcsage 8b78b96df5 Changed vm.min_free_kbytes to 4 GB
vm.min_free_kbytes was in bytes not in kbytes.
2016-01-20 20:27:49 +01:00
Leseb d4a26e90e2 Merge pull request #485 from byronmccollum/conf-directory-permissions
Configurable Ceph Conf Directory Permissions
2016-01-18 08:31:54 +01:00
Byron McCollum a9dceb6ca3 Configurable Ceph Conf Directory Permissions
This change allows for configurable Ceph Conf Directory permissions. This
is required for integrators of Ceph, like OpenStack Cinder, which needs to
read from /etc/ceph for operation.
2016-01-17 17:57:09 -06:00
Leseb 4466af8c6e Merge pull request #484 from ceph/clarify-ceph-origin-repo
Clarify ceph_origin usage
2016-01-15 19:11:36 +01:00
Sébastien Han 9157656d49 Clarify ceph_origin usage
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-01-15 19:10:47 +01:00
Leseb 09336cef20 Merge pull request #483 from bengland2/rhcs_repo_template
help ansible find repo template from installs subdirectory
2016-01-15 19:10:26 +01:00
Ben England b5cdacb136 help ansible find repo template from installs subdirectory 2016-01-15 12:52:31 -05:00
Leseb a4646dd3f2 Merge pull request #478 from rootfs/systemd
systemd unit files fixes for infernalis
2016-01-13 16:22:32 +01:00
Huamin Chen 63bd78c12a review feedback: convert to yml format
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-01-13 14:13:30 +00:00
Huamin Chen 519a9e91b1 make systemd enable work for osd instance
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-01-13 00:40:56 +00:00
Huamin Chen 99c429930e make systemd enable work for mon instance
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-01-12 20:12:40 +00:00
Leseb 013f0c372a Merge pull request #476 from Logan2211/master
allow customization of debian ceph stable repo url
2016-01-12 14:11:25 +01:00
Logan V 044396369f adding repo url to group_vars/all 2016-01-12 06:38:17 -06:00
Logan V d23b27e6d7 allow customization of debian ceph stable repo url 2016-01-11 12:13:09 -06:00
Leseb 00f10c828a Merge pull request #474 from fcharlier/patch-1
Fix failing install-ansible test
2016-01-11 17:06:50 +01:00