Outils pour utilisateurs

Outils du site


devweb:vagrant (lu 25382 fois)

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
devweb:vagrant [28-07-2016 17:11]
edmc73
devweb:vagrant [19-09-2016 21:46] (Version actuelle)
edmc73
Ligne 16: Ligne 16:
  
 J'ai trouvé celle ci => https://atlas.hashicorp.com/tjo/boxes/debian-jessie64-lamp-stack J'ai trouvé celle ci => https://atlas.hashicorp.com/tjo/boxes/debian-jessie64-lamp-stack
- 
-Mais finalement, j'ai eu un problème avec le support VT-x et j'ai du installer une version 32bit de debian, celle-ci 
- 
-https://pety.dynu.net/cloudbank_repo/debian_jessie_32bit.box 
- 
  
  
Ligne 30: Ligne 25:
  
 <code> <code>
-$ vagrant init mon_projet ~/Téléchargements/debian_jessie_32bit.box +$ vagrant init tjo/debian-jessie64-lamp-stack; vagrant up --provider virtualbox 
 A `Vagrantfile` has been placed in this directory. You are now A `Vagrantfile` has been placed in this directory. You are now
 ready to `vagrant up` your first virtual environment! Please read ready to `vagrant up` your first virtual environment! Please read
 the comments in the Vagrantfile as well as documentation on the comments in the Vagrantfile as well as documentation on
 `vagrantup.com` for more information on using Vagrant. `vagrantup.com` for more information on using Vagrant.
- 
- 
- 
-$ vagrant up 
 Bringing machine 'default' up with 'virtualbox' provider... Bringing machine 'default' up with 'virtualbox' provider...
-==> default: Box 'mon_projet' could not be found. Attempting to find and install... +==> default: Importing base box 'tjo/debian-jessie64-lamp-stack'...
-    default: Box Provider: virtualbox +
-    default: Box Version: >= 0 +
-==> default: Box file was not detected as metadata. Adding it directly... +
-==> default: Adding box 'mon_projet' (v0) for provider: virtualbox +
-    default: Unpacking necessary files from: file:///home/user/T%C3%A9l%C3%A9chargements/debian_jessie_32bit.box +
-==> default: Successfully added box 'mon_projet' (v0) for 'virtualbox'+
-==> default: Importing base box 'mon_projet'...+
 ==> default: Matching MAC address for NAT networking... ==> default: Matching MAC address for NAT networking...
-==> default: Setting the name of the VM: mon_projet_default_1469714598425_85852+==> default: Checking if box 'tjo/debian-jessie64-lamp-stack' is up to date... 
 +==> default: Setting the name of the VM: QAint_default_1469718758382_40918
 ==> default: Clearing any previously set network interfaces... ==> default: Clearing any previously set network interfaces...
 ==> default: Preparing network interfaces based on configuration... ==> default: Preparing network interfaces based on configuration...
Ligne 60: Ligne 46:
     default: SSH username: vagrant     default: SSH username: vagrant
     default: SSH auth method: private key     default: SSH auth method: private key
-    default:  
-    default: Vagrant insecure key detected. Vagrant will automatically replace 
-    default: this with a newly generated keypair for better security. 
-    default:  
-    default: Inserting generated public key within guest... 
-    default: Removing insecure key from the guest if it's present... 
-    default: Key inserted! Disconnecting and reconnecting using new SSH key... 
 ==> default: Machine booted and ready! ==> default: Machine booted and ready!
 ==> default: Checking for guest additions in VM... ==> default: Checking for guest additions in VM...
Ligne 74: Ligne 53:
 </code> </code>
  
-Nous voici avec une VM de debian jessie toute fraiche.+Nous voici avec une VM de debian jessie avec de apache, mysql et php d'installé. 
 Pour se logguer simplement en ssh, tapez la commande Pour se logguer simplement en ssh, tapez la commande
   vagrant ssh   vagrant ssh
Ligne 80: Ligne 60:
 Pour arrêter la machine, tapez la commande Pour arrêter la machine, tapez la commande
   vagrant halt   vagrant halt
 +
 +Modifiez le fichier Vagrantfile et configurer une adresse ip pour votre machine
 +
 +<code>
 +  # Create a private network, which allows host-only access to the machine
 +  # using a specific IP.
 +  config.vm.network "private_network", ip: "192.168.33.10"
 +</code>
 +
 +===== Scotch Box =====
 +
 +Scotch Box fourni une box vagrant toute prête sans besoin de puppet ou cook chef
 +  * https://box.scotch.io/
 +
  
devweb/vagrant.1469718672.txt.gz · Dernière modification: 28-07-2016 17:11 de edmc73