Skip to content

Commit

Permalink
chore: Rename hmc ftp host
Browse files Browse the repository at this point in the history
Signed-off-by: Klaus Smolin <[email protected]>
  • Loading branch information
smolin-de committed Jul 24, 2024
1 parent eb375ea commit e7e9a5d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions playbooks/6_create_nodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@

# TODO: Hack to update HMC file server git repository
- name: Update HMC file server git repository
hosts: hmc_file_server
hosts: hmc_ftp_server
gather_facts: false
tasks:
- name: Update git repository
- name: Update git repository on HMC ftp server
ignore_errors: true
block:
- name: Update git repository
- name: Update git repository on HMC ftp server
ansible.builtin.shell: |
whoami
cd ~/ftp/
git pull
register: cmd_output
Expand Down Expand Up @@ -138,6 +139,15 @@
loop_control:
index_var: idx

- name: 6 create nodes - create control using zVM via tessia (tbd)
hosts: localhost
vars_files:
- "{{ inventory_dir }}/group_vars/all.yaml"
tasks:
- name: Boot control zVM via tessia
when: env.cluster.nodes.control.zvm_name[0] is defined
ansible.builtin.command: sleep 120

- name: 6 create nodes - wait for bootstrap to connect control plane (for non-root user)
hosts: bastion
become: true
Expand Down
4 changes: 2 additions & 2 deletions roles/set_inventory/templates/hosts.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[file_server]
{{ env.file_server.ip }} ansible_connection=local ansible_user={{ env.file_server.user }} ansible_become_password={{ env.file_server.pass }}

[hmc_file_server]
{{ (env.z.hmc_load_from_ftp.hostname + ' ansible_host=' +env.z.hmc_load_from_ftp.ip + ' ansible_connection=local ansible_user=' + env.z.hmc_load_from_ftp.user + ' ansible_become_password=' + env.z.hmc_load_from_ftp.user ) if env.z.hmc_load_from_ftp.hostname is defined }}
[hmc_ftp_server]
{{ (env.z.hmc_load_from_ftp.hostname + ' ansible_host=' +env.z.hmc_load_from_ftp.ip + ' ansible_connection=local ansible_user=' + env.z.hmc_load_from_ftp.user + ' ansible_become_password=' + env.z.hmc_load_from_ftp.pass ) if env.z.hmc_load_from_ftp.hostname is defined }}

[kvm_host]
{{ env.z.lpar1.hostname }} ansible_host={{ env.z.lpar1.ip }} ansible_user={{ env.z.lpar1.user }} ansible_become_password={{ env.z.lpar1.pass }}
Expand Down

0 comments on commit e7e9a5d

Please sign in to comment.