]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Control when ceph packages get updated 508/head
authorMatt Thompson <mattt@defunct.ca>
Fri, 29 Jan 2016 15:54:59 +0000 (15:54 +0000)
committerMatt Thompson <mattt@defunct.ca>
Tue, 2 Feb 2016 09:56:40 +0000 (09:56 +0000)
commita227a50ab238785b4ffbd3e3b69790e70e8aa7fc
tree3cfc97a95b2e8935e5a83d6d6184ebd4888e1626
parent2665c43f346f2bd7c021f0814cfb5c50a145ae70
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
group_vars/all.sample
roles/ceph-common/defaults/main.yml
roles/ceph-common/tasks/installs/install_on_debian.yml
roles/ceph-common/tasks/installs/install_on_redhat.yml
rolling_update.yml