Skip to content

Commit

Permalink
CEPHSTORA-222 Use Ansible 2.5.2.0
Browse files Browse the repository at this point in the history
This PR reorganizes how we adopt plugins to facilitate ansible 2.5.2.0
Primarly, we no longer need all the plugins from OSA for Ceph to work,
since the config_template plugin has moved. To address this the PR
moves the osa-plugins repo dependency to the tests role requirements,
and installs a separate config_template role dependency.

This allows us to use ceph-ansible v3.0.x with Ansible 2.5.

Additionally, as part of getting ready for the release of ceph-ansible
v3.1.0 we should adopt the paths for the ceph-ansible library, callback
and actions plugins.
  • Loading branch information
andymcc committed May 17, 2018
1 parent 07954e8 commit 414b86b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ versions of ``ceph-ansible`` used in RPC deployments.

### **ceph-ansible version:** v3.0.33

### **Ansible version:** 2.4.4.0
### **Ansible version:** 2.5.1.0

## What is rpc-ceph?

Expand Down
7 changes: 0 additions & 7 deletions ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
library = /etc/ansible/ceph_plugins/library:/etc/ansible/ceph_roles/ceph-ansible/library
# set plugin path directories here, separate with colons
action_plugins = /etc/ansible/ceph_plugins/action:/etc/ansible/ceph_roles/ceph-ansible/plugins/actions
cache_plugins = /etc/ansible/ceph_plugins/cache
callback_plugins = /etc/ansible/ceph_plugins/callback:/etc/ansible/ceph_roles/ceph-ansible/plugins/callback
connection_plugins = /etc/ansible/ceph_plugins/connection
lookup_plugins = /etc/ansible/ceph_plugins/lookup
inventory_plugins = /etc/ansible/ceph_plugins/inventory
vars_plugins = /etc/ansible/ceph_plguins/vars_plugins
filter_plugins = /etc/ansible/ceph_plugins/filter
test_plugins = /etc/ansible/ceph_plugins/test
terminal_plugins = /etc/ansible/ceph_plugins/terminal
strategy_plugins = /etc/ansible/ceph_plugins/strategy
roles_path = /etc/ansible/ceph_roles/ceph-ansible/roles:/etc/ansible/ceph_roles:/etc/ansible/roles
2 changes: 1 addition & 1 deletion phobos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ From the root of the rpc-ceph repo clone:
* set `client_count` to the number of clients desired.

```bash
$ pip install -r requirements.txt ansible==2.4.3.0
$ pip install -r requirements.txt ansible==2.5.2.0
$ ansible-playbook -e cluster_deploy_version=perf-v01 \
-e ssh_keyname=mykey \
-e stor_count=3 \
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap-ansible.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -e -u -x

export ANSIBLE_PACKAGE=${ANSIBLE_PACKAGE:-"ansible==2.4.4.0"}
export ANSIBLE_PACKAGE=${ANSIBLE_PACKAGE:-"ansible==2.5.2.0"}
export SSH_DIR=${SSH_DIR:-"/root/.ssh"}
export ANSIBLE_ROLE_FILE=${ANSIBLE_ROLE_FILE:-"ansible-role-requirements.yml"}
# Set the role fetch mode to any option [git-clone]
Expand Down
4 changes: 4 additions & 0 deletions tests/ansible-role-test-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
src: https://git.openstack.org/openstack/openstack-ansible-lxc_hosts
scm: git
version: stable/pike
- name: ../ceph_plugins
scm: git
src: https://git.openstack.org/openstack/openstack-ansible-plugins
version: 587eea909c0a27a9f6015b31d14077dcc14943bb
- name: lxc_container_create
src: https://git.openstack.org/openstack/openstack-ansible-lxc_container_create
scm: git
Expand Down

0 comments on commit 414b86b

Please sign in to comment.