mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 14:02:12 +08:00
This re-adds a iscsi_client role we had in iad2 back in in rdu3. When then apply it to bvmhost-p10-01 to login and use a iscsi lun from the rdu3 netapp. We then move the buildvm-ppc64le vm's to use this iscsi volume instead of local storage. As we reinstall those builders they will use the iscsi volume. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
34 lines
976 B
YAML
34 lines
976 B
YAML
---
|
|
#
|
|
# This task sets up iscsid and mpathd on a machine.
|
|
#
|
|
#
|
|
- name: install packages needed for iscsi_client (dnf)
|
|
package:
|
|
state: present
|
|
name:
|
|
- iscsi-initiator-utils
|
|
- device-mapper-multipath
|
|
tags:
|
|
- packages
|
|
|
|
- name: enable multipathd service
|
|
service: state=started enabled=yes name=multipathd
|
|
tags:
|
|
- services
|
|
|
|
- name: setup multipath.conf file
|
|
copy: src=multipath.conf dest=/etc/multipath.conf
|
|
tags:
|
|
- config
|
|
|
|
- name: setup initiatorname.iscsi
|
|
template: src=initiatorname.iscsi.j2 dest=/etc/iscsi/initiatorname.iscsi
|
|
tags:
|
|
- config
|
|
|
|
- name: run iscsiadm command for initial connect to RDU3 netapp
|
|
command: creates=/var/lib/iscsi/nodes/{{ netapp_iscsi_name_rdu3 }}/{{ netapp_iscsi_portal_rdu3 }},3260 /sbin/iscsiadm --mode node --targetname --portal {{ netapp_iscsi_portal_rdu3 }} -o new ; /sbin/iscsiadm --mode node --targetname {{ netapp_iscsi_name_rdu3 }} --portal {{ netapp_iscsi_portal_rdu3 }} --login
|
|
tags:
|
|
- config
|