Skip to content

Commit

Permalink
Master Playbook for ABI is getting failed with latest code on fresh m…
Browse files Browse the repository at this point in the history
…ac (#350)

#349

Signed-off-by: Sumit Solanki <[email protected]>
Co-authored-by: Sumit Solanki <[email protected]>
  • Loading branch information
isumitsolanki and Sumit Solanki authored Nov 15, 2024
1 parent a0ce44a commit 03770dc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions playbooks/master_playbook_for_abi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

- import_playbook: 0_setup.yaml # Import Playbook To Generate Inventory & Adding SSH-Keys.
- import_playbook: 3_setup_kvm_host.yaml # Import Playbook To Install Prerequisites On KVM_HOST.
when: ( installation_type | lower == "kvm" )
- import_playbook: 4_create_bastion.yaml # Import Playbook To Create Bastion.
- import_playbook: 5_setup_bastion.yaml # Import Playbook To Configure Bastion.
- import_playbook: create_abi_cluster.yaml # Import Playbook To Create ABI Cluster.
Expand Down
5 changes: 5 additions & 0 deletions roles/prepare_configs/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
- name: Delete OCP Work Directory For Idempotency.
file:
path: ~/ansible_workdir
state: absent

- name: Create Work Directory
file:
path: ~/ansible_workdir
Expand Down
2 changes: 1 addition & 1 deletion roles/setup_params/templates/param-file.param.j2
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rd.neednet=1 ai.ip_cfg_override=1 console=ttysclp0 coreos.live.rootfs_url=http://{{ env.bastion.networking.ip }}:8080/agent.{{ ansible_architecture }}-rootfs.img ip={{ zvm.nodes[item].interface.ip }}::{{ zvm.gateway }}:{{ zvm.subnetmask }}{% if zvm.network_mode | lower != 'roce' %}::{{ zvm.nodes[item].interface.ifname }}:none{% endif %} nameserver={{ zvm.nameserver }} zfcp.allow_lun_scan=0 {% if zvm.network_mode | lower != 'roce' %}rd.znet={{ zvm.nodes[item].interface.nettype }},{{ zvm.nodes[item].interface.subchannels }},{{ zvm.nodes[item].interface.options }}{% endif %} {% if zvm.disk_type | lower != 'fcp' %}rd.dasd={{ zvm.nodes[item].dasd.disk_id }}{% else %}rd.zfcp={{ zvm.nodes[item].lun[0].paths[0].fcp}},{{ zvm.nodes[item].lun[0].paths[0].wwpn }},{{ zvm.nodes[item].lun[0].id }} {% endif %} random.trust_cpu=on rd.luks.options=discard ignition.firstboot ignition.platform.id=metal console=tty1 console=ttyS1,115200n8 coreos.inst.persistent-kargs="console=tty1 console=ttyS1,115200n8"
rd.neednet=1 ai.ip_cfg_override=1 console=ttysclp0 coreos.live.rootfs_url=http://{{ env.bastion.networking.ip }}:8080/agent.{{ ansible_architecture }}-rootfs.img ip={{ zvm.nodes[item].interface.ip }}::{{ zvm.gateway }}:{{ zvm.subnetmask }}{% if zvm.network_mode | lower != 'roce' %}::{{ zvm.nodes[item].interface.ifname }}:none{% endif %} nameserver={{ zvm.nameserver }} zfcp.allow_lun_scan=0 {% if zvm.network_mode | lower != 'roce' %}rd.znet={{ zvm.nodes[item].interface.nettype }},{{ zvm.nodes[item].interface.subchannels }},{{ zvm.nodes[item].interface.options }}{% endif %} {% if zvm.disk_type | lower != 'fcp' %}rd.dasd=0.0.{{ zvm.nodes[item].dasd.disk_id }}{% else %}rd.zfcp=0.0.{{ zvm.nodes[item].lun[0].paths[0].fcp}},{{ zvm.nodes[item].lun[0].paths[0].wwpn }},{{ zvm.nodes[item].lun[0].id }} {% endif %} random.trust_cpu=on rd.luks.options=discard ignition.firstboot ignition.platform.id=metal console=tty1 console=ttyS1,115200n8 coreos.inst.persistent-kargs="console=tty1 console=ttyS1,115200n8"
5 changes: 5 additions & 0 deletions roles/ssh_agent/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
- name: Ensure ~/.bash_profile exists
ansible.builtin.file:
path: ~/.bash_profile
state: touch
mode: '0644'

- name: Add ansible SSH key to ssh-agent
tags: ssh_agent, ssh
Expand Down

0 comments on commit 03770dc

Please sign in to comment.