Skip to content

Commit a588cda

Browse files
Use custom admin user in qe-sap-deployment
1 parent 32b0698 commit a588cda

20 files changed

Lines changed: 4 additions & 24 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ TF_LOG_PATH=terraform.apply.log TF_LOG=INFO terraform apply -auto-approve plan.z
235235

236236
Terraform also generate the Ansible inventory file **inventory.yaml**
237237

238-
Test the inventory by pinging all hosts
238+
Test the inventory by pinging all hosts (if using custom admin user, replace "cloudadmin")
239239

240240
```shell
241241
ansible -i inventory.yaml all -m ping --ssh-extra-args="-o UpdateHostKeys=yes -o StrictHostKeyChecking=accept-new -i <SECRET_FOLDER>/id_rsa_cloud" -u cloudadmin

ansible/playbooks/additional_fence_agent_tasks.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
- name: PTF Installation
33
hosts: hana
4-
remote_user: cloudadmin
54
become: true
65
become_user: root
76

ansible/playbooks/cluster_sbd_prep.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
- name: Cluster SBD preparation
33
hosts: iscsi, hana
4-
remote_user: cloudadmin
54
become: true
65
become_user: root
76
pre_tasks:

ansible/playbooks/deregister.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
- name: Deregister
33
hosts: all
4-
remote_user: cloudadmin
54
become: true
65
become_user: root
76

ansible/playbooks/fully-patch-system.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
- name: Fully patch playbookhosts
33
hosts: all
4-
remote_user: cloudadmin
54
become: true
65
become_user: root
76
vars:

ansible/playbooks/hana_prevalidate.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
- name: SAP HANA site failure test
33
hosts: "{{ node_name | default('no_host_provided')}}"
44
gather_facts: false
5-
remote_user: cloudadmin
65
roles:
76
- hana_prevalidate

ansible/playbooks/hana_sr_takeover.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
- name: SAP HANA takeover – disruptive node
33
hosts: "{{ node_name | default('no_host_provided')}}"
44
gather_facts: false
5-
remote_user: cloudadmin
65
vars_files:
76
- "{{ playbook_dir }}/vars/test_vars.yaml"
87
- "{{ playbook_dir }}/vars/hana_vars.yaml"
@@ -14,7 +13,6 @@
1413
- name: SAP HANA takeover – cluster validation
1514
hosts: hana
1615
gather_facts: false
17-
remote_user: cloudadmin
1816
serial: 1
1917
vars_files:
2018
- "{{ playbook_dir }}/vars/test_vars.yaml"

ansible/playbooks/hana_sr_test_secondary.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
- name: SAP HANA secondary-site failure test
33
hosts: "{{ node_name | default('no_host_provided')}}"
44
gather_facts: false
5-
remote_user: cloudadmin
65
vars_files:
76
- "{{ playbook_dir }}/vars/test_vars.yaml"
87
- "{{ playbook_dir }}/vars/hana_vars.yaml"

ansible/playbooks/ibsm.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
- name: IBSM
33
hosts: all
4-
remote_user: cloudadmin
54
become: true
65
become_user: root
76

ansible/playbooks/pre-cluster.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
- name: Cluster preparation
33
hosts: all
4-
remote_user: cloudadmin
54
vars:
65
crm_rootless: false
76
pre_tasks:
@@ -32,7 +31,7 @@
3231
mode: '0700'
3332
when: inventory_hostname in groups.hana
3433

35-
- name: Ensure that /home/cloudadmin/.ssh exists on hana
34+
- name: Ensure that /home/<admin_user>/.ssh exists on hana
3635
ansible.builtin.file:
3736
path: "{{ ansible_env.HOME }}/.ssh"
3837
state: directory
@@ -56,7 +55,7 @@
5655
register: ssh_root_keys
5756
when: inventory_hostname in groups.hana
5857

59-
- name: Generate public/private keys for cloudadmin on hana hosts
58+
- name: Generate public/private keys for <admin_user> on hana hosts
6059
community.crypto.openssh_keypair:
6160
owner: "{{ ansible_user }}"
6261
group: users
@@ -81,7 +80,7 @@
8180
loop_var: idx
8281
when: inventory_hostname in groups.hana
8382

84-
- name: Apply cloudadmin pub key to other node cloudadmin Authorised Keys
83+
- name: Apply <admin_user> pub key to other node <admin_user> Authorised Keys
8584
ansible.posix.authorized_key:
8685
user: "{{ ansible_user }}"
8786
state: present

0 commit comments

Comments
 (0)