studentenportal / deploy

:ship: The studentenportal.ch deployment
https://studentenportal.ch
0 stars 0 forks source link

Testing (z.B. via Vagrant) #15

Open The-Compiler opened 4 years ago

The-Compiler commented 4 years ago

Im deploy-new repo hatten wir ja ne Testumgebung mit Vagrant aufgesetzt. Ich wollte dies ursprünglich auch hier übernehmen, mit ein paar wenigen Änderungen:

diff --git Vagrantfile Vagrantfile
index 394bcc5..f42a758 100644
--- Vagrantfile
+++ Vagrantfile
@@ -1,16 +1,13 @@
 # -*- mode: ruby -*-
 # vi: set ft=ruby :

-# Make sure vagrant cloud is also used with older vagrant versions.
-Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')
-
 Vagrant.configure("2") do |config|

  config.vm.define "vagrant"

   # Every Vagrant development environment requires a box. You can search for
   # boxes at https://atlas.hashicorp.com/search.
-  config.vm.box = "nrclark/xenial64-minimal-libvirt"
+  config.vm.box = "ubuntu/bionic64"

   # Sync vagrant folder with rsync
   config.vm.synced_folder './', '/vagrant', type: 'rsync'
@@ -25,7 +22,8 @@ Vagrant.configure("2") do |config|
   config.vm.network "private_network", ip: "10.10.10.2"

   config.vm.provision "ansible_local" do |ansible|
-    ansible.playbook = "provision.yaml"
+    ansible.playbook = "site.yml"
     ansible.inventory_path = "inventory/vagrant"
+    ansible.compatibility_mode = "2.0"
   end
 end

Jedoch hab ich dabei einige Probleme:

So oder so: Ich schmeiss das jetzt mal aus, und deploye direkt auf den neuen Server - das was ich lokal sinnvoll testen konnte, habe ich getestet.

fabianhauser commented 4 years ago

Vagrant schmeisst bei mir (Archlinux) Ruby-Deprecationwarnings ohne Ende - vielleicht gibt's da inzwischen was besseres/anderes?

Vagrant wird seit einer Weile nicht mehr aktiv supported, so weit ich weiss - allerdings kenne ich bisher auch keine brauchbare Alternative.

Ich krieg's irgendwie nicht hin, dass der passwordstore am korrekten Ort in der VM landet und da die Secrets benutzt werden können.

Kann ich mir mal anschauen - allerdings bin ich z.Z. ziemlich ausgelastet, wird also frühestens nächste Woche.

Let's Encrypt wird wohl noch zu nem ziemlichen Problem werden, da die VM ja logischerweise nicht unter nem Hostnamen erreichbar ist - das müsste man dann wohl für Vagrant irgendwie rausnehmen?

Für testing von Let's encrypt gibt es pebble.

So oder so: Ich schmeiss das jetzt mal aus, und deploye direkt auf den neuen Server - das was ich lokal sinnvoll testen konnte, habe ich getestet.

Gefällt mir 👍

Können wir dann evtl. für ein Folgeprojekt anschauen.