From d749dc9f365643f0be171efb7f934be7d763582f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Thu, 1 Nov 2018 12:52:00 +0100 Subject: [PATCH] remove ceph-common-coreos role MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This role is not maintained and not tested so removing it. Signed-off-by: Sébastien Han --- roles/ceph-common-coreos/README.md | 3 -- roles/ceph-common-coreos/defaults/main.yml | 7 --- roles/ceph-common-coreos/meta/main.yml | 13 ------ .../ceph-common-coreos/tasks/install_pip.yml | 41 ----------------- .../ceph-common-coreos/tasks/install_pypy.yml | 44 ------------------- roles/ceph-common-coreos/tasks/main.yml | 18 -------- .../templates/install_pip.sh.j2 | 6 --- .../templates/install_python.sh.j2 | 5 --- 8 files changed, 137 deletions(-) delete mode 100644 roles/ceph-common-coreos/README.md delete mode 100644 roles/ceph-common-coreos/defaults/main.yml delete mode 100644 roles/ceph-common-coreos/meta/main.yml delete mode 100644 roles/ceph-common-coreos/tasks/install_pip.yml delete mode 100644 roles/ceph-common-coreos/tasks/install_pypy.yml delete mode 100644 roles/ceph-common-coreos/tasks/main.yml delete mode 100644 roles/ceph-common-coreos/templates/install_pip.sh.j2 delete mode 100644 roles/ceph-common-coreos/templates/install_python.sh.j2 diff --git a/roles/ceph-common-coreos/README.md b/roles/ceph-common-coreos/README.md deleted file mode 100644 index cd55804f2..000000000 --- a/roles/ceph-common-coreos/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Ansible role: ceph-common - -Documentation is available at http://docs.ceph.com/ceph-ansible/. diff --git a/roles/ceph-common-coreos/defaults/main.yml b/roles/ceph-common-coreos/defaults/main.yml deleted file mode 100644 index 6263de700..000000000 --- a/roles/ceph-common-coreos/defaults/main.yml +++ /dev/null @@ -1,7 +0,0 @@ -coreos_pypy_version: 4.0.1 -coreos_pypy_arch: linux64 -coreos_pypy_url: https://bitbucket.org/pypy/pypy/downloads/pypy-{{coreos_pypy_version}}-{{coreos_pypy_arch}}.tar.bz2 -pypy_directory: /opt/pypy -pypy_binary_directory: /opt/bin -pip_url: https://bootstrap.pypa.io/get-pip.py -local_temp_directory: /tmp diff --git a/roles/ceph-common-coreos/meta/main.yml b/roles/ceph-common-coreos/meta/main.yml deleted file mode 100644 index 3fa2e94cb..000000000 --- a/roles/ceph-common-coreos/meta/main.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -galaxy_info: - author: Sébastien Han - description: Installs pre-requesite on Ceph for coreos - license: Apache - min_ansible_version: 2.4 - platforms: - - name: EL - versions: - - 7 - galaxy_tags: - - system -dependencies: [] diff --git a/roles/ceph-common-coreos/tasks/install_pip.yml b/roles/ceph-common-coreos/tasks/install_pip.yml deleted file mode 100644 index c2c85bb28..000000000 --- a/roles/ceph-common-coreos/tasks/install_pip.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -- name: download get_pip.py - raw: cd $HOME && https_proxy="{{ lookup('env', 'https_proxy') }}" wget {{pip_url}} - -- name: run get-pip.py - raw: "{{pypy_binary_directory}}/python $HOME/get-pip.py --proxy='{{ lookup('env', 'https_proxy') }}'" - -- name: create local temp directory - local_action: - module: raw - mkdir -p {{local_temp_directory}} - become: no - -- name: prepare install_pip.sh - local_action: - module: template - src: install_pip.sh.j2 - dest: "{{local_temp_directory}}/install_pip.sh" - become: no - -- name: run pip.sh - script: "{{local_temp_directory}}/install_pip.sh" - -- name: add execute permission - raw: chmod a+x {{pypy_directory}}/pip - -- name: create pypy_directory - raw: mkdir -p {{pypy_binary_directory}} - -- name: move python to binary directory - raw: mv {{pypy_directory}}/pip {{pypy_binary_directory}}/pip - -- name: create .pip - raw: touch $HOME/.pip - -- name: remove pip.sh - local_action: - module: file - path: "{{local_temp_directory}}/pip.sh" - state: absent - become: no diff --git a/roles/ceph-common-coreos/tasks/install_pypy.yml b/roles/ceph-common-coreos/tasks/install_pypy.yml deleted file mode 100644 index 41b6e6fd1..000000000 --- a/roles/ceph-common-coreos/tasks/install_pypy.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -- name: download python - raw: cd $HOME && https_proxy="{{ lookup('env', 'https_proxy') }}" wget -O - {{coreos_pypy_url}} |tar -xjf - - -- name: create pypy_directory - raw: mkdir -p {{pypy_binary_directory}} - -- name: move pypy to pypy_install_directory - raw: mv $HOME/pypy-{{coreos_pypy_version}}-{{coreos_pypy_arch}} {{pypy_directory}} - -- name: create local temp directory - local_action: - module: raw - mkdir -p {{local_temp_directory}} - become: no - -- name: prepare python executable - local_action: - module: template - src: install_python.sh.j2 - dest: "{{local_temp_directory}}/install_python.sh" - become: no - -- name: fix library - raw: ln -s /lib64/libncurses.so.5.9 {{pypy_directory}}/lib_pypy/libtinfo.so.5 - -- name: run install_python.sh - script: "{{local_temp_directory}}/install_python.sh" - -- name: add execute permission - raw: chmod a+x {{pypy_directory}}/python - -- name: move python to binary directory - raw: mv {{pypy_directory}}/python {{pypy_binary_directory}}/python - -- name: create .python - raw: touch $HOME/.python - -- name: remove install_python.sh - local_action: - module: file - path: "{{local_temp_directory}}/install_python.sh" - state: absent - become: no diff --git a/roles/ceph-common-coreos/tasks/main.yml b/roles/ceph-common-coreos/tasks/main.yml deleted file mode 100644 index 38ae82ce6..000000000 --- a/roles/ceph-common-coreos/tasks/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- name: check if there is python - raw: stat $HOME/.python - register: need_python - ignore_errors: true - check_mode: no - -- include_tasks: install_pypy.yml - when: need_python | failed - -- name: check if there is pip - raw: stat $HOME/.pip - register: need_pip - ignore_errors: true - check_mode: no - -- include_tasks: install_pip.yml - when: need_pip | failed and need_python | failed diff --git a/roles/ceph-common-coreos/templates/install_pip.sh.j2 b/roles/ceph-common-coreos/templates/install_pip.sh.j2 deleted file mode 100644 index af7bc59f0..000000000 --- a/roles/ceph-common-coreos/templates/install_pip.sh.j2 +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - - -cat > {{pypy_directory}}/pip << EOF -#!/bin/bash -LD_LIBRARY_PATH={{pypy_directory}}/lib_pypy:$LD_LIBRARY_PATH exec {{pypy_directory}}/bin/pip "\$@"\ \ No newline at end of file diff --git a/roles/ceph-common-coreos/templates/install_python.sh.j2 b/roles/ceph-common-coreos/templates/install_python.sh.j2 deleted file mode 100644 index 04c14f0fa..000000000 --- a/roles/ceph-common-coreos/templates/install_python.sh.j2 +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -cat > {{pypy_directory}}/python << EOF -#!/bin/bash -LD_LIBRARY_PATH={{pypy_directory}}/lib_pypy:$LD_LIBRARY_PATH exec {{pypy_directory}}/bin/pypy "\$@"\