mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Mass remove/replace iad2 -> rdu3, 10.3. -> 10.16.
Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
@@ -1,69 +0,0 @@
|
||||
defaults {
|
||||
rr_min_io 128
|
||||
user_friendly_names yes
|
||||
max_fds max
|
||||
queue_without_daemon no
|
||||
polling_interval 3
|
||||
}
|
||||
|
||||
blacklist {
|
||||
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
|
||||
devnode "^hd[a-z]"
|
||||
devnode "^cciss!c[0-9]d[0-9]*"
|
||||
device {
|
||||
vendor "IBM-ESXS"
|
||||
}
|
||||
device {
|
||||
vendor "IBM"
|
||||
}
|
||||
device {
|
||||
vendor "LSILOGIC"
|
||||
}
|
||||
device {
|
||||
vendor "ATA"
|
||||
}
|
||||
device {
|
||||
vendor "VMware"
|
||||
}
|
||||
device {
|
||||
vendor "DELL"
|
||||
}
|
||||
device {
|
||||
vendor "WD"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
devices {
|
||||
# device {
|
||||
# vendor "NETAPP"
|
||||
# product "LUN"
|
||||
# path_grouping_policy group_by_prio
|
||||
# path_checker directio
|
||||
# failback immediate
|
||||
# prio ontap
|
||||
# features "no_path_retry queue"
|
||||
# }
|
||||
|
||||
device {
|
||||
path_checker tur
|
||||
product "NEXTRA"
|
||||
vendor "XIV"
|
||||
rr_min_io 15
|
||||
path_grouping_policy multibus
|
||||
path_selector "round-robin 0"
|
||||
no_path_retry 5
|
||||
failback 15
|
||||
}
|
||||
|
||||
device {
|
||||
path_checker tur
|
||||
product "2810XIV"
|
||||
vendor "IBM"
|
||||
rr_min_io 15
|
||||
path_grouping_policy multibus
|
||||
path_selector "round-robin 0"
|
||||
no_path_retry 5
|
||||
failback 15
|
||||
}
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
---
|
||||
#
|
||||
# This task sets up iscsid and mpathd on a machine.
|
||||
#
|
||||
#
|
||||
- name: Install packages needed for iscsi_client (yum)
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name:
|
||||
- iscsi-initiator-utils
|
||||
- device-mapper-multipath
|
||||
tags:
|
||||
- packages
|
||||
when: ansible_distribution_major_version|int < 8 and ansible_distribution == "RedHat"
|
||||
|
||||
- name: Install packages needed for iscsi_client (dnf)
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name:
|
||||
- iscsi-initiator-utils
|
||||
- device-mapper-multipath
|
||||
tags:
|
||||
- packages
|
||||
when: ansible_distribution_major_version|int >= 29 and ansible_distribution == "Fedora" and ansible_cmdline.ostree is not defined
|
||||
|
||||
- name: Install packages needed for iscsi_client (dnf)
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name:
|
||||
- iscsi-initiator-utils
|
||||
- device-mapper-multipath
|
||||
tags:
|
||||
- packages
|
||||
when: ansible_distribution_major_version|int >= 8 and ansible_distribution == "RedHat" and ansible_cmdline.ostree is not defined
|
||||
|
||||
- name: Enable iscsi service
|
||||
service: state=started enabled=yes name=iscsi
|
||||
tags:
|
||||
- services
|
||||
|
||||
- name: Enable multipathd service
|
||||
service: state=started enabled=yes name=multipathd
|
||||
tags:
|
||||
- services
|
||||
|
||||
- name: Setup multipath.conf file
|
||||
ansible.builtin.copy: src=multipath.conf dest=/etc/multipath.conf
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: Setup initiatorname.iscsi
|
||||
ansible.builtin.template: src=initiatorname.iscsi.j2 dest=/etc/iscsi/initiatorname.iscsi
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: Set up iscsi interface for EL8
|
||||
ansible.builtin.command: creates=/var/lib/iscsi/ifaces/{{ netapp_iscsi_interface_iad2 }} iscsiadm -m iface -I {{ netapp_iscsi_interface_iad2 }} --op=new
|
||||
when: ansible_distribution_major_version|int >= 8 and ansible_distribution == "RedHat" and datacenter == 'iad2'
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: Run iscsiadm command for initial connect to PHX2 vtap-fedora-iscsi01
|
||||
ansible.builtin.command: creates=/var/lib/iscsi/nodes/{{ netapp_iscsi_name }}/{{ netapp_iscsi_portal }},3260 /sbin/iscsiadm --mode node --targetname --portal {{ netapp_iscsi_portal }} -o new ; /sbin/iscsiadm --mode node --targetname {{ netapp_iscsi_name }} --portal {{ netapp_iscsi_portal }} --login
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: Run iscsiadm command for initial connect to IAD2 vtap-fedora-iscsi01
|
||||
ansible.builtin.command: creates=/var/lib/iscsi/nodes/{{ netapp_iscsi_name_iad2 }}/{{ netapp_iscsi_portal_iad2 }},3260 /sbin/iscsiadm --mode node --targetname --portal {{ netapp_iscsi_portal_iad2 }} -o new ; /sbin/iscsiadm --mode node --targetname {{ netapp_iscsi_name_iad2 }} --portal {{ netapp_iscsi_portal_iad2 }} --login
|
||||
when: ansible_distribution_major_version|int >= 8 and ansible_distribution == "RedHat" and datacenter == 'iad2'
|
||||
tags:
|
||||
- config
|
||||
|
||||
# - name: Run iscsiadm command for initial connect to vtap-fedora-nfs01
|
||||
# ansible.builtin.command: creates=/var/lib/iscsi/nodes/{{ netapp_nfs01_iscsi_name }}/{{ netapp_nfs01_iscsi_portal }},3260 /sbin/iscsiadm --mode node --targetname --portal {{ netapp_nfs01_iscsi_portal }} -o new ; /sbin/iscsiadm --mode node --targetname {{ netapp_nfs01_iscsi_name }} --portal {{ netapp_nfs01_iscsi_portal }} --login
|
||||
# tags:
|
||||
# - config
|
||||
# when: inventory_hostname_short == "buildvmhost-10"
|
||||
@@ -1 +0,0 @@
|
||||
InitiatorName=iqn.2003-11.org.fedoraproject.{{ inventory_hostname }}
|
||||
@@ -1,12 +0,0 @@
|
||||
---
|
||||
# iscsi initiator for netapp iscsi volume
|
||||
netapp_iscsi_name: iqn.1992-08.com.netapp:sn.8a2c2d9073de11e4a645123478563412:vs.13
|
||||
# iscsi portal for netapp iscsi volume
|
||||
netapp_iscsi_portal: 10.5.88.56
|
||||
|
||||
# iscsi initiator for netapp iscsi volume
|
||||
netapp_iscsi_name_iad2: iqn.1992-08.com.netapp:sn.cd436d978abd11eaba39d039ea14e9fa:vs.5
|
||||
# iscsi portal for netapp iscsi volume
|
||||
netapp_iscsi_portal_iad2: 10.3.177.12
|
||||
# iscsi interface for iad2
|
||||
netapp_iscsi_interface_iad2: br0
|
||||
Reference in New Issue
Block a user