remove ceph-common-coreos role

This role is not maintained and not tested so removing it.

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/3311/head
Sébastien Han 2018-11-01 12:52:00 +01:00 committed by mergify[bot]
parent f9ddc27cd5
commit d749dc9f36
8 changed files with 0 additions and 137 deletions

View File

@ -1,3 +0,0 @@
# Ansible role: ceph-common
Documentation is available at http://docs.ceph.com/ceph-ansible/.

View File

@ -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

View File

@ -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: []

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 "\$@"\

View File

@ -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 "\$@"\