+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Expert Day 2019 - Automated SAP HANA deployments et Terraform
1. Automated SAP HANA SR Deployments in
Public/Private Clouds with Terraform
Julien ADAMEK
QA Engineer
SUSE / julien.adamek@suse.com
Expert Days Paris
Juillet 2019
2. 2
Objectifs du projet
●
Faciliter le deploiement d’un environnement complexe ainsi que sa rejouabilité
●
Tester les images Cloud délivrées par SUSE
●
Unification du code
●
Collaboration avec nos développeurs
●
Adresser les clouds publics et privés avec un unique projet
3. 3
Outils IaC
●
Configuration management, provisioning
●
Déjà intégré dans plusieurs produits
SUSE (SES, SUMA, CaaSP)
●
Orchestration, push de conf, event
reaction
●
Code unique pour le déploiement
●
Creation d’infrastructure (construire,
modifier, versionner)
●
Plugins providers (scaleway, docker,
kubernetes …)
●
Idempotence
4. 4
Infrastructure cible
●
1 cluster HA de 2 VMs SAP HANA SR avec scénario Performance
Optimized
●
1 VM iSCSI target qui va servir pour le STONITH Block Device (SBD)
t2.micro => 1 vCPU, 2.5 GHz, Intel Xeon Family, 1 Gio mémoire
m4.2xlarge => 8 vCPU, 2.4 GHz, Intel Xeon E5-2676v3, 32 Gio
mémoire
5. 5
1) Clone du projet ha-sap-terraform-
deployments depuis github
2) Suivre les intructions du README
concernant le provider retenu
3) Customisation des variables terraform et
Salt
4) Deploiement de l’infra avec terraform init,
plan & apply
Un script d’init est exécuté pour enregistrer
le système et installer l’agent salt
5) Terraform lance le provisioning via Salt
- Configuration des 3 serveurs
- Exécution des formulas Salt
Big Picture
6. 6
●
Création de l’infrastructure via du code
VM, disques, réseau, security group
●
L’infrastructure est stockée dans un fichier json terraform.tfstate
●
Renommer le fichier terraform.tfvars.example en terraform.tfvars et le
customiser
Terraform
7. 7
●
Salt masterless
●
Hostname, hosts, SSH, iSCSI initiator, répertoires etc…
●
Credentials clouds
●
Download fichiers HANA et formulas Salt
Configuration avec Salt
8. 8
Salt Formulas
●
Collection de states Salt pré-écrit par d’autre users et qui contient des paramètres
génériques. Elles peuvent être installées sous forme de RPM ou de depôt GIT
●
saphanabootstrap-formula
1) Installation de SAP HANA
2) Mise en place de la réplication entre les deux noeuds
●
habootstrap-formula
Installation du cluster via l’extension HA
●
Customisation des fichiers pillars
10. 10
Demo
●
Prérequis
- Configurer les credentials AWS
- Upload des fichiers d’installation HANA dans un bucket S3
●
Clone du projet GIT
git clone https://github.com/SUSE/ha-sap-terraform-deployments.git
●
Création des clés SSH pour le cluster
cd ha-sap-terraform-deployments/
mkdir salt/hana_node/files/sshkeys
ssh-keygen -f salt/hana_node/files/sshkeys/cluster.id_rsa -q -P ""
●
Copie et customisation des pillars
cp pillar_examples/automatic/{cluster.sls,hana.sls,top.sls} salt/hana_node/files/pillar/
●
Customisation terraform.tfvars
cd aws/terraform_salt/
cp ~juadk/ExpertDays/terraform.tfvars .
●
Déploiement
terraform init; terraform plan; terraform apply
13. 13
Unpublished Work of SUSE LLC. All Rights Reserved.
This work is an unpublished work and contains confidential, proprietary and trade secret information of SUSE LLC.
Access to this work is restricted to SUSE employees who have a need to know to perform tasks within the scope of their
assignments. No part of this work may be practiced, performed, copied, distributed, revised, modified, translated,
abridged, condensed, expanded, collected, or adapted without the prior written consent of SUSE.
Any use or exploitation of this work without authorization could subject the perpetrator to criminal and civil liability.
General Disclaimer
This document is not to be construed as a promise by any participating company to develop, deliver, or market a
product. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making
purchasing decisions. SUSE makes no representations or warranties with respect to the contents of this document, and
specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. The
development, release, and timing of features or functionality described for SUSE products remains at the sole discretion
of SUSE. Further, SUSE reserves the right to revise this document and to make changes to its content, at any time,
without obligation to notify any person or entity of such revisions or changes. All SUSE marks referenced in this
presentation are trademarks or registered trademarks of Novell, Inc. in the United States and other countries. All third-
party trademarks are the property of their respective owners.