mirror of https://github.com/ceph/ceph-ansible.git
commit
8ec5b773db
|
@ -0,0 +1,51 @@
|
|||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: GnuPG v1.4.11 (GNU/Linux)
|
||||
|
||||
mQINBFJxnXIBEAC4QhhJgpTJFeZ9pHLuGseS2C/MQwYzcSyJEoJoEnbooS8uwNZt
|
||||
fMHBwcacML/Yq7CkVCXYbMM1tQVTTU31wnAZIb5nrvYHL4MNWoTzEFIEjAD0VHZW
|
||||
bRmydFa9aDNjwrVE4xXhvMClmrv51we4qW+Ht5s3I8nn+hJRc6oeFKw7FhYqAsyL
|
||||
htYRzNg0Ji+MiqBgeAC6IEwmKK/lsmz4FK/5RLnu9tKMJhziQZNQbHvv5pntVcnI
|
||||
M4UJdUtepaf/GUk256MmFW1Qmfv2KxUlEcms1fPusBFjQDnCZi+qRuezTjpPsLAx
|
||||
ramqc8Dj6NfylSm374CKnkpQSB6Mn+78cwr2SzUB3mUoXq/IgZ3RRhNhVV6NzZpM
|
||||
u9IvHE+xL80c/eGXgIx/q8uP8Mmi3PJxt+WS+X0m5pvbIEFZ305vya6ovlUK+kIV
|
||||
MnWj8jcMIgFO2LM+UM51W5jrFjmgB/GcIof2G3iddM6r+ZGCqqzw/8blGwOy+sny
|
||||
FsOQ1wwb4/ew2ehxU7fDSH/3Ohujs+2qVOsQUUSx6upm5cGLyJzF8YgqRz7NkPG/
|
||||
7d9XA3OaO8tV5NtwU2jKInOeUUA56iAqQbY/StJIKMTCBe9263sHGIw2B1QnEHce
|
||||
ALgQ5rxajBs2qfkweFYhax5LjRkMmtmpJ/Qknyryy0DpBPorxbu3byAlEwARAQAB
|
||||
tB1Jbmt0YW5rIDxyZWxlYXNlQGlua3RhbmsuY29tPokCOAQTAQIAIgUCUnGdcgIb
|
||||
AwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQVDjHAZ3O7q26CQ/9GELVHFtD
|
||||
VSAYeYoDxpiKf9/8ZWzdKhF9XAc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
||||
KlnNRKxeDgU6NN27y6DKIzzrdpz36yNaFtdn3O0XcNzayj80qJTLNA96nI0bcpoy
|
||||
xvbSx50M7NRbYugFLkz54bo8U3fOXKdw7qC2eLqhq1RvQEt05qz1EvwA9Is=
|
||||
=0eqL
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
|
@ -22,6 +22,12 @@
|
|||
state=present
|
||||
when: ceph_dev
|
||||
|
||||
- name: Install Intank Ceph Enterprise repository key
|
||||
apt_key: >
|
||||
data="{{ lookup('file', 'cephstableice.asc') }}"
|
||||
state=present
|
||||
when: ceph_stable_ice
|
||||
|
||||
- name: Add Ceph stable repository
|
||||
apt_repository: >
|
||||
repo="deb http://ceph.com/debian-{{ ceph_stable_release }}/ {{ ansible_lsb.codename }} main"
|
||||
|
@ -34,6 +40,12 @@
|
|||
state=present
|
||||
when: ceph_dev
|
||||
|
||||
- name: Add Inktank Ceph Enterprise repository
|
||||
apt_repository: >
|
||||
repo="deb file://{{ ceph_stable_ice_temp_path }} {{ ansible_lsb.codename }} main"
|
||||
state=present
|
||||
when: ceph_stable_ice
|
||||
|
||||
- name: Install Ceph
|
||||
apt: >
|
||||
pkg={{ item }}
|
||||
|
|
|
@ -20,6 +20,12 @@
|
|||
state=present
|
||||
when: ceph_dev
|
||||
|
||||
- name: Install Inktank Ceph Enterprise repository key
|
||||
rpm_key: >
|
||||
key=file://{{ ceph_stable_ice_temp_path }}/*/release.asc
|
||||
state=present
|
||||
when: ceph_stable_ice
|
||||
|
||||
- name: Add Ceph stable repository
|
||||
command: "rpm -U http://ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.el6.noarch.rpm creates=/etc/yum.repos.d/ceph.repo"
|
||||
when: ceph_stable
|
||||
|
@ -28,39 +34,9 @@
|
|||
command: "rpm -U http://gitbuilder.ceph.com/ceph-rpm-{{ ceph_dev_redhat_distro }}-x86_64-basic/ref/{{ ceph_dev_branch }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro }}.noarch.rpm creates=/etc/yum.repos.d/ceph.repo"
|
||||
when: ceph_dev
|
||||
|
||||
- name: Create package directory
|
||||
file: >
|
||||
path=/tmp/ice_repo
|
||||
state=directory
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
when: ceph_stable_ice
|
||||
|
||||
- name: Get ICE packages
|
||||
get_url: >
|
||||
url_username={{ ceph_stable_ice_user }}
|
||||
url_password={{ ceph_stable_ice_password }}
|
||||
url=https://download.inktank.com/enterprise/{{ ceph_stable_ice_version }}/ICE-{{ ceph_stable_ice_version }}-rhel7.tar.gz
|
||||
dest=/tmp/ice_repo/ICE-{{ ceph_stable_ice_version }}-rhel7.tar.gz
|
||||
when: ceph_stable_ice
|
||||
|
||||
- name: Stat extracted repo files
|
||||
stat: >
|
||||
path=/tmp/ice_repo/repodata/repomd.xml
|
||||
register: repo_exist
|
||||
|
||||
- name: Extract packages
|
||||
shell: cd /tmp/ice_repo && tar -xzf ICE-{{ ceph_stable_ice_version }}-rhel7.tar.gz
|
||||
when: ceph_stable_ice and repo_exist.stat.exists == False
|
||||
|
||||
- name: Move the extracted packages
|
||||
shell: mv /tmp/ice_repo/ceph/*/* /tmp/ice_repo
|
||||
when: ceph_stable_ice and repo_exist.stat.exists == False
|
||||
|
||||
- name: Create repository
|
||||
- name: Add Inktank Ceph Enterprise repository
|
||||
template: >
|
||||
src=ice.repo.j2
|
||||
src=redhat_ice_repo.j2
|
||||
dest=/etc/yum.repos.d/ice.repo
|
||||
owner=root
|
||||
group=root
|
||||
|
|
|
@ -11,14 +11,6 @@
|
|||
fail: "msg=Distribution not supported {{ ansible_os_family }}"
|
||||
when: "ansible_os_family not in ['Debian', 'RedHat']"
|
||||
|
||||
- name: Fail on wrong distribution with wrong repo
|
||||
fail: "msg=Inktank Ceph Enterprise can not be installed on {{ ansible_os_family }}, Red Hat Enterprise Linux 7 only"
|
||||
when: ansible_os_family == 'Debian' and ceph_stable_ice
|
||||
|
||||
- name: Fail on wrong distribution with wrong repo
|
||||
fail: "msg=Inktank Ceph Enterprise can not be installed on {{ ansible_os_family }}i {{ ansible_distribution_major_version }}, Red Hat Enterprise Linux 7 only"
|
||||
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version != '7' and ceph_stable_ice
|
||||
|
||||
- include: install_on_redhat.yml
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
|
@ -63,3 +55,34 @@
|
|||
value=4194303
|
||||
state=present
|
||||
sysctl_file=/etc/sysctl.conf
|
||||
|
||||
- name: Create package directory
|
||||
file: >
|
||||
path={{ ceph_stable_ice_temp_path }}
|
||||
state=directory
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
when: ceph_stable_ice
|
||||
|
||||
- name: Get ICE packages
|
||||
get_url: >
|
||||
url_username={{ ceph_stable_ice_user }}
|
||||
url_password={{ ceph_stable_ice_password }}
|
||||
url=https://download.inktank.com/enterprise/{{ ceph_stable_ice_version }}/ICE-{{ ceph_stable_ice_version }}-{{ ceph_stable_ice_distro }}.tar.gz
|
||||
dest={{ ceph_stable_ice_temp_path }}/ICE-{{ ceph_stable_ice_version }}-{{ ceph_stable_ice_distro }}.tar.gz
|
||||
when: ceph_stable_ice
|
||||
|
||||
- name: Stat extracted repo files
|
||||
stat: >
|
||||
path={{ ceph_stable_ice_temp_path }}/ice_setup.py
|
||||
register: repo_exist
|
||||
when: ceph_stable_ice
|
||||
|
||||
- name: Extract packages
|
||||
shell: "cd {{ ceph_stable_ice_temp_path }} && tar -xzf ICE-{{ ceph_stable_ice_version }}-{{ ceph_stable_ice_distro }}.tar.gz"
|
||||
when: ceph_stable_ice and repo_exist.stat.exists == False
|
||||
|
||||
- name: Move the extracted packages
|
||||
shell: "mv {{ ceph_stable_ice_temp_path }}/ceph/*/* {{ ceph_stable_ice_temp_path }}"
|
||||
when: ceph_stable_ice and repo_exist.stat.exists == False
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
# {{ ansible_managed }}
|
||||
[ice]
|
||||
name=Inktank Ceph Enterprise - local packages for Ceph
|
||||
baseurl=file:///tmp/ice_repo
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
protect=1
|
||||
priority=1
|
|
@ -0,0 +1,9 @@
|
|||
# {{ ansible_managed }}
|
||||
[ice]
|
||||
name=Inktank Ceph Enterprise - local packages for Ceph
|
||||
baseurl=file://{{ ceph_stable_ice_temp_path }}
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
type=rpm-md
|
||||
priority=1
|
||||
gpgkey=file://{{ ceph_stable_ice_temp_path }}/release.asc
|
|
@ -21,6 +21,8 @@ ceph_stable_redhat_distro: el7
|
|||
|
||||
# ENTERPRISE VERSION
|
||||
ceph_stable_ice: false # use Inktank Ceph Enterprise
|
||||
#ceph_stable_ice_temp_path: /opt/ICE/ceph-repo/
|
||||
#ceph_stable_ice_distro: # Please check the download website for the supported versions.
|
||||
#ceph_stable_ice_version:
|
||||
#ceph_stable_ice_user:
|
||||
#ceph_stable_ice_password:
|
||||
|
|
Loading…
Reference in New Issue