VAGRANT POUR LES DÉVELOPPEURS



Documents pareils
Gérer ses environnements de développement avec Vagrant RMLL 2012

Gestion de parc Windows depuis Unix. Pascal Cabaud & Laurent Joly

Mise en place d un firewall d entreprise avec PfSense

Machine virtuelle W4M- Galaxy : Guide d'installation

Serveur de partage de documents. Étude et proposition d'une solution afin de mettre en place un serveur de partage de documents.

Network Shutdown Module V3 Extension du Manuel Utilisateur pour architecture Virtualisée VMWare ESX Server

Cellier Clément, Maginot Quentin, Tripier Axel, Zaorski Jean, Zini Robin. 18 mars 2015

Les différentes méthodes pour se connecter

Automatisation de l administration système

Vade mecum installation et configuration d une machine virtuelle V5.1.0

Installation de VirtualPOPC-1 sur Ubuntu Server LTS 64bits

A Libre Ouvert. Médiathèque Jacques Ellul. le

Hyper-V R2 (Module 1) : Introduction

Architecture de serveurs virtualisés pour la communauté mathématique

EXALOGIC ELASTIC CLOUD MANAGEMENT

sudo apt get install linux headers `uname r` build essential gcc libqt3 mt libxalan110 libxerces27

Virtual Box Mettez un PC dans votre... PC

Maintenance et gestion approfondie des Systèmes d exploitation Master 2 SILI. Année universitaire David Genest

VIRTUALISATION : MYTHES & RÉALITÉS

PPE 1 PRISE EN MAIN DE VMWARE VSPHERE 5.5 & CONFIGURATION D UNE MACHINE VIRTUELLE

OCS Inventory & GLPI

Réalisation d un portail captif d accès authentifié à Internet

Network Shutdown Module V3 Extension du Manuel Utilisateur pour architecture Virtualisée VMWare ESX Server 3, 3.5

Installation de la plate-forme Liberacces 2.0 «Intégrale» avec LiberInstall

Exemple : vous voulez tester votre site en local avant de l uploader via FTP chez votre hébergeur externe.

Un exemple de cloud au LUPM : Stratuslab

Tuto 2 : Configuration Virtual box, Configuration et installation du serveur XiBO

Chapitre 2 : Abstraction et Virtualisation

Connexion à distance. Pour configurer les automates Beckhoff via un PC de programmation VERSION : 1.0 / PH


Enoncé du TP 8 Système

Grid 5000 : Administration d une infrastructure distribuée et développement d outils de déploiement et d isolation réseau

INTERNET est un RESEAU D ORDINATEURS RELIES ENTRE EUX A L ECHELLE PLANETAIRE. Internet : interconnexion de réseaux (anglais : net = réseau)

1. Warm up Activity: Single Node

IKare Guide utilisateur

Filière métier : Administrateur Virtualisation

Installer un serveur web de développement avec VirtualBox

Mise en œuvre d un poste virtuel

Tutoriel compte-rendu Mission 1

04/02/2014 Tutoriel. Lubuntu & glpi. thomas [NOM DE LA SOCIETE]

Processus Internes équipe technique Octopuce

vcenter Server 1. Interface Lancez le vsphere Client et connectez vous à vcenter Server. Voici la page d accueil de vcenter Server.

BTS SIO Dossier BTS. PURCHLA Romain


L'automatisation open source pour SI complexes

Le Cloud Open-Mind! Emilien Macchi

CSI351 Systèmes d exploitation Instructions pour rouler Linux avec Virtual PC dans la salle de labo 2052

SaltStack pour la gestion de parc

Kernel based Virtual Machine

Virtualisation : explorez le champ des possibles avec VMware

CONFIGURER ET DÉPLOYER UN CLOUD PRIVÉ AVEC SYSTEM CENTER 2012

Retour d expérience de la plateforme de virtualisation sous Proxmox VE à l IPHC journée SysAdmin du 04/12/2014 à l INRA de Toulouse

Kernel based Virtual Machine

Zabbix. garder un oeil toujours ouvert. - Creative Commons BY-SA

Configuration matériel. Tâche 2 : Installation proprement dite de l application sur un serveur de test virtualisé sous VmWare Workstation.

Content Switch ou routage de niveau HTTP

ArcGis Server 10 (sur VM CentOS bits) DOCUMENT D INSTALLATION

Informatique en nuage Cloud Computing. G. Urvoy-Keller

Système Principal (hôte) 2008 Enterprise x64

DOCKER MEETUP. Christophe Labouisse

G.U.S.T.A.V. Gestion Unifiée des Systèmes de fichiers Transposée aux Appareillages Virtuels G U S T A V

Automatiser le Software-Defined Data Center avec vcloud Automation Center

Technique et architecture de l offre Suite infrastructure cloud. SFR Business Team - Présentation

Service Cloud Recherche

DmilZ pour le forum Kimsufi.com. How-To : ESXi avec une seule IPv4 et une IPv6. Sommaire Historique Introduction...

Automatisation de la découverte, de la surveillance et de l analyse des causes premières dans le datacenter virtualisé (VDC) EMC SERVER MANAGER

EN Télécom & Réseau S Utiliser VMWARE

Du Datacenter au Cloud Quels challenges? Quelles solutions? Christophe Dubos Architecte Microsoft

Simple Database Monitoring - SDBM Guide de l'usager

THEME : Mise en place d une plateforme d enseignement à distance

Secure SHell. Faites communiquer vos ordinateurs! Romain Vimont ( R om)

Tests de montée en charge & Haute disponibilité

Configuration du serveur ESX

Open Source Job Scheduler. Installation(s)

But de cette présentation. Bac à sable (Sandbox) Principes. Principes. Hainaut P

Travailler à l'ensimag avec son matériel personnel

Forfaits de gestion iweb Listes des services et des logiciels pris en charge

Hyper-V chez PSA. Stéphane CHOVET Spécialise Windows/Hyper-V

Le tout à l usage dans un IaaS public «Comment une plateforme industrielle permet de déployer des usages applicatifs en accord avec cette promesse»

PLATE-FORME DE CLOUD COMPUTING SLAPOS. Intégration d applications

Cloud Computing. Groupe : Vincent, Mohammed, Yannick, Allan Tuteur : Mr. NUSSBAUM Lucas Année : 2009/2010

ARCHITECTURE ET SYSTÈMES D'EXPLOITATIONS

Lab Westcon-F5-Vmware. Frédéric Nakhle Directeur technique Westcon Nicolas Berthier Consultant Avant-vente F5

Universal Robots. Fiche Méthode : Installation du simulateur Polyscope

ROUTAGE. Répondez aux questions suivantes : (A chaque fois pour XP et pour Debian)

Notre Catalogue des Formations IT / 2015

SOMMAIRE. 01_Installation ESXi Serveur HP.doc. Chapitre 1 Installation ESXi 5.1 2

CA Automation Suite for Data Centers

Table des matières. 1. Installation de VMware ESXI Pré-requis Installation... 3

Stéphane DERACO, DSI CNRS l Argos Devops : de l hyperviseur aux conteneurs l 11/12/2014 DOCKER

L accès aux Clouds (Académiques)

vcloud Director Comment créer et gérer son «Cloud» Jean-Claude DAUNOIS Senior Systems Engineer VMware

VMware ESX/ESXi. 1. Les composants d ESX. VMware ESX4 est le cœur de l infrastructure vsphere 4.

Déploiement de owncloud à la DT/INSU

Table des matières 1. Introduction. 1. Avant-propos Remerciements Chapitre 1 Virtualisation de serveurs

IaaS à la sauce Portails Focus sur. Pierre Aubert Orange Portails OF/DMGP/Portails/DOP 1 er Juillet 2013

Guide Installation Serveur Extensive Testing

Travailler à l'ensimag avec son matériel personnel

Transcription:

VAGRANT POUR LES DÉVELOPPEURS Alexis Seigneurin - @aseigneurin Ippon Technologies - @ippontech (Flèches droite/gauche et haut/bas pour naviguer, ESC pour tout afficher)

DEMANDEZ LE PROGRAMME Vagrant? Création d'une VM simple Reconstitution d'une infra Repackaging de boxes

VAGRANT?

VAGRANT Orchestration de machines virtuelles VMs redistribuables : Vagrantfile + base box Plutôt orienté développeur

FEATURES Virtualisation : VirtualBox, VMware, Hyper-V Configuration réseau + répertoire partagés Provisioning : Shell, Puppet, Chef...

CRÉATION D'UNE VM SIMPLE

CHOIX D'UNE BASE BOX https://vagrantcloud.com/ http://cloud-images.ubuntu.com/vagrant/...

VAGRANTFILE Vagrant.configure(VAGRANTFILE_API_VERSION) do config config.vm.box ="saucy-server-amd64" config.vm.box_url ="http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-va end config.vm.provision"shell", path:"scripts/provision.sh"

COMMANDES DE BASE $ vagrant up $ vagrant ssh $ vagrant status $ vagrant provision $ vagrant suspend / halt $ vagrant destroy

RECAP VM headless Up & running en 30 secondes Provisioning

REPRODUCTION D'UNE INFRA "RÉALISTE"

3 VMS : 2 back-ends Apache : fichier statique 1 front-end Nginx : load-balancer Nginx Apache #1 Apache #2

CONFIGURATION RÉSEAU 192.168.1.10 : 80 : 8010 Apache #1 192.168.1.11 : 80 : 8011 192.168.1.12 : 80 : 8012

VAGRANTFILE Vagrant.configure(VAGRANTFILE_API_VERSION) do config config.vm.box ="saucy-server-amd64" config.vm.box_url ="http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-va config.vm.provision"shell", path:"scripts/provision-shared.sh" config.vm.define"back-end-1" do backend1 backend1.vm.network"private_network", ip:"192.168.1.11", virtualbox intnet:"network1" backend1.vm.network"forwarded_port", guest: 80, host: 8011 backend1.vm.provision"shell", path:"scripts/provision-backend-1.sh" end config.vm.define"back-end-2" do backend2 backend2.vm.network"private_network", ip:"192.168.1.12", virtualbox intnet:"network1" backend2.vm.network"forwarded_port", guest: 80, host: 8012 backend2.vm.provision"shell", path:"scripts/provision-backend-2.sh" end config.vm.define"front-end" do frontend frontend.vm.network"private_network", ip:"192.168.1.10", virtualbox intnet:"network1" frontend.vm.network"forwarded_port", guest: 80, host: 8010 frontend.vm.provision"shell", path:"scripts/provision-frontend.sh" end end

COMMANDER UNE VM $ vagrant up back-end-1 $ curl localhost:8011 $ vagrant status

COMMANDER TOUTES LES VM $ vagrant up $ curl localhost:8011 $ curl localhost:8012 $ curl localhost:8010 $ curl localhost:8010 $ vagrant suspend back-end-1 $ curl localhost:8010

RECAP 3 VMs "isolées ensemble" Up & running en 2 minutes 30

MAIS... 3 VMs = 3 provisioning 3 x apt-get update 2 x installation Apache

REPACKAGING DE BOXES

VM > BOX Boxes : Nom et/ou URL Source : en local, http://, file:// $ vagrant box list

PROCÉDURE $ VBoxManage list vms $ vagrant package --base <...> --output <...>.box $ vagrant box add <...> <...>.box $ vagrant box list

VAGRANTFILE Vagrant.configure(VAGRANTFILE_API_VERSION) do config config.vm.define"back-end-1" do backend1 backend1.vm.box ="back-end-1" backend1.vm.network"private_network", ip:"192.168.1.11", virtualbox intnet:"network2" backend1.vm.network"forwarded_port", guest: 80, host: 9011 end config.vm.define"back-end-2" do backend2 backend2.vm.box ="back-end-2" backend2.vm.network"private_network", ip:"192.168.1.12", virtualbox intnet:"network2" backend2.vm.network"forwarded_port", guest: 80, host: 9012 end config.vm.define"front-end" do frontend frontend.vm.box ="front-end" frontend.vm.network"private_network", ip:"192.168.1.10", virtualbox intnet:"network2" frontend.vm.network"forwarded_port", guest: 80, host: 9010 end end

RECAP Up & running en 1 minutes 30

MAIS... Pas automatisé Pas de contrôle sur la box d'origine -> Packer

RECOMMENDATIONS

UTILISER DES BASE BOXES DE BASE Si une base box standard convient Si le provisioning est simple

UTILISER DES BASE BOXES REPACKAGÉES Si une base box standard convient Si le provisioning est long

UTILISER DES BASE BOXES PACKER Si une base box standard ne convient pas Si la target n'est pas (que) Vagrant

QUESTIONS? @aseigneurin Code : github.com/aseigneurin/pres-vagrant-breizhcamp Slides : aseigneurin.github.io/pres-vagrant-breizhcamp