Skip to content

Testing (z.B. via Vagrant) #15

Open
@The-Compiler

Description

@The-Compiler

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:

  • Ich krieg's irgendwie nicht hin, dass der passwordstore am korrekten Ort in der VM landet und da die Secrets benutzt werden können.
  • 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?
  • Vagrant schmeisst bei mir (Archlinux) Ruby-Deprecationwarnings ohne Ende - vielleicht gibt's da inzwischen was besseres/anderes?

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions