From 3ec1481938fc048b65e968a9598997b8a01604c9 Mon Sep 17 00:00:00 2001 From: Marcos Entenza <mak@redhat.com> Date: Sun, 16 Feb 2020 10:01:40 +0100 Subject: [PATCH] Add Satellite, SAP Software and more customization (#1155) --- ansible/configs/sap-hana/default_vars.yml | 126 ++++++++++++++++++++--------------------- 1 files changed, 61 insertions(+), 65 deletions(-) diff --git a/ansible/configs/sap-hana/default_vars.yml b/ansible/configs/sap-hana/default_vars.yml index f1f44f7..3668636 100644 --- a/ansible/configs/sap-hana/default_vars.yml +++ b/ansible/configs/sap-hana/default_vars.yml @@ -1,44 +1,25 @@ -### Vars that can be removed: -# use_satellite: true -# use_subscription_manager: false -# use_own_repos: false +## Subscription Settings +repo_method: satellite +satellite_org: Red_Hat_GPTE_Labs +satellite_activationkey: rhel8-summit +satellite_url: labsat.opentlc.com +use_content_view: false -#If using repo_method: satellite, you must set these values as well. -# satellite_url: satellite.example.com -# satellite_org: Sat_org_name -# satellite_activationkey: "rhel7basic" - -# RHSM -# repo_method: rhn -# use_subscription_manager: true -# rhel_subscription_user: "xxxxxxxxxxxxx" -# rhel_subscription_pass: "xxxxxxxxxxx" -# rhsm_pool_ids: -# - "xxxxxxxxxxxxxxxxxxxxxx" -# - "xxxxxxxxxxxxxxxxxxxxxx" -# rhel_repos: -# - "rhel-8-for-x86_64-baseos-rpms" -# - "rhel-8-for-x86_64-appstream-rpms" -# - "ansible-2-for-rhel-8-x86_64-rpms" -# rhel_repos: -# - "rhel-7-server-rpms" -# - "rhel-server-rhscl-7-rpms" -# - "rhel-7-server-ansible-2.8-rpms" - -###### VARIABLES YOU SHOULD CONFIGURE FOR YOUR DEPLOYEMNT -###### OR PASS as "-e" args to ansible-playbook command - +rhel_repos: + - "rhel-8-for-x86_64-baseos-rpms" + - "rhel-8-for-x86_64-appstream-rpms" + - "ansible-2-for-rhel-8-x86_64-rpms" + - "rhel-8-for-x86_64-sap-solutions-rpms" + - "rhel-8-for-x86_64-sap-netweaver-rpms" ### Common Host settings - -# repo_method: file # Other Options are: file, satellite and rhn install_ipa_client: false install_student_user: false + # Do you want to run a full yum update update_packages: false - ## guid is the deployment unique identifier, it will be appended to all tags, ## files and anything that identifies this environment from another "just like it" @@ -53,9 +34,6 @@ install_bastion: true install_common: true -## SB Don't set software_to_deploy from here, always use extra vars (-e) or "none" will be used -#software_to_deploy:: none - ### If you want a Key Pair name created and injected into the hosts, # set `set_env_authorized_key` to true and set the keyname in `env_authorized_key` @@ -69,53 +47,45 @@ # Is this running from Red Hat Ansible Tower tower_run: false -## Networking (AWS) +## Networking subdomain_base_short: "{{ guid }}" subdomain_base_suffix: ".example.opentlc.com" subdomain_base: "{{subdomain_base_short}}{{subdomain_base_suffix}}" -## Environment Sizing +## Environment Sizing and OS +bastion_instance_image: rhel-8.0-update-3 bastion_instance_type: "2-16" bastion_instance_count: 1 rootfs_size_bastion: "{{ rootfs_size_bastion }}" -nfs_size_bastion: 100 +hana_instance_image: rhel-8.0-update-3 hana_instance_type: "4-32" -support_instance_type: "{{ support_instance_type }}" - hana_instance_count: 1 rootfs_size_hana: "{{ rootfs_size_hana }}" pv_size_hana: 200 -hana_instance_image: "{{ hana_instance_image }}" -support_instance_image: "{{ support_instance_image }}" +s4hana_instance_image: rhel-8.0-update-3 +s4hana_instance_type: "4-32" +s4hana_instance_count: 1 +rootfs_size_s4hana: "{{ rootfs_size_s4hana }}" +pv_size_s4hana: 200 ## Variables required when deploying Ansible Tower alongside the HANA and bastion instances -tower_instance_count: 0 -tower_instance_image: "{{ tower_instance_image }}" +tower_instance_image: rhel8.1_01 tower_instance_type: "4-32" +tower_instance_count: "{{ tower_instance_count }}" rootfs_size_tower: "{{ rootfs_size_tower }}" -# Instances images to use -#bastion_instance_image: xxxxxxxxxxxxxxxx -#hana_instance_image: xxxxxxxxxxxxx - -#NFS Server variables -install_nfs: true -nfs_device: "/dev/vdb" -nfs_vg: "nfs" -nfs_export_path: "/srv/nfs" -nfs_shares: - - "hana" -nfs_exports_config: "*(insecure,rw,root_squash,no_wdelay,sync)" +# SAP Software image and variables +sap_software_image: software-sap +sap_software_size: "{{ sap_software_size }}" #Ansible Tower Variables -# ansible_tower: -# admin_password: "xxxxxxxxxxxxxxx" -# ansible_tower_download_url: xxxxxxx -# ansible_tower_epel_download_url: xxxxx +ansible_tower_download_url: "https://releases.ansible.com/ansible-tower/setup-bundle/ansible-tower-setup-bundle-3.6.2-1.tar.gz" +ansible_tower_epel_download_url: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" +# OSP Security Groups security_groups: - name: HanaSG rules: @@ -212,11 +182,10 @@ value: "linux" - key: "instance_filter" value: "{{ env_type }}-{{ email }}" + - key: ansible_python_interpreter + value: /usr/libexec/platform-python rootfs_size: "50" softwarefs_size: "{{ sap_software_size }}" - volumes: - - volume_name: "bastion_nfs" - volume_size: "{{ nfs_size_bastion }}" security_groups: - BastionSG @@ -235,11 +204,38 @@ value: "rhel" - key: "instance_filter" value: "{{ env_type }}-{{ email }}" + - key: ansible_python_interpreter + value: /usr/libexec/platform-python key_name: "{{key_name}}" rootfs_size: "100" volumes: - volume_name: "hana_pv" volume_size: "{{ pv_size_hana }}" + security_groups: + - HanaSG + + - name: "s4hana" + count: "{{ s4hana_instance_count }}" + public_dns: false + dns_loadbalancer: false + floating_ip: false + image_id: "{{ s4hana_instance_image }}" + flavor: + osp: "{{ s4hana_instance_type }}" + tags: + - key: "AnsibleGroup" + value: "s4hanas" + - key: "ostype" + value: "rhel" + - key: "instance_filter" + value: "{{ env_type }}-{{ email }}" + - key: ansible_python_interpreter + value: /usr/libexec/platform-python + key_name: "{{key_name}}" + rootfs_size: "100" + volumes: + - volume_name: "s4hana_pv" + volume_size: "{{ pv_size_s4hana }}" security_groups: - HanaSG @@ -258,6 +254,8 @@ value: "rhel" - key: "instance_filter" value: "{{ env_type }}-{{ email }}" + - key: ansible_python_interpreter + value: /usr/libexec/platform-python key_name: "{{key_name}}" rootfs_size: "200" security_groups: @@ -283,8 +281,6 @@ vpcid_cidr_block: "192.168.0.0/16" vpcid_name_tag: "{{subdomain_base}}" - -#dopt_domain_name: "{{ aws_region }}.compute.internal" rtb_public_name_tag: "{{subdomain_base}}-public" rtb_private_name_tag: "{{subdomain_base}}-private" -- Gitblit v1.9.3