]>
git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
Leseb [Wed, 24 Feb 2016 09:55:18 +0000 (10:55 +0100)]
Merge pull request #560 from stpierre/cephx-false-skip-key-permissions
Cephx false skip key permissions
Leseb [Wed, 24 Feb 2016 09:42:36 +0000 (10:42 +0100)]
Merge pull request #528 from bengland2/iso_mount
make sure /etc/fstab is always valid at boot time no matter what
Ben England [Tue, 23 Feb 2016 21:43:45 +0000 (16:43 -0500)]
revert absent->unmounted as leseb requested
Leseb [Tue, 23 Feb 2016 18:36:47 +0000 (19:36 +0100)]
Merge pull request #558 from stpierre/firewall-check-improvements
Improve firewall checks
Chris St. Pierre [Tue, 23 Feb 2016 16:27:55 +0000 (10:27 -0600)]
Improve firewall checks
The firewall checks can fail for any number of reasons -- e.g., the
ceph cluster hostnames are unresolvable from the ansible host, or the
ports are filtered by some intermediate hop, etc. Make two changes to
make those checks better:
* Set pipefail when running the checks, so if nmap itself fails the
command will be marked as 'failed'. Specifically, this fixes the
case where the hostnames cannot be resolved.
* Add a new variable, check_firewall, which can be used to disable
checks entirely. Specifically, this fixes the case where some
intermediate firewall filters the ports, so nmap returns "filtered".
Chris St. Pierre [Tue, 23 Feb 2016 17:33:03 +0000 (11:33 -0600)]
Do not set key permissions with cephx: false
If cephx is set to false, the "set keys permissions" task fails with:
file ({# ceph_keys.stdout_lines #}) is absent, cannot continue
This skips that step when cephx is false.
Leseb [Sun, 21 Feb 2016 18:15:19 +0000 (19:15 +0100)]
Merge pull request #554 from ceph/octal-file-perms
Octal file perms
Sébastien Han [Sun, 21 Feb 2016 17:25:42 +0000 (18:25 +0100)]
ceph-osd: use fact logic to set permissions
Signed-off-by: Sébastien Han <seb@redhat.com>
Sébastien Han [Sun, 21 Feb 2016 17:21:19 +0000 (18:21 +0100)]
Octal file permissions must contain leading zero
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Thu, 18 Feb 2016 17:08:27 +0000 (18:08 +0100)]
Merge pull request #551 from ceph/add-ceph-fetch-key
contrib: add ceph-fetch-keys
Sébastien Han [Thu, 18 Feb 2016 17:07:43 +0000 (18:07 +0100)]
contrib: add ceph-fetch-keys
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Thu, 18 Feb 2016 16:52:57 +0000 (17:52 +0100)]
Merge pull request #550 from ceph/fetch-keys-role
Adds a new role, ceph-fetch-keys
Andrew Schoen [Thu, 18 Feb 2016 15:39:18 +0000 (09:39 -0600)]
a playbook to add an OSD to an existing cluster
The playbook uses the ceph-fetch-keys role to connect to the mons and
retrieve keys for the OSD bootstrapping. Ensure that all your mons for
the cluster you're adding the OSD to is in your inventory in the mons
group. This ensures that a proper ceph.conf is created for the new OSD.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Wed, 17 Feb 2016 22:15:57 +0000 (16:15 -0600)]
Adds a new ceph-fetch-keys role
The purpose of this is so we can connect to the mons and gather the keys
needed to configure an OSD or additonal MON without having to reconfigure
the existing mons at the same time.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Leseb [Thu, 18 Feb 2016 12:58:30 +0000 (13:58 +0100)]
Merge pull request #549 from retspen/master
Added support parallels provider
retspen [Thu, 18 Feb 2016 11:58:33 +0000 (13:58 +0200)]
Added support parallels provider
Leseb [Wed, 17 Feb 2016 09:26:18 +0000 (10:26 +0100)]
Merge pull request #548 from ceph/more-tags
adds some more --package-install tags; make check_mandatory_vars more specific
Andrew Schoen [Mon, 15 Feb 2016 21:29:06 +0000 (15:29 -0600)]
make mandatory variable checks only apply when needed
In our use case we might only be configuring mons and not osds in the
same call, so we don't want to check variables needed for osds when they
are not needed to configure a mon.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 12 Feb 2016 21:32:48 +0000 (15:32 -0600)]
add the package-install tags to some tasks in check_mandatory_vars
We'll want these checks to always run when we're installing packages
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Leseb [Tue, 16 Feb 2016 15:27:23 +0000 (16:27 +0100)]
Merge pull request #543 from ceph/min_free_kbytes
ceph-common: calculate vm.min_free_kbytes
Sébastien Han [Tue, 16 Feb 2016 14:48:28 +0000 (15:48 +0100)]
ceph-common: use stdout for the register var
Signed-off-by: Sébastien Han <seb@redhat.com>
Sébastien Han [Tue, 16 Feb 2016 14:40:49 +0000 (15:40 +0100)]
ceph-common: do not calculate vm.min_free_kbytes
we preserve the default kernel value.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Tue, 16 Feb 2016 13:10:10 +0000 (14:10 +0100)]
Merge pull request #542 from KGoreczny/upgrade_purge_cluster
Rewrite purge-cluster playbook
Leseb [Tue, 16 Feb 2016 13:08:26 +0000 (14:08 +0100)]
Merge pull request #546 from ceph/separate-agent
separate the agent so it doesn't break standard installs
KGoreczny [Tue, 16 Feb 2016 12:41:58 +0000 (13:41 +0100)]
Unify quotation marks
Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>
Alfredo Deza [Tue, 16 Feb 2016 12:12:07 +0000 (07:12 -0500)]
remove the agent from the mons
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Tue, 16 Feb 2016 12:09:54 +0000 (07:09 -0500)]
separate the agent so it doesn't break standard installs
Mainly because some packages are still not there for upstream which will cause
it to break installs that would otherwise would succeed
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Leseb [Mon, 15 Feb 2016 16:43:37 +0000 (17:43 +0100)]
Merge pull request #544 from ceph/contrib-rhscon
contrib: add the ceph-agent
Leseb [Mon, 15 Feb 2016 16:43:25 +0000 (17:43 +0100)]
Merge pull request #539 from ceph/rhscon-support
rhscon (storage agent)
Alfredo Deza [Mon, 15 Feb 2016 16:42:01 +0000 (11:42 -0500)]
gitignore group_vars/agent
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Sébastien Han [Mon, 15 Feb 2016 16:11:03 +0000 (17:11 +0100)]
contrib: add the ceph-agent
Signed-off-by: Sébastien Han <seb@redhat.com>
KGoreczny [Mon, 15 Feb 2016 15:51:16 +0000 (16:51 +0100)]
Add dnf package support; change condition checks for package managers
Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>
KGoreczny [Mon, 15 Feb 2016 15:01:00 +0000 (16:01 +0100)]
Use yum and apt modules instead of package to provide Ansible <2.0 support; fix typo
Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>
Sébastien Han [Mon, 15 Feb 2016 14:05:42 +0000 (15:05 +0100)]
ceph-common: update group_vars vm.min_free_kbytes
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Mon, 15 Feb 2016 14:04:37 +0000 (15:04 +0100)]
Merge pull request #541 from haasn/master
ceph-common: use explicit action syntax for config_template
Sébastien Han [Mon, 15 Feb 2016 14:03:10 +0000 (15:03 +0100)]
ceph-common: calculate vm.min_free_kbytes
based on the os memory we calculate the value for vm.min_free_kbytes
Signed-off-by: Sébastien Han <seb@redhat.com>
Krzysztof Goreczny [Wed, 10 Feb 2016 12:13:39 +0000 (13:13 +0100)]
Rewrite purge-cluster playbook
Signed-off-by: Krzysztof Goreczny <krzysztof.goreczny@intel.com>
Alfredo Deza [Mon, 15 Feb 2016 12:58:02 +0000 (07:58 -0500)]
use the agent on monitors on site.yml.sample
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Mon, 15 Feb 2016 12:52:46 +0000 (07:52 -0500)]
create a group_vars agent sample file
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Mon, 15 Feb 2016 12:50:09 +0000 (07:50 -0500)]
fix wording on defaults main.yml
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Mon, 15 Feb 2016 12:49:03 +0000 (07:49 -0500)]
only check for subscription manager on RH systems
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Niklas Haas [Sun, 14 Feb 2016 19:58:04 +0000 (20:58 +0100)]
ceph-common: use explicit action syntax for config_template
This fails with "ERROR! no action detected in task" otherwise.
Leseb [Sat, 13 Feb 2016 22:19:50 +0000 (23:19 +0100)]
Merge pull request #540 from ceph/fix-autodiscover-osd
ceph-osd: fix the autodiscovery osd scenario
Sébastien Han [Sat, 13 Feb 2016 22:07:44 +0000 (23:07 +0100)]
ceph-osd: fix the autodiscovery osd scenario
the parted command wasn't getting the devices properly and the partition
count is not necessary.
Signed-off-by: Sébastien Han <seb@redhat.com>
Alfredo Deza [Fri, 12 Feb 2016 20:54:56 +0000 (15:54 -0500)]
check for subscription manager
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Fri, 12 Feb 2016 20:37:06 +0000 (15:37 -0500)]
create the task to install and configure the agent
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Fri, 12 Feb 2016 18:24:46 +0000 (13:24 -0500)]
better reword the master host variable
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Fri, 12 Feb 2016 18:08:32 +0000 (13:08 -0500)]
create a template for the ceph agent minion
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Fri, 12 Feb 2016 17:01:51 +0000 (12:01 -0500)]
define the supported versions
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Fri, 12 Feb 2016 16:53:15 +0000 (11:53 -0500)]
initial files for the ceph-agent role
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Leseb [Fri, 12 Feb 2016 14:56:30 +0000 (15:56 +0100)]
Merge pull request #538 from ceph/galaxy-requirements
add a galaxy dependency file example
Sébastien Han [Fri, 12 Feb 2016 14:55:42 +0000 (15:55 +0100)]
add a galaxy dependency file example
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Fri, 12 Feb 2016 00:08:09 +0000 (01:08 +0100)]
Merge pull request #536 from ceph/fix-auto-discover-disk
ceph-osd: fix the auto discovery scenario
Sébastien Han [Thu, 11 Feb 2016 23:54:09 +0000 (00:54 +0100)]
ceph-osd: fix register variable
as stated in https://github.com/ansible/ansible/issues/4297
if we register a variable twice and even if a task is skipped the
register will not get overwritten... So we use the fact variant as
mentionned in the ansible issue.
Signed-off-by: Sébastien Han <seb@redhat.com>
Sébastien Han [Thu, 11 Feb 2016 21:51:23 +0000 (22:51 +0100)]
ceph-osd: simply the regex to check the device
Signed-off-by: Sébastien Han <seb@redhat.com>
Sébastien Han [Thu, 11 Feb 2016 21:40:59 +0000 (22:40 +0100)]
ceph-osd: fix the auto discovery scenario
While this is not widly used (AFAIK :p) the feature was broken. Thanks
to @zmc for reporting it. You can now set `osd_auto_discovery` to
true in your group_vars/osd and it will go through all the devices
available and will make them OSDs.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Thu, 11 Feb 2016 20:25:14 +0000 (21:25 +0100)]
Merge pull request #535 from dang/rgw_addr
Allow RGW and client VMs together
Daniel Gryniewicz [Thu, 11 Feb 2016 20:16:13 +0000 (15:16 -0500)]
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.
Leseb [Thu, 11 Feb 2016 16:59:07 +0000 (17:59 +0100)]
Merge pull request #534 from ceph/fix-osd-typo
ceph-osd: docker: fix type
Sébastien Han [Thu, 11 Feb 2016 16:57:10 +0000 (17:57 +0100)]
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>
Leseb [Thu, 11 Feb 2016 16:52:04 +0000 (17:52 +0100)]
Merge pull request #533 from ceph/use-ansible-version
use the ansible_version variable
Sébastien Han [Thu, 11 Feb 2016 16:34:44 +0000 (17:34 +0100)]
use the ansible_version variable
use the builtin variable to check the ansible version
Signed-off-by: Sébastien Han <seb@redhat.com>
Sébastien Han [Wed, 10 Feb 2016 22:57:01 +0000 (23:57 +0100)]
Merge branch 'master' of github.com:ceph/ceph-ansible
Leseb [Tue, 9 Feb 2016 13:05:05 +0000 (14:05 +0100)]
Merge pull request #526 from mattt416/issue_525
Change modes to string values
Ben England [Tue, 9 Feb 2016 20:02:55 +0000 (15:02 -0500)]
make sure /etc/fstab is always valid at boot time no matter what
Leseb [Tue, 9 Feb 2016 13:05:05 +0000 (14:05 +0100)]
Merge pull request #526 from mattt416/issue_525
Change modes to string values
Matt Thompson [Tue, 9 Feb 2016 09:51:31 +0000 (09:51 +0000)]
Change modes to string values
Currently deploying a MON fails with "bad symbolic permission for mode"
errors due to the file/directory modes not being interpreted as octal
values. This commit updates roles/ceph-common/tasks/main.yml to set
the file/directory modes to strings so they can be interpreted
correctly.
Closes issue #525
Leseb [Mon, 8 Feb 2016 14:26:14 +0000 (15:26 +0100)]
Merge pull request #524 from ceph/fix-typo
ceph-rgw: fix docker typo
Sébastien Han [Mon, 8 Feb 2016 14:25:24 +0000 (15:25 +0100)]
ceph-rgw: fix docker typo
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Sun, 7 Feb 2016 21:36:38 +0000 (22:36 +0100)]
Merge pull request #521 from ceph/vagrant-container
ceph-ansible: allow to run containerized daemons
Sébastien Han [Sun, 7 Feb 2016 21:30:32 +0000 (22:30 +0100)]
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>
Leseb [Fri, 5 Feb 2016 16:22:14 +0000 (17:22 +0100)]
Merge pull request #519 from ceph/restapi-meta
ceph-restapi: fix meta file
Sébastien Han [Fri, 5 Feb 2016 16:19:54 +0000 (17:19 +0100)]
ceph-restapi: fix meta file
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Fri, 5 Feb 2016 15:41:35 +0000 (16:41 +0100)]
Merge pull request #512 from guits/quick_fix
Refact code using `set_fact` to handle 'legacy' versions
Guillaume Abrioux [Tue, 2 Feb 2016 14:10:24 +0000 (15:10 +0100)]
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.
Leseb [Thu, 4 Feb 2016 14:31:12 +0000 (15:31 +0100)]
Merge pull request #516 from ceph/ansible-v2-warnings
ceph-common: replace 'sudo' by 'become'
Sébastien Han [Thu, 4 Feb 2016 11:36:46 +0000 (12:36 +0100)]
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>
Leseb [Wed, 3 Feb 2016 17:42:39 +0000 (18:42 +0100)]
Merge pull request #514 from ceph/pkg-install-tags
Adds a package-install tag to all installation tasks
Andrew Schoen [Wed, 3 Feb 2016 17:27:16 +0000 (11:27 -0600)]
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>
Leseb [Tue, 2 Feb 2016 14:16:03 +0000 (15:16 +0100)]
Merge pull request #508 from mattt416/upgrade_flag
Control when ceph packages get updated
Leseb [Tue, 2 Feb 2016 12:28:41 +0000 (13:28 +0100)]
Merge pull request #511 from ceph/use-pythonuuid
ceph-common: use a generic way to create uuid
Sébastien Han [Tue, 2 Feb 2016 10:23:28 +0000 (11:23 +0100)]
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>
Matt Thompson [Fri, 29 Jan 2016 15:54:59 +0000 (15:54 +0000)]
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
Leseb [Fri, 29 Jan 2016 15:45:51 +0000 (16:45 +0100)]
Merge pull request #493 from ceph/sudo-test
CI does not use root, but sudo will do fine
Sébastien Han [Fri, 29 Jan 2016 00:15:32 +0000 (01:15 +0100)]
fix type on ice template
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Fri, 29 Jan 2016 00:03:04 +0000 (01:03 +0100)]
Merge pull request #502 from ceph/use-dnf
use dnf when yum is not available
Sébastien Han [Thu, 28 Jan 2016 18:11:22 +0000 (19:11 +0100)]
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>
Andrew Schoen [Wed, 27 Jan 2016 18:58:07 +0000 (12:58 -0600)]
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>
Alfredo Deza [Tue, 26 Jan 2016 12:10:41 +0000 (07:10 -0500)]
create a single-machine inventory for testing
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Mon, 25 Jan 2016 23:00:12 +0000 (18:00 -0500)]
CI does not use root, but sudo will do fine
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Leseb [Thu, 28 Jan 2016 17:51:42 +0000 (18:51 +0100)]
Merge pull request #501 from ceph/common-defaults
Add defaults for ceph_stable_ice_tmp_path and ceph_stable_ice_kmod
Andrew Schoen [Thu, 28 Jan 2016 17:40:18 +0000 (11:40 -0600)]
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>
Leseb [Thu, 28 Jan 2016 14:56:46 +0000 (15:56 +0100)]
Merge pull request #500 from ceph/python-pip
Fix pip package name on debian
Sébastien Han [Thu, 28 Jan 2016 14:55:53 +0000 (15:55 +0100)]
Fix pip package name on debian
use python-pip and not pip
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Wed, 27 Jan 2016 23:32:22 +0000 (00:32 +0100)]
Merge pull request #498 from ceph/fsid-monitor-key
remove unecessary variables
Sébastien Han [Wed, 27 Jan 2016 22:58:51 +0000 (23:58 +0100)]
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>
Leseb [Wed, 27 Jan 2016 22:30:56 +0000 (23:30 +0100)]
Merge pull request #497 from ceph/vm-kybte
update group_vars/all.sample with min_free_kbytes
Sébastien Han [Wed, 27 Jan 2016 22:29:54 +0000 (23:29 +0100)]
update group_vars/all.sample with min_free_kbytes
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Mon, 25 Jan 2016 13:09:26 +0000 (14:09 +0100)]
Merge pull request #490 from ceph/ansible-2
Necessary change to work on ansible v2
Sébastien Han [Fri, 22 Jan 2016 16:43:47 +0000 (11:43 -0500)]
Necessary change to work on ansible v2
Signed-off-by: Sébastien Han <seb@redhat.com>