From a06a40e917808846f9a8789797f16b84c90f2448 Mon Sep 17 00:00:00 2001 From: pierreozoux Date: Thu, 29 Jan 2015 11:11:12 +0000 Subject: [PATCH] Removes not updated documentation --- README.md | 58 +---------- Vagrantfile | 81 ---------------- cloud-config | 27 ------ to_migrate/doc/adding-an-application.md | 36 ------- to_migrate/doc/architecture-overview.md | 51 ---------- to_migrate/doc/deploying-a-server.md | 97 ------------------- ...veloping-dockerfiles-and-infrastructure.md | 29 ------ to_migrate/doc/getting-started-as-a-hoster.md | 87 ----------------- to_migrate/doc/migration-format.md | 40 -------- to_migrate/doc/migration-procedure.md | 31 ------ to_migrate/proc/dnr.md | 29 ------ to_migrate/proc/dns.md | 6 -- to_migrate/proc/email.md | 5 - to_migrate/proc/tls.md | 15 --- to_migrate/proc/webapp.md | 47 --------- 15 files changed, 2 insertions(+), 637 deletions(-) delete mode 100644 Vagrantfile delete mode 100644 cloud-config delete mode 100644 to_migrate/doc/adding-an-application.md delete mode 100644 to_migrate/doc/architecture-overview.md delete mode 100644 to_migrate/doc/deploying-a-server.md delete mode 100644 to_migrate/doc/developing-dockerfiles-and-infrastructure.md delete mode 100644 to_migrate/doc/getting-started-as-a-hoster.md delete mode 100644 to_migrate/doc/migration-format.md delete mode 100644 to_migrate/doc/migration-procedure.md delete mode 100644 to_migrate/proc/dnr.md delete mode 100644 to_migrate/proc/dns.md delete mode 100644 to_migrate/proc/email.md delete mode 100644 to_migrate/proc/tls.md delete mode 100644 to_migrate/proc/webapp.md diff --git a/README.md b/README.md index 7346203..1099a4d 100644 --- a/README.md +++ b/README.md @@ -1,60 +1,6 @@ ## IndieHosters -This repository contains the configuration and scripts we use to control our servers. -It can run inside Vagrant or [deploy to a server](doc/getting-started-as-a-hoster.md) +This repository contains the configuration and scripts I use to control my servers. -## Prerequisites to running this code with Vagrant: -- [vagrant](http://www.vagrantup.com/) -- [virtualbox](https://www.virtualbox.org/) -- nfs - - linux: run `apt-get install nfs-kernel-server`, or your OS equivalent -- [vagrant-hostsupdater](https://github.com/cogitatio/vagrant-hostsupdater) - - run `vagrant plugin install vagrant-hostsupdater` to install +There is no documentation yet, work in progress. If you want to use this repo, please send me an email. -## Get started: - -```bash -vagrant up -``` - -Wait for the provisioning to finish (~40mins), and go to your browser: https://indiehosters.dev - -If the process fails, for instance due to network problems, you can retry by running `vagrant provision`. - -### Set up a domain: - -```bash -vagrant ssh core-1 -sudo mkdir -p /data/import/example.dev/TLS -sudo cp /data/indiehosters/scripts/unsecure-certs/example.dev.pem /data/import/example.dev/TLS -sudo systemctl enable static@example.dev -sudo systemctl start static@example.dev -``` - -Check https://example.dev in your bowser! - -### Cleaning up - -To clean up stuff from previous runs of your VM, you can do: - -```bash -vagrant destroy -vagrant up -``` - -## Tests - -```bash -vagrant destroy -vagrant up -# Set up example.dev as above, and test https://example.dev in your browser -vagrant ssh core-1 -sudo su -/data/indiehosters/tests/start.sh -exit -exit -vagrant reload --provision -vagrant ssh core-1 -sudo su -/data/indiehosters/tests/finish.sh -``` diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index 36a1b42..0000000 --- a/Vagrantfile +++ /dev/null @@ -1,81 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! -VAGRANTFILE_API_VERSION = "2" - -Vagrant.require_version ">= 1.5.0" - -# Size of the CoreOS cluster created by Vagrant -$num_instances=1 - -# Official CoreOS channel from which updates should be downloaded -$update_channel='stable' - -# Setting for VirtualBox VMs -$vb_memory = 1024 -$vb_cpus = 1 - -BASE_IP_ADDR = ENV['BASE_IP_ADDR'] || "192.168.65" -HOSTNAME = ENV['HOSTNAME'] || "indiehosters.dev" - -Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| - config.vm.box = "coreos-%s" % $update_channel - config.vm.box_version = ">= 308.0.1" - config.vm.box_url = "http://%s.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json" % $update_channel - - config.vm.define "backup" do |backup| - backup.vm.provider :virtualbox do |vb| - vb.memory = 512 - vb.cpus = 1 - vb.check_guest_additions = false - vb.functional_vboxsf = false - end - # plugin conflict - if Vagrant.has_plugin?("vagrant-vbguest") then - backup.vbguest.auto_update = false - end - backup.vm.hostname = "backup.dev" - backup.vm.network :private_network, ip: "192.168.65.100" - end - - (1..$num_instances).each do |i| - config.vm.define "core-#{i}" do |core| - core.vm.provider :virtualbox do |vb| - vb.memory = $vb_memory - vb.cpus = $vb_cpus - # On VirtualBox, we don't have guest additions or a functional vboxsf - # in CoreOS, so tell Vagrant that so it can be smarter. - vb.check_guest_additions = false - vb.functional_vboxsf = false - end - # plugin conflict - if Vagrant.has_plugin?("vagrant-vbguest") then - core.vbguest.auto_update = false - end - - core.vm.hostname = HOSTNAME - core.hostsupdater.aliases = ["example.dev"] - core.vm.network :private_network, ip: "#{BASE_IP_ADDR}.#{i+1}" - core.vm.synced_folder ".", "/data/indiehosters", id: "coreos-indiehosters", :nfs => true, :mount_options => ['nolock,vers=3,udp'] - core.vm.provision :file, source: "./cloud-config", destination: "/tmp/vagrantfile-user-data" - $install_insecure_keys = <