diff --git a/README.md b/README.md index 96de0ca..e88619a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Ansible playbook for base and initial configuration of web server hosting my per ## Assumptions Before you can run this, a few things are assumed: -- You have a clean, minimal Ubuntu 14.04 host up and running +- You have a clean, minimal Debian 8 host up and running - You have a user account with password-less SSH access to the machine - You have sudo privileges on the remote host - You have created a `hosts` file with something like: @@ -20,24 +20,6 @@ Once you've satisfied the the above assumptions, you can execute: $ ansible-playbook web.yml -i hosts -K -## Testing in a VM (KVM) -A simple way to test locally in a virtual machine using libvirt + KVM: - - $ sudo virt-install -n web01 -r 1024 --vcpus 2 \ - -l http://ubuntu.mirror.ac.ke/ubuntu/dists/trusty/main/installer-amd64/ \ - --os-type=linux --os-variant=ubuntusaucy \ - --disk /var/lib/libvirt/images/web01.qcow2,device=disk,bus=virtio,format=qcow2,size=40 \ - --vnc --cpuset=1,2 -x "auto=true priority=critical url=https://help.ubuntu.com/lts/installation-guide/example-preseed.txt" - -This boots from a network Ubuntu mirror, then uses a preseed to automate the OS installation. - -## Testing in Vagrant -Not as simple as on GNU/Linux with KVM, but still easy: - - $ vagrant up - -A new VirtualBox VM will come up with the IP `192.168.33.10`. - ## License Copyright (C) 2014 - 2015 Alan Orth diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index 6c5496a..0000000 --- a/Vagrantfile +++ /dev/null @@ -1,86 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -# All Vagrant configuration is done below. The "2" in Vagrant.configure -# configures the configuration version (we support older styles for -# backwards compatibility). Please don't change it unless you know what -# you're doing. -Vagrant.configure(2) do |config| - # The most common configuration options are documented and commented below. - # For a complete reference, please see the online documentation at - # https://docs.vagrantup.com. - - # Every Vagrant development environment requires a box. You can search for - # boxes at https://atlas.hashicorp.com/search. - config.vm.box = "ubuntu/vivid64" - - # Disable automatic box update checking. If you disable this, then - # boxes will only be checked for updates when the user runs - # `vagrant box outdated`. This is not recommended. - # config.vm.box_check_update = false - - # Create a forwarded port mapping which allows access to a specific port - # within the machine from a port on the host machine. In the example below, - # accessing "localhost:8080" will access port 80 on the guest machine. - # config.vm.network "forwarded_port", guest: 80, host: 8080 - - # 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.11" - - # Create a public network, which generally matched to bridged network. - # Bridged networks make the machine appear as another physical device on - # your network. - config.vm.network "public_network" - - # If true, then any SSH connections made will enable agent forwarding. - # Default value: false - # config.ssh.forward_agent = true - - # Share an additional folder to the guest VM. The first argument is - # the path on the host to the actual folder. The second argument is - # the path on the guest to mount the folder. And the optional third - # argument is a set of non-required options. - # config.vm.synced_folder "../data", "/vagrant_data" - - # Provider-specific configuration so you can fine-tune various - # backing providers for Vagrant. These expose provider-specific options. - # Example for VirtualBox: - # - config.vm.provider "virtualbox" do |vb| - # Don't boot with headless mode - #vb.gui = true - - # Use VBoxManage to customize the VM. For example to change memory: - vb.customize ["modifyvm", :id, "--memory", "1024"] - end - # - # View the documentation for the provider you're using for more - # information on available options. - - # Enable provisioning with CFEngine. CFEngine Community packages are - # automatically installed. For example, configure the host as a - # policy server and optionally a policy file to run: - # - # # Customize the amount of memory on the VM: - # vb.memory = "1024" - # end - # - # View the documentation for the provider you are using for more - # information on available options. - - # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies - # such as FTP and Heroku are also available. See the documentation at - # https://docs.vagrantup.com/v2/push/atlas.html for more information. - # config.push.define "atlas" do |push| - # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME" - # end - - # Enable provisioning with a shell script. Additional provisioners such as - # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the - # documentation for more information about their specific syntax and use. - # config.vm.provision "shell", inline: <<-SHELL - # sudo apt-get update - # sudo apt-get install -y apache2 - # SHELL -end