Change bastion hostname and ansible inventory (#1341)
| | |
| | | rule_type: Ingress |
| | | |
| | | instances: |
| | | - name: "bastion" |
| | | - name: "sap-bastion" |
| | | count: "{{ bastion_instance_count }}" |
| | | unique: true |
| | | public_dns: true |
| | |
| | | zone_internal_dns: "{{guid}}.internal." |
| | | chomped_zone_internal_dns: "{{guid}}.internal" |
| | | |
| | | bastion_public_dns: "bastion.{{subdomain_base}}." |
| | | bastion_public_dns_chomped: "bastion.{{subdomain_base}}" |
| | | bastion_public_dns: "sap-bastion.{{subdomain_base}}." |
| | | bastion_public_dns_chomped: "sap-bastion.{{subdomain_base}}" |
| | | vpcid_cidr_block: "192.168.0.0/16" |
| | | vpcid_name_tag: "{{subdomain_base}}" |
| | | |
| | |
| | | delete_on_termination: true |
| | | volume_size: {{ instance['rootfs_size'] | default(osp_default_rootfs_size) }} |
| | | boot_index: 0 |
| | | {% if iname == "bastion" %} |
| | | {% if iname == "sap-bastion" %} |
| | | - image: {{ instance.sofware_image_id | default("software-sap") }} |
| | | delete_on_termination: true |
| | | volume_size: {{ instance['softwarefs_size'] }} |
| | |
| | | [hanas] |
| | | {% for host in groups['hanas'] %} |
| | | hana |
| | | {% endfor %} |
| | | |
| | | [s4hanas] |
| | | {% for host in groups['s4hanas'] %} |
| | | hana |
| | | {% endfor %} |
| | | s4hana |
| | | |
| | | |
| | | [hana:children] |
| | |
| | | hanas |
| | | s4hanas |
| | | |
| | | [hana:vars] |
| | | [sap:vars] |
| | | timeout=60 |
| | | ansible_become=yes |
| | | ansible_user={{remote_user}} |
| | |
| | | msg: "Software tasks Started" |
| | | |
| | | - name: Ensure NFS Server is installed, SAP Software Device Mounted and Ansible Installed |
| | | hosts: bastion |
| | | hosts: bastions |
| | | become: True |
| | | gather_facts: True |
| | | tasks: |
| | |
| | | - name: Ensure NFS share is mounted |
| | | mount: |
| | | path: "/software" |
| | | src: "bastion:/nfs" |
| | | src: "sap-bastion:/nfs" |
| | | fstype: nfs4 |
| | | opts: "rw,bg,hard,_netdev" |
| | | state: mounted |