diff options
author | kshithijiyer <kshithij.ki@gmail.com> | 2019-08-07 18:01:25 +0530 |
---|---|---|
committer | Bala Konda Reddy M <bmekala@redhat.com> | 2019-08-19 06:55:42 +0000 |
commit | d226878c78856a791ae368a588c37b170ba31aa1 (patch) | |
tree | baa2189e13c32e9332795f0e91dfc3b690c34a46 /ansible/deploy-glusto.yaml | |
parent | 7c681b4889b33ac8ad7f4e297b9c6fee56d1a316 (diff) |
Fixing issues in deploy-glusto.yaml playbook.
There were a large number of mistakes due to which
if we try to run the above playbook it failed on
the first task itself. As well as the format of
the playbook is as per a older version of ansible.
Fixing and submitting a patch for the same.
Change-Id: Ia8bd3264c290ff7abd12a9fa325d40673791ea11
Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
Diffstat (limited to 'ansible/deploy-glusto.yaml')
-rw-r--r-- | ansible/deploy-glusto.yaml | 50 |
1 files changed, 17 insertions, 33 deletions
diff --git a/ansible/deploy-glusto.yaml b/ansible/deploy-glusto.yaml index a5eb5ef71..da4571548 100644 --- a/ansible/deploy-glusto.yaml +++ b/ansible/deploy-glusto.yaml @@ -1,6 +1,7 @@ --- -- hosts: gluster_hosts +- hosts: glusto_hosts gather_facts: no + remote_user: root tasks: - name: Add EPEL repository @@ -8,33 +9,21 @@ name: epel description: EPEL YUM repo mirrorlist: https://mirrors.fedoraproject.org/mirrorlist?repo=epel-7&arch=$basearch - enabled: no - gpgcheck: no - name: Install required packages yum: - name: "{{ item }}" - state: present - disablerepo: "epel" - with_items: - - git - - yum-plugin-copr + name: ['git', 'yum-plugin-copr','python-pip','gcc','python-devel'] + state: latest - name: Install EPEL required packages yum: - name: "{{ item }}" + name: "python-pip" state: present - enablerepo: "epel" - with_items: - - python-pip - name: upgrade setuptools pip: - name: "{{ item }}" + name: ['setuptools','six'] extra_args: --upgrade - with_items: - - setuptools - - six - name: enable copr repo shell: yum copr enable sac/gdeploy -y @@ -44,22 +33,17 @@ name: gdeploy state: latest - - name: clone glusto, glusto-tests + - name: Install Glusto + pip: name=' git+git://github.com/loadtheaccumulator/glusto.git' editable=false + + - name: Clone the glusto-tests repo. git: - repo: "{{ item.repo }}" - dest: "{{ item.dest }}" - depth: 1 - with_items: - - {repo: "http://review.gluster.org/glusto-tests", dest: "~/glusto-tests" } - - {repo: "https://github.com/loadtheaccumulator/glusto.git", dest: "~/glusto" } + repo: git://review.gluster.org/glusto-tests.git + dest: /root/glusto-tests - - name: setup glusto-test - shell: python setup.py install - args: - chdir: "{{ item }}" + - name: Install glustolibs + command: "python setup.py develop chdir=/root/glusto-tests/{{item}}" with_items: - - ~/glusto - - ~/glusto-tests/glustolibs-gluster/ - - ~/glusto-tests/glustolibs-io/ - - ~/glusto-tests/glustolibs-misc/ - + - glustolibs-gluster + - glustolibs-io + - glustolibs-misc |