Merge pull request #934 from ceph/issue-811

rename ceph_stable_rh_storage to ceph_stable_rhcs
pull/937/head
Leseb 2016-08-16 09:35:41 +02:00 committed by GitHub
commit fc43059c6b
11 changed files with 61 additions and 61 deletions

View File

@ -144,15 +144,15 @@ dummy:
# time. Please use ELRepo's latest upstream 4.x kernels if you want to run CephFS # time. Please use ELRepo's latest upstream 4.x kernels if you want to run CephFS
# on RHEL 7. # on RHEL 7.
# #
#ceph_stable_rh_storage: false #ceph_rhcs: false
# This will affect how/what repositories are enabled depending on the desired # This will affect how/what repositories are enabled depending on the desired
# version. The next version will use "2" not "2.0" which would not work. # version. The next version will use "2" not "2.0" which would not work.
#ceph_stable_rh_storage_version: 1.3 # next version is 2 #ceph_rhcs_version: 1.3 # next version is 2
#ceph_stable_rh_storage_cdn_install: false # assumes all the nodes can connect to cdn.redhat.com #ceph_rhcs_cdn_install: false # assumes all the nodes can connect to cdn.redhat.com
#ceph_stable_rh_storage_iso_install: false # usually used when nodes don't have access to cdn.redhat.com #ceph_rhcs_iso_install: false # usually used when nodes don't have access to cdn.redhat.com
#ceph_stable_rh_storage_iso_path: #ceph_rhcs_iso_path:
#ceph_stable_rh_storage_mount_path: /tmp/rh-storage-mount #ceph_rhcs_mount_path: /tmp/rh-storage-mount
#ceph_stable_rh_storage_repository_path: /tmp/rh-storage-repo # where to copy iso's content #ceph_rhcs_repository_path: /tmp/rh-storage-repo # where to copy iso's content
# UBUNTU CLOUD ARCHIVE # UBUNTU CLOUD ARCHIVE

View File

@ -25,7 +25,7 @@ Have a look at `defaults/main.yml`.
* Install source, choose one of these: * Install source, choose one of these:
* `ceph_stable` * `ceph_stable`
* `ceph_dev` * `ceph_dev`
* `ceph_stable_rh_storage` * `ceph_rhcs`
* `ceph_custom` * `ceph_custom`
* `journal_size` * `journal_size`
* `monitor_interface` * `monitor_interface`

View File

@ -136,15 +136,15 @@ ceph_stable_redhat_distro: el7
# time. Please use ELRepo's latest upstream 4.x kernels if you want to run CephFS # time. Please use ELRepo's latest upstream 4.x kernels if you want to run CephFS
# on RHEL 7. # on RHEL 7.
# #
ceph_stable_rh_storage: false ceph_rhcs: false
# This will affect how/what repositories are enabled depending on the desired # This will affect how/what repositories are enabled depending on the desired
# version. The next version will use "2" not "2.0" which would not work. # version. The next version will use "2" not "2.0" which would not work.
ceph_stable_rh_storage_version: 1.3 # next version is 2 ceph_rhcs_version: 1.3 # next version is 2
ceph_stable_rh_storage_cdn_install: false # assumes all the nodes can connect to cdn.redhat.com ceph_rhcs_cdn_install: false # assumes all the nodes can connect to cdn.redhat.com
ceph_stable_rh_storage_iso_install: false # usually used when nodes don't have access to cdn.redhat.com ceph_rhcs_iso_install: false # usually used when nodes don't have access to cdn.redhat.com
#ceph_stable_rh_storage_iso_path: #ceph_rhcs_iso_path:
ceph_stable_rh_storage_mount_path: /tmp/rh-storage-mount ceph_rhcs_mount_path: /tmp/rh-storage-mount
ceph_stable_rh_storage_repository_path: /tmp/rh-storage-repo # where to copy iso's content ceph_rhcs_repository_path: /tmp/rh-storage-repo # where to copy iso's content
# UBUNTU CLOUD ARCHIVE # UBUNTU CLOUD ARCHIVE

View File

@ -16,18 +16,18 @@
- ceph_origin == 'upstream' - ceph_origin == 'upstream'
- not ceph_stable - not ceph_stable
- not ceph_dev - not ceph_dev
- not ceph_stable_rh_storage - not ceph_rhcs
- not ceph_stable_uca - not ceph_stable_uca
tags: tags:
- package-install - package-install
- name: verify that a method was chosen for red hat storage - name: verify that a method was chosen for red hat storage
fail: fail:
msg: "choose between ceph_stable_rh_storage_cdn_install and ceph_stable_rh_storage_iso_install" msg: "choose between ceph_rhcs_cdn_install and ceph_rhcs_iso_install"
when: when:
- ceph_stable_rh_storage - ceph_rhcs
- not ceph_stable_rh_storage_cdn_install - not ceph_rhcs_cdn_install
- not ceph_stable_rh_storage_iso_install - not ceph_rhcs_iso_install
- ceph_origin == "upstream" - ceph_origin == "upstream"
tags: tags:
- package-install - package-install

View File

@ -18,7 +18,7 @@
fail: fail:
msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL 7.1" msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL 7.1"
when: when:
- ceph_stable_rh_storage - ceph_rhcs
- ansible_distribution_version | version_compare('7.1', '<') - ansible_distribution_version | version_compare('7.1', '<')
- name: fail on unsupported distribution for ubuntu cloud archive - name: fail on unsupported distribution for ubuntu cloud archive

View File

@ -5,15 +5,15 @@
# intelligent way to determine the location of the key. # intelligent way to determine the location of the key.
- name: install the rh ceph storage repository key - name: install the rh ceph storage repository key
apt_key: apt_key:
file: "{{ ceph_stable_rh_storage_repository_path }}/MON/release.asc" file: "{{ ceph_rhcs_repository_path }}/MON/release.asc"
state: present state: present
when: when:
- ceph_stable_rh_storage - ceph_rhcs
- ceph_stable_rh_storage_iso_install - ceph_rhcs_iso_install
- name: add rh ceph storage repositories - name: add rh ceph storage repositories
apt_repository: apt_repository:
repo: "deb file://{{ ceph_stable_rh_storage_repository_path }}/{{ item }}/ {{ ansible_lsb.codename }} main" repo: "deb file://{{ ceph_rhcs_repository_path }}/{{ item }}/ {{ ansible_lsb.codename }} main"
state: present state: present
changed_when: false changed_when: false
with_items: with_items:
@ -22,14 +22,14 @@
- "Tools" - "Tools"
- "Agent" - "Agent"
when: when:
- ceph_stable_rh_storage - ceph_rhcs
- ceph_stable_rh_storage_iso_install - ceph_rhcs_iso_install
- name: add the red hat storage apt-key - name: add the red hat storage apt-key
apt_key: apt_key:
data: "{{ lookup('file', role_path+'/files/cephstablerhcs.asc') }}" data: "{{ lookup('file', role_path+'/files/cephstablerhcs.asc') }}"
state: present state: present
when: not ceph_stable_rh_storage_iso_install when: not ceph_rhcs_iso_install
- name: install dependencies - name: install dependencies
apt: apt:

View File

@ -1,10 +1,10 @@
--- ---
- name: install red hat storage repository key - name: install red hat storage repository key
rpm_key: rpm_key:
key: "{{ ceph_stable_rh_storage_repository_path }}/RPM-GPG-KEY-redhat-release" key: "{{ ceph_rhcs_repository_path }}/RPM-GPG-KEY-redhat-release"
state: present state: present
when: when:
- ceph_stable_rh_storage_iso_install - ceph_rhcs_iso_install
- name: add red hat storage repository - name: add red hat storage repository
template: template:
@ -14,7 +14,7 @@
group: root group: root
mode: 0644 mode: 0644
when: when:
- ceph_stable_rh_storage_iso_install - ceph_rhcs_iso_install
- name: install dependencies - name: install dependencies
yum: yum:

View File

@ -11,15 +11,15 @@
- include: ./pre_requisites/prerequisite_rh_storage_iso_install.yml - include: ./pre_requisites/prerequisite_rh_storage_iso_install.yml
when: when:
- ceph_stable_rh_storage - ceph_rhcs
- ceph_stable_rh_storage_iso_install - ceph_rhcs_iso_install
tags: tags:
- package-install - package-install
- include: ./pre_requisites/prerequisite_rh_storage_cdn_install.yml - include: ./pre_requisites/prerequisite_rh_storage_cdn_install.yml
when: when:
- ceph_stable_rh_storage - ceph_rhcs
- ceph_stable_rh_storage_cdn_install - ceph_rhcs_cdn_install
- ansible_os_family == "RedHat" - ansible_os_family == "RedHat"
tags: tags:
- package-install - package-install
@ -27,28 +27,28 @@
- include: ./installs/install_on_redhat.yml - include: ./installs/install_on_redhat.yml
when: when:
ansible_os_family == 'RedHat' and ansible_os_family == 'RedHat' and
not ceph_stable_rh_storage_iso_install not ceph_rhcs_iso_install
tags: tags:
- package-install - package-install
- include: ./installs/install_rh_storage_on_redhat.yml - include: ./installs/install_rh_storage_on_redhat.yml
when: when:
- ansible_distribution == "RedHat" - ansible_distribution == "RedHat"
- ceph_stable_rh_storage - ceph_rhcs
tags: tags:
- package-install - package-install
- include: ./installs/install_on_debian.yml - include: ./installs/install_on_debian.yml
when: when:
- ansible_os_family == 'Debian' - ansible_os_family == 'Debian'
- not ceph_stable_rh_storage - not ceph_rhcs
tags: tags:
- package-install - package-install
- include: ./installs/install_rh_storage_on_debian.yml - include: ./installs/install_rh_storage_on_debian.yml
when: when:
- ansible_os_family == 'Debian' - ansible_os_family == 'Debian'
- ceph_stable_rh_storage - ceph_rhcs
tags: tags:
- package-install - package-install

View File

@ -5,42 +5,42 @@
changed_when: false changed_when: false
- name: check if the red hat storage monitor repo is already present - name: check if the red hat storage monitor repo is already present
shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-{{ ceph_stable_rh_storage_version }}-mon-rpms shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-{{ ceph_rhcs_version }}-mon-rpms
changed_when: false changed_when: false
failed_when: false failed_when: false
register: rh_storage_mon_repo register: rh_storage_mon_repo
when: mon_group_name in group_names when: mon_group_name in group_names
- name: enable red hat storage monitor repository - name: enable red hat storage monitor repository
command: subscription-manager repos --enable rhel-7-server-rhceph-{{ ceph_stable_rh_storage_version }}-mon-rpms command: subscription-manager repos --enable rhel-7-server-rhceph-{{ ceph_rhcs_version }}-mon-rpms
changed_when: false changed_when: false
when: when:
- mon_group_name in group_names - mon_group_name in group_names
- rh_storage_mon_repo.rc != 0 - rh_storage_mon_repo.rc != 0
- name: check if the red hat storage osd repo is already present - name: check if the red hat storage osd repo is already present
shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-{{ ceph_stable_rh_storage_version }}-osd-rpms shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-{{ ceph_rhcs_version }}-osd-rpms
changed_when: false changed_when: false
failed_when: false failed_when: false
register: rh_storage_osd_repo register: rh_storage_osd_repo
when: osd_group_name in group_names when: osd_group_name in group_names
- name: enable red hat storage osd repository - name: enable red hat storage osd repository
command: subscription-manager repos --enable rhel-7-server-rhceph-{{ ceph_stable_rh_storage_version }}-osd-rpms command: subscription-manager repos --enable rhel-7-server-rhceph-{{ ceph_rhcs_version }}-osd-rpms
changed_when: false changed_when: false
when: when:
- osd_group_name in group_names - osd_group_name in group_names
- rh_storage_osd_repo.rc != 0 - rh_storage_osd_repo.rc != 0
- name: check if the red hat storage rados gateway repo is already present - name: check if the red hat storage rados gateway repo is already present
shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-{{ ceph_stable_rh_storage_version }}-tools-rpms shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms
changed_when: false changed_when: false
failed_when: false failed_when: false
register: rh_storage_rgw_repo register: rh_storage_rgw_repo
when: rgw_group_name in group_names when: rgw_group_name in group_names
- name: enable red hat storage rados gateway repository - name: enable red hat storage rados gateway repository
command: subscription-manager repos --enable rhel-7-server-rhceph-{{ ceph_stable_rh_storage_version }}-tools-rpms command: subscription-manager repos --enable rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms
changed_when: false changed_when: false
when: when:
- rgw_group_name in group_names - rgw_group_name in group_names

View File

@ -4,40 +4,40 @@
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
with_items: with_items:
- "{{ ceph_stable_rh_storage_mount_path }}" - "{{ ceph_rhcs_mount_path }}"
- "{{ ceph_stable_rh_storage_repository_path }}" - "{{ ceph_rhcs_repository_path }}"
- name: ensure destination iso directory exists - name: ensure destination iso directory exists
file: file:
path: "{{ ceph_stable_rh_storage_iso_path | dirname }}" path: "{{ ceph_rhcs_iso_path | dirname }}"
state: directory state: directory
recurse: yes recurse: yes
when: "'{{ ceph_stable_rh_storage_iso_path | dirname }}' != '/'" when: "'{{ ceph_rhcs_iso_path | dirname }}' != '/'"
- name: fetch the red hat storage iso from the ansible server - name: fetch the red hat storage iso from the ansible server
copy: copy:
src: "{{ ceph_stable_rh_storage_iso_path }}" src: "{{ ceph_rhcs_iso_path }}"
dest: "{{ ceph_stable_rh_storage_iso_path }}" dest: "{{ ceph_rhcs_iso_path }}"
# assumption: ceph_stable_rh_storage_mount_path does not specify directory # assumption: ceph_rhcs_mount_path does not specify directory
- name: mount red hat storage iso file - name: mount red hat storage iso file
mount: mount:
name: "{{ ceph_stable_rh_storage_mount_path }}" name: "{{ ceph_rhcs_mount_path }}"
src: "{{ ceph_stable_rh_storage_iso_path }}" src: "{{ ceph_rhcs_iso_path }}"
fstype: iso9660 fstype: iso9660
opts: ro,loop,noauto opts: ro,loop,noauto
passno: 2 passno: 2
state: mounted state: mounted
- name: copy red hat storage iso content - name: copy red hat storage iso content
shell: cp -r {{ ceph_stable_rh_storage_mount_path }}/* {{ ceph_stable_rh_storage_repository_path }} shell: cp -r {{ ceph_rhcs_mount_path }}/* {{ ceph_rhcs_repository_path }}
args: args:
creates: "{{ ceph_stable_rh_storage_repository_path }}/README" creates: "{{ ceph_rhcs_repository_path }}/README"
- name: unmount red hat storage iso file - name: unmount red hat storage iso file
mount: mount:
name: "{{ ceph_stable_rh_storage_mount_path }}" name: "{{ ceph_rhcs_mount_path }}"
src: "{{ ceph_stable_rh_storage_iso_path }}" src: "{{ ceph_rhcs_iso_path }}"
fstype: iso9660 fstype: iso9660
state: unmounted state: unmounted

View File

@ -1,21 +1,21 @@
# {{ ansible_managed }} # {{ ansible_managed }}
[rh_storage_mon] [rh_storage_mon]
name=Red Hat Ceph Storage - local packages for Ceph monitor name=Red Hat Ceph Storage - local packages for Ceph monitor
baseurl=file://{{ ceph_stable_rh_storage_repository_path }}/MON baseurl=file://{{ ceph_rhcs_repository_path }}/MON
enabled=1 enabled=1
gpgcheck=1 gpgcheck=1
priority=1 priority=1
[rh_storage_osd] [rh_storage_osd]
name=Red Hat Ceph Storage - local packages for Ceph OSD name=Red Hat Ceph Storage - local packages for Ceph OSD
baseurl=file://{{ ceph_stable_rh_storage_repository_path }}/OSD baseurl=file://{{ ceph_rhcs_repository_path }}/OSD
enabled=1 enabled=1
gpgcheck=1 gpgcheck=1
priority=1 priority=1
[rh_storage_tools] [rh_storage_tools]
name=Red Hat Ceph Storage - local packages for Ceph client, MDS, and RGW name=Red Hat Ceph Storage - local packages for Ceph client, MDS, and RGW
baseurl=file://{{ ceph_stable_rh_storage_repository_path }}/Tools baseurl=file://{{ ceph_rhcs_repository_path }}/Tools
enabled=1 enabled=1
gpgcheck=1 gpgcheck=1
priority=1 priority=1