From 5f622ceadca939f055c8146cf31138d0f14600b4 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Sun, 5 Mar 2017 14:40:56 -0500 Subject: [PATCH] Add nextcloud vagrant --- ahoskingit/config.yaml | 7 + .../default/virtualbox/action_provision | 1 + .../default/virtualbox/action_set_name | 1 + .../machines/default/virtualbox/creator_uid | 1 + .../.vagrant/machines/default/virtualbox/id | 1 + .../machines/default/virtualbox/index_uuid | 1 + .../machines/default/virtualbox/private_key | 27 + .../default/virtualbox/synced_folders | 1 + .../inventory/vagrant_ansible_inventory | 3 + ahoskingit/nextcloud/Vagrantfile | 20 + .../ubuntu-xenial-16.04-cloudimg-console.log | 752 ++++++++++++++++++ vagrant.mixin.rb | 71 ++ 12 files changed, 886 insertions(+) create mode 100644 ahoskingit/config.yaml create mode 100644 ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/action_provision create mode 100644 ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/action_set_name create mode 100644 ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/creator_uid create mode 100644 ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/id create mode 100644 ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/index_uuid create mode 100644 ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/private_key create mode 100644 ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/synced_folders create mode 100644 ahoskingit/nextcloud/.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory create mode 100644 ahoskingit/nextcloud/Vagrantfile create mode 100644 ahoskingit/nextcloud/ubuntu-xenial-16.04-cloudimg-console.log create mode 100644 vagrant.mixin.rb diff --git a/ahoskingit/config.yaml b/ahoskingit/config.yaml new file mode 100644 index 0000000..8beb466 --- /dev/null +++ b/ahoskingit/config.yaml @@ -0,0 +1,7 @@ +--- +vagrants: + "ubuntu/trusty64": "ubuntu/trusty64" + "ubuntu/xenial64": "ubuntu/xenial64" + +hosts: + nextcloud: 10.200.200.2 diff --git a/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/action_provision b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/action_provision new file mode 100644 index 0000000..494bd47 --- /dev/null +++ b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/action_provision @@ -0,0 +1 @@ +1.5:e23c4560-644a-4240-b84a-5df0a5fbe82e \ No newline at end of file diff --git a/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/action_set_name b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/action_set_name new file mode 100644 index 0000000..074114f --- /dev/null +++ b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/action_set_name @@ -0,0 +1 @@ +1483385664 \ No newline at end of file diff --git a/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/creator_uid b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/creator_uid new file mode 100644 index 0000000..e37d32a --- /dev/null +++ b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/creator_uid @@ -0,0 +1 @@ +1000 \ No newline at end of file diff --git a/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/id b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/id new file mode 100644 index 0000000..838690e --- /dev/null +++ b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/id @@ -0,0 +1 @@ +e23c4560-644a-4240-b84a-5df0a5fbe82e \ No newline at end of file diff --git a/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/index_uuid b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/index_uuid new file mode 100644 index 0000000..4d56105 --- /dev/null +++ b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/index_uuid @@ -0,0 +1 @@ +849064540a2247afaa4dc88b6540a015 \ No newline at end of file diff --git a/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/private_key b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/private_key new file mode 100644 index 0000000..7d8fe4d --- /dev/null +++ b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/private_key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEogIBAAKCAQEAnkIUvRbf5wE9a2+x/GEpLQNvpU/SQTjVGemGaSQBuWacD4Ni +qQ5BnuLsevpaogQHUK9Z9Ssj0U8OY755MfYUQp2/gWqJGBwb4/MFh5BJ8tKqAWOF +/iO0xIHrnHfTk3moq8RuWAm4ats4ecUTPYtkwJu1hHOnxf3yTeoeOfMMyc+Hjg9U +7lDob969sA/d0R3qBG7f2waV8zfrt4zVYVNx3XaS2PqwCm9OXNkRoWni4Fnv32PT +BAbTUfwB+YwFxZdkVLDzhEVb9kKpusPt0bOZq8Ys56bUeIfaODh0uVnCAZ+Qm2gs +0M2bMNQb29C/UfeEpOZN+mWiZfq+ACaYC2r4OwIDAQABAoIBAC5wV6OQ9czUiVBg +a0sSu8Fws68/uAPZiHbdFsr9fOAJoxvOQwI2o7za++euVTAbnIXpnq0Zpp4B48gT +GX82pYVSwuJX/7iqbui55FJ+XaS6epaDvMrxcVcEhL3aT6SD26HjtzlwSMRaZb0d +vmKd58e5KU+fnIi11wdT/uCkWIlTPUgGWHhDtSlXSGJFiavK77Zff/JwIWraXwU6 +EBgMKiWjCEDLHZvyi095I3rJwo6m8ZtVJMZm3ys+hpUSSr8VBRJOD8rkIu9AspS8 +tKVIct0e0hq5D09+pINOWQah7xDZUDzVyP3ldnBQ11J+qEHMZA4xaMqpiIKTVzSq +iZAhKlkCgYEA0humB1y71DtP4zBCFlckb2P8qgecdyFqJ5mSCxpqugM6AQtfquwp +fgaoQnAZx6Tpxhjg2UBM6IZ5ZfN1U5HV9gVwc8nKdizXTOrj2S+/dhuHkcNjIpD2 +86a6oJ5jxdou4OlomUW6ilAfdGD51sSlGzDwdKE63RQFSu6d/IHTpxcCgYEAwNM0 +6hFfpyCf0QOJ8V1K8NTukLF7S2oYEw/JwiRZG4Hv0J/BMWfpabPA7IhsIvKTZWwP +nSItrsHL7vLXZpYABWhvqVeFUrZgAn+q69vOQGBCcz0kXyoBi5v028zBHUbdSHyT +318qfYTFOA4mCYvITbQM+M2gxyfeZXNMmED97n0CgYBnDHZ23+2jnt+ErvOK33yY +QXL3tbnw1+untnNhjLhRuSlmv7xRKXkEPaGizDZoq6KYrTUCeL3/wYyjCzA9J6bH +/kz0DUGGimGicQYFTJzcAY6RWEIz/uOQBvM7udN3g5ZAa1oI6qEeG0QCIVoIEvRj +jLIyka08JwidgsDryoUTSwKBgBhxrd+OXEXfiOMCQ9ZpMTreg2+sUCj7RhoEglsu +KG2oRzJ3ThJpTdmsg+R4Vt0HS1AsJr6QuqHQx31/I3dJxK7q0lzxT2Fw5TLr5EsK +Dldy3HmnYpj9xjxghOXoSwLfHOY3hLdoZQaMckPs5z2Gjtnq3UodJyiYEUVjHG6g +rpAxAoGAFoVrJSLPrMNuFbbKOZFsBhxrJBaw0zGA0Pe50MiajED7dveqD89wUPHb +7sUTj6m7JLKiVnwq4B+Bjmb0bj8C/DbBAVx7XdSOIacpZUpP3l3tyBDL4pLcZ5FO +62lM06kiKJp6eA7cfVX+HwvAXmua2qKqyh27eyXoWSsm7SeNEkU= +-----END RSA PRIVATE KEY----- diff --git a/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/synced_folders b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/synced_folders new file mode 100644 index 0000000..e5e94ec --- /dev/null +++ b/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/synced_folders @@ -0,0 +1 @@ +{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/crimson/projects/orchestration.vagrants/ahoskingit/nextcloud","disabled":false,"__vagrantfile":true}}} \ No newline at end of file diff --git a/ahoskingit/nextcloud/.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory b/ahoskingit/nextcloud/.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory new file mode 100644 index 0000000..1324987 --- /dev/null +++ b/ahoskingit/nextcloud/.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory @@ -0,0 +1,3 @@ +# Generated by Vagrant + +default ansible_ssh_host=127.0.0.1 ansible_ssh_port=2222 ansible_ssh_user='vagrant' ansible_ssh_private_key_file='/home/crimson/projects/orchestration.vagrants/ahoskingit/nextcloud/.vagrant/machines/default/virtualbox/private_key' diff --git a/ahoskingit/nextcloud/Vagrantfile b/ahoskingit/nextcloud/Vagrantfile new file mode 100644 index 0000000..fab476d --- /dev/null +++ b/ahoskingit/nextcloud/Vagrantfile @@ -0,0 +1,20 @@ +# -*- 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.configure(VAGRANTFILE_API_VERSION) do |config| + + config.vm.box = "ubuntu/trusty64" + config.vm.hostname = "nextcloud" + playbook = 'nextcloud' + client = 'ahoskingit' + + config.vm.provider :virtualbox do |vb| + vb.customize ['modifyvm', :id, '--memory', '1024'] + end + + eval(IO.read("../../vagrant.mixin.rb"), binding) + +end diff --git a/ahoskingit/nextcloud/ubuntu-xenial-16.04-cloudimg-console.log b/ahoskingit/nextcloud/ubuntu-xenial-16.04-cloudimg-console.log new file mode 100644 index 0000000..b04a8e8 --- /dev/null +++ b/ahoskingit/nextcloud/ubuntu-xenial-16.04-cloudimg-console.log @@ -0,0 +1,752 @@ +[ 0.000000] Initializing cgroup subsys cpuset +[ 0.000000] Initializing cgroup subsys cpu +[ 0.000000] Initializing cgroup subsys cpuacct +[ 0.000000] Linux version 4.4.0-57-generic (buildd@lgw01-54) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #78-Ubuntu SMP Fri Dec 2:5:32 U 2016 (Ubuntu 4.4.0-57.78-generic 4.4.35) +[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-57-generic root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0 +[ 0.000000] KERNEL supported cpus: +[ 0.0000] InelGenuineIntel +[ 0.0000] AMD AuthenticAMD +[ 0.000000] Centaur CentaurHauls +[ 0.000000] ------------[ cut here ]------------ +[ 0.000000] WARNING: CPU: 0 PID: 0 at /build/linux-7x12eW/linux-4.4.0/arch/x86/kernel/fpu/xstate.c:517 fpu__init_system_xstate+0x38b/0x75a() +[ 0.000000] XSAVE consistency problem, dumping leaves +[ 0.000000] Modules linked in: +[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.0-57-generic #78-Ubuntu +[ 0.000000] 0000000000000086 adbe7730bec5c5af ffffffff81e03d80 ffffffff813f6f33 +[ 0.000000] ffffffff81e03dc8 ffffffff81ca5ea0 ffffff81e03db8 ffffffff810812d2 +[ 0.000000] ffffffff81e03e48 ffffffff81e03e4 000000000000008 000000000010 +[ 0.000000] Call Trace: +[ 0.000000] [] dump_stack+0x63/0x90 +[ 0.000000] [] warn_slowpat_cmmn+0x82/0xc0 +[ 0.000000] [] warn_slowpath_fmt+0x5c/0x80 +[ 0.000000] [] ? xfeature_size+0x59/0x77 +[ 0.00000] [fffffff8f6e1>] fpu__init_system_xstate+0x38b/0x75a +[ 0.000000] [] ? early_idt_handler_array+0x120/0x120 +[ 0.000000] [] fpu__init_system+0x10d/x25 +[ 0.000000] [] early_cpu_init+0x139/0x13e +[ 0.000000] [] ? early_cpu_init+0x139/0x13e +[ 0.000000] [] setup_arch+0xb4/0xd1e +[ 0.000000] [] ? early_idt_handler_array+0x120/0x120 +[ 0.000000] [] start_kernel+0xe4/0x4a2 +[ 0.000000] [] ? early_idt_handler_array+0x120/0x120 +[ .000000] [] x86_64_start_reservations+0x2a/0x2c +[ 0.000000] [] x86_64_start_kernel+0x14a/0x16d +[ 0.000000] ---[ end trace 4d5ff9f2f68c4233 ]--- +[ 0.000000] CPUID[0d, 00]: eax=00000007 ebx=00000440 ecx=00000440 edx=00000000 +[ 0.000000] CPUID[0d, 01]: eax=00000000 ebx=000003c0 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 02]: eax=00000100 ebx=00000240 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 03]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 04]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 05: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 06]: eax=00000 ebx=000000ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 07]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 08]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 09]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 0a]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 0b]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 0c]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 0d]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 0e]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 0f]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 10]: eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 +[ 0.000000] CPUID[0d, 11]: eax=00000000 ebx=0000000 ecx=0000000edx=00000000 +[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 +[ 0.000000] x86/fpu: Supporting XSA featue x0: 'x8flating point registers' +[ 0.000000] x86/fpu: SupotingSAE feur 0x02:'SE egistes' +[ 0.0000] 86/fpu: Supporting XSAVE feature 0x04: 'AVX registers' +[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 1088 bytes, using 'standard' format. +[ 0.000000] x86/fpu: Using 'lazy' FPU context switches. +[ 0.000000] e820: BIOS-provided physical RAM map: +[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable +[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved +[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] rservd [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003ffeffff] usable +[ 0.000000] BIOS-e820: [mem 0x000000003fff0000-0x000000003fffffff] ACPI data +[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved +[ 0.000000] NX (Execute Disable) protection: active +[ 0.000000] SMBIOS 2.5 present. +[ 0.0000] Hypervsor detected: KVM +[ 0.000000] e820: last_pfn = 0x3fff0 maxarh_fn = 0x400000000 +[ 0.000000] MTRR: Disabled +[ 0.000000] x86/PAT: MTRRs disabled, skipping PAT initialization too. +[ 0.000000] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC +[ 0.000000] CPU MTRRs all blank - virtualized system. +[ 0.000000] found SMP MP-table at [mem 0x0009fff0-0x09fff] mapped t [ffff8800009fff0] [ 0.000000] Scanning 1 areas for low memory corruption +[ 0.000000] RAMDISK: [mem 0x36b74000-0x375b1fff] +[ 0.000000] ACPI: Early table checksum erification disabled +[ 0.000000] ACP RDP 0x00000000000E0000 000024 (v02 VBOX ) +[ 0.000000] ACPI: XSDT 0x000000003FFF0030 00003C (v01 VBOX VBOXXSDT 00000001 ASL 00000061) +[ 0.000000] ACPI: FACP 0x000000003FFF00F0 0000F4 (v04 VBOX VBOXFACP 00000001 ASL 00000061) +[ 0.000000] ACPI: DSDT 0x000000003FFF0470 002118 (v01 VBOX VBOXBIOS 0000000 INTL 2016108) +[ 0.000000] ACPI: FACS 0x000000003FFF0200 000040 +[ 0.000000] ACPI: FACS 0x000000003FFF0200 000040 +[ 0.000000] ACPI: APIC 0x000000003FFF0240 00005C (v02 VBOX VBOXAPIC 00000001 ASL 00000061) +[ 0.000000] ACPI: SSDT 0x000000003FFF02A0 0001CC (v01 VBOX VBOXCPUT 00000002 INTL 20160108) +[ 0.000000] No NUMA configuration found +[ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000003ffeffff] +[ 0.000000] NODE_DATA(0) allocated [mm x3feb000-03fefff] [ 0.000] kvm-clock: Using msrs 4b56d01 and 4b564d00 +[ 0.000000] kvm-clock: cpu 0, msr 0:3ffe3001 primary cpu clock +[ 0.000000] kvm-clock: using sched offset of 3127554944 cycles +[ 0.000000] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns +[ 0.000000] Zone ranges: +[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff] +[ 0.000000] DMA32 [mem 0x0000000001000000-0x000000003ffeffff] +[ 0.000000] oral empty +[ 0.000000] Device empty +[ 0.000000] Movable zone start for each node +[ 0.000000] Early memory node rangs +[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff] +[ 0.000000] node 0: [mem 0x0000000000100000-0x000000003ffeffff] +[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003ffeffff] +[ 0.000000] ACPI: PM-Timer IO Port: 0x4008 +[ 0.000000] IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23 +[ .00000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) +[ 0.000000] ACPI: INT_SRC_OVR (bs bus_irq 9 global_irq 9 high level) +[ 0.000000] Using ACPI (MADT) for SMP configuration information +[ 0.000000] smpboot: Allowing 2 CPUs, 0 hotplug CPUs +[ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff] +[ 0.000] PM: Registered nosave memory:[mm 0x000900-00009fff] +[ 000000] PM: Registered nosave memory: [mem 0x0a00-0x00eff] + 000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff] +[ 0.000000] e820: [mem 0x40000000-0xfffbffff] available for PCI devices +[ 0.000000] Booting paravirtualized kernel on KVM +[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns +[ 0.000000] setup_peru: NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:2 nr_node_ids:1 +[ 0.000000] PERCPU: Embedded 33 pages/cpu @ffff88003fc00000 s98264 r8192 d28712 u1048576 +[ 0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes) +[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 257913 +[ 0.000000] Policy zone: DMA32 +[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-57-generic root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0 +[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) +[ 0.000000] Memory: 1002096K/1048120K available (8432K kernel cod, 1291K rwdaa, 3960K rodata, 1484K init, 1316K bss, 4024K reserved, 0K cma-reseve) +[ 0.000000] SLUB: HWalign=64, Order=0-3,MiObjects=, PU=2, Nodes=1 +[ 0.000000] Hierarchical RCU implementation. +[ 0.000000] Build-time adjusten o lea fnot to 64. +[ 0.000000] RU estrctngCPUs from NR_CPUS=512 to nr_cpu_ids=2. +[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=2 +[ 0.000000] NR_IRQS:33024 nr_irqs:440 16 +[ 0.000000] Console: colour VGA+ 80x25 +[ 0.000000] console [tty1] enabled +[ 0.000000] console [ttyS0] enabled +[ 0.000000] tsc: Detected 2592.006 MHz processor +[ 5.444365] Calibrating delay loop (skipped) preset value.. 5184.01 BogoMIPS (lpj=10368024) +[ 5.482807] pid_max: default: 32768 minimum: 301 +[ 5.576186] ACPI: Core revision 20150930 +[ 5.620086] ACPI: 2 ACPI AML tables successfully acquired and loaded +[ 5.726054] Security Framework initialized +[ 5.774706] Yama: becoming mindful. +[ 5.788331] AppArmor: AppArmor initialized +[ 5.819978] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) +[ 5.852170] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) +[ 5.859405] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes) +[ 5.865628] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes) +[ 5.866788] Initializing cgroup subsys io +[ 5.867484] Initializing cgroup subsys memory +[ 5.868208] Initializing cgroup subsys devices +[ 5.868932] Initializing cgroup subsys freezer +[ 5.960064] Initializing cgroup subsys net_cls +[ 6.059471] Initializing cgroup subsys perf_event +[ 6.108347] Initializing cgroup subsys net_prio +[ 6.109148] Initializing cgroup subsys hugetlb +[ 6.109872] Initializing cgroup subsys pids +[ 6.110654] CPU: Physical Processor ID: 0 +[ 6.111336] CPU: Processor Core ID: 0 +[ 6.162401] mce: CPU supports 0 MCE banks +[ 6.190867] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8 +[ 6.250431] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4 +[ 6.327605] Freeing SMP alternatives memory: 32K (ffffffff820b7000 - ffffffff820bf000) +[ 6.473895] ftrace: allocating 32063 entries in 126 pages +[ 6.611003] smpboot: APIC(0) Converting physical 0 to logical package 0 +[ 6.660122] smpboot: Max logical packages: 1 +[ 6.667422] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 +[ 6.775387] smpboot: CPU0: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz (family: 0x6, model: 0x4e, stepping: 0x3) +[ 6.838761] Performance Events: unsupported p6 CPU model 78 no PMU driver, software events only. +[ 6.840942] KVM setup paravirtual spinlock +[ 6.910576] x86: Booting SMP configuration: +[ 6.964072] .... node #0, CPUs: #1 +[ 6.974180] kvm-clock: cpu 1, msr 0:3ffe3041, secondary cpu clock +[ 6.993816] mce: CPU supports 0 MCE banks +[ 7.000078] x86: Booted up 1 node, 2 CPUs +[ 7.006492] smpboot: Total of 2 processors activated (10368.02 BogoMIPS) +[ 7.022525] devtmpfs: initialized +[ 7.034928] evm: security.selinux +[ 7.035617] evm: security.SMACK64 +[ 7.037387] evm: security.SMACK64EXEC +[ 7.040744] evm: security.SMACK64TRANSMUTE +[ 7.046871] evm: security.SMACK64MMAP +[ 7.069567] evm: security.ima +[ 7.076737] evm: security.capability +[ 7.077939] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns +[ 7.083034] pinctrl core: initialized pinctrl subsystem +[ 7.084362] RTC time: 7:58:42, date: 12/26/16 +[ 7.104257] NET: Registered protocol family 16 +[ 7.123769] cpuidle: using governor ladder +[ 7.135506] cpuidle: using governor menu +[ 7.136955] PCCT header not found. +[ 7.138098] ACPI: bus type PCI registered +[ 7.139281] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 +[ 7.143808] PCI: Using configuration type 1 for base access +[ 7.165607] ACPI: Added _OSI(Module Device) +[ 7.167047] ACPI: Added _OSI(Processor Device) +[ 7.168352] ACPI: Added _OSI(3.0 _SCP Extensions) +[ 7.183644] ACPI: Added _OSI(Processor Aggregator Device) +[ 7.235898] ACPI: Executed 1 blocks of module-level executable AML code +[ 7.245740] ACPI: Interpreter enabled +[ 7.251848] ACPI: (supports S0 S5) +[ 7.256203] ACPI: Using IOAPIC for interrupt routing +[ 7.261703] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug +[ 7.306865] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) +[ 7.317398] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI] +[ 7.318381] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM +[ 7.319345] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge. +[ 7.342837] PCI host bridge to bus 0000:00 +[ 7.343839] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window] +[ 7.345183] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window] +[ 7.409640] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window] +[ 7.411437] pci_bus 0000:00: root bus resource [mem 0x40000000-0xffdfffff window] +[ 7.442035] pci_bus 0000:00: root bus resource [bus 00-ff] +[ 7.459188] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7] +[ 7.465459] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6] +[ 7.466335] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177] +[ 7.467285] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376] +[ 7.515923] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 9 10 11) *0, disabled. +[ 7.533692] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 9 10 *11) +[ 7.535078] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 9 *10 11) +[ 7.536467] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 *9 10 11) +[ 7.544756] ACPI: Enabled 2 GPEs in block 00 to 07 +[ 7.551347] vgaarb: setting as boot device: PCI:0000:00:02.0 +[ 7.552270] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none +[ 7.564214] vgaarb: loaded +[ 7.564764] vgaarb: bridge control possible 0000:00:02.0 +[ 7.565836] SCSI subsystem initialized +[ 7.566631] ACPI: bus type USB registered +[ 7.567345] usbcore: registered new interface driver usbfs +[ 7.573709] usbcore: registered new interface driver hub +[ 7.656059] usbcore: registered new device driver usb +[ 7.678259] PCI: Using ACPI for IRQ routing +[ 7.715085] NetLabel: Initializing +[ 7.757018] NetLabel: domain hash size = 128 +[ 7.757997] NetLabel: protocols = UNLABELED CIPSOv4 +[ 7.759162] NetLabel: unlabeled traffic allowed by default +[ 7.765814] amd_nb: Cannot enumerate AMD northbridges +[ 7.766884] clocksource: Switched to clocksource kvm-clock +[ 7.776966] AppArmor: AppArmor Filesystem Enabled +[ 7.798561] pnp: PnP ACPI init +[ .800142] pnp: PnP ACPI: found 3 devices +[ 781784] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns +[ 7.995297] NET: Registered protocol family 2 + +[ 8.025017] TCP established hash table entries: 8192 (order: 4, 65536 bytes) +[ 8.028019] TCP bind hash table entries: 8192 (order: 5, 131072 bytes) +[ 8.034658] TCP: Hash tables configured (established 8192 bind 8192)[ 8.05] UDP hash table entries: 512 (order: 2, 16384 bytes)[ 8.310515] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) +[ 8.336324] NET: Registered protoco fmiy +[ .4747]ci000000: ming dre P/PCI transfers +[ 8.983200] pci 0000:00:01.0: Activating ISA DMA hang workarounds +[ 8.984684] Trying to unpack rootfsime itrmf... + +[ 11.546233] Freeing initrd memory: 10488K (ffff880036b74000 - ffff8800375b2000) +[ 11.555418] platform rtc_cmos: registered platform RTC device(n P dvi fun) [ 11.808819] Scanning for low memory corruption every 60 secods +[ 11.948142] futex hash table entries: 512 (order: 3, 32768 bytes) +[ 11.959659] audit: initializing netlink subsys (disabled) +[ 11.960773] audit: type=2000 audit(1482739124.651:1): initialized +[ 11.964734] Initialise system trusted keyring +[ 11.971045] HugeTLB registered 2 MB page size, pre-allocated 0 pages +[ 197041] zbud: loaded +[ 12.072796] FSDi qot dot6.6.0 +[ 12.345138] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) +[ 1346811] squashf: rson4.(2009/011)Phllp Lougher +[ 1.73810]tsc: Refined TSC clocksource calibration: 2591.365 MHz +[ 12.874197] clocksource: ts: mask: 0xfffffffffffffff max_cycles: 0x255a5f2186d, maxdlns449569 n +[ 13.257033] fuse init (API version 7.23) +[ 13.283615] Key type big_key registered +[ 13.293053] Allocating IMA MOK and blacklist keyrings. +[ 13.344162] Key type asymmetric registered +[ 13.352912] Asymmetric key parser 'x509' registered +[ 13.353783] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) +[ 13.403509] io scheduler noop registered +[ 13.404170] io scheduler deadline registered (default) +[ 13.404982] io scheduler cfq registered +[ 13.405712] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 +[ 13.406541] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 +[ 13.407564] ACPI: AC Adapter [AC] (on-line) +[ 13.408311] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 +[ 13.409567] ACPI: Power Button [PWRF] +[ 13.410276] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1 +[ 13.411669] ACPI: Sleep Button [SLPF] +[ 13.418020] GHES: HEST is not enabled! +[ 13.433161] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled +[ 13.458781] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A +[ 13.485623] Linux agpgart interface v0.103 +[ 13.505269] brd: module loaded +[ 13.509831] loop: module loaded +[ 13.510966] scsi host0: ata_piix +[ 13.511793] scsi host1: ata_piix +[ 13.522809] ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xd000 irq 14 +[ 13.523765] ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xd008 irq 15 +[ 13.524805] libphy: Fixed MDIO Bus: probed +[ 13.576719] tun: Universal TUN/TAP device driver, 1.6 +[ 13.603050] tun: (C) 1999-2004 Max Krasnyansky +[ 13.604026] PPP generic driver version 2.4.2 +[ 13.604781] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver +[ 13.605689] ehci-pci: EHCI PCI platform driver +[ 13.606408] ehci-platform: EHCI generic platform driver +[ 13.607211] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver +[ 13.608205] ohci-pci: OHCI PCI platform driver +[ 13.608960] ohci-platform: OHCI generic platform driver +[ 13.609784] uhci_hcd: USB Universal Host Controller Interface driver +[ 13.620969] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12 +[ 13.622820] serio: i8042 KBD port at 0x60,0x64 irq 1 +[ 13.623641] serio: i8042 AUX port at 0x60,0x64 irq 12 +[ 13.624579] mousedev: PS/2 mouse device common for all mice +[ 13.625860] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 +[ 13.642949] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2 +[ 13.651501] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram +[ 13.651517] i2c /dev entries driver +[ 13.651577] device-mapper: uevent: version 1.0.3 +[ 13.755100] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com +[ 13.756603] ledtrig-cpu: registered to indicate activity on CPUs +[ 13.758080] NET: Registered protocol family 10 +[ 13.802932] NET: Registered protocol family 17 +[ 13.893228] Key type dns_resolver registered +[ 13.919562] microcode: CPU0 sig=0x406e3, pf=0x40, revision=0x0 +[ 13.977682] microcode: CPU1 sig=0x406e3, pf=0x40, revision=0x0 +[ 13.992611] microcode: Microcode Update Driver: v2.01 , Peter Oruba +[ 14.103204] registered taskstats version 1 +[ 14.112608] Loading compiled-in X.509 certificates +[ 14.143572] Loaded X.509 cert 'Build time autogenerated kernel key: a2268f7e4ca1e818c997a5071614f42c2a90855b' +[ 14.164440] zswap: loaded using pool lzo/zbud +[ 14.215365] Key type trusted registered +[ 14.236961] Key type encrypted registered +[ 14.257853] AppArmor: AppArmor sha1 policy hashing enabled +[ 14.354466] ima: No TPM chip found, activating TPM-bypass! +[ 14.420133] evm: HMAC attrs: 0x1 +[ 14.421354] Magic number: 12:175:977 +[ 14.424457] rtc_cmos rtc_cmos: setting system clock to 2016-12-26 07:58:49 UTC (1482739129) +[ 14.484308] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found +[ 14.672919] EDD information not available. +[ 14.674847] Freeing unused kernel memory: 1484K (ffffffff81f44000 - ffffffff820b7000) +[ 14.743265] Write protecting the kernel read-only data: 14336k +[ 14.813837] Freeing unused kernel memory: 1796K (ffff88000183f000 - ffff880001a00000) +[ 14.945237] Freeing unused kernel memory: 136K (ffff880001dde000 - ffff880001e00000) +Loading, please wait... +starting version[ 14.959541] random: systemd-udevd: uninitialized urandom read (16 bytes read, 5 bits of entropy available) + 229 +[ 14.960586] random: udevadm: uninitialized urandom read (16 bytes read, 5 bits of entropy available) +[ 14.960632] random: udevadm: uninitialized urandom read (16 bytes read, 5 bits of entropy available) +[ 14.960775] random: udevadm: uninitialized urandom read (16 bytes read, 5 bits of entropy available) +[ 14.960826] random: udevadm: uninitialized urandom read (16 bytes read, 5 bits of entropy available) +[ 14.960872] random: udevadm: uninitialized urandom read (16 bytes read, 5 bits of entropy available) +[ 14.960918] random: udevadm: uninitialized urandom read (16 bytes read, 5 bits of entropy available) +[ 14.961084] random: udevadm: uninitialized urandom read (16 bytes read, 5 bits of entropy available) +[ 14.961132] random: udevadm: uninitialized urandom read (16 bytes read, 5 bits of entropy available) +[ 14.961186] random: udevadm: uninitialized urandom read (16 bytes read, 5 bits of entropy available) +[ 15.051808] Fusion MPT base driver 3.04.20 +[ 15.054894] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI +[ 15.054894] e1000: Copyright (c) 1999-2006 Intel Corporation. +[ 15.070354] Copyright (c) 1999-2008 LSI Corporation +[ 15.080738] Fusion MPT SPI Host driver 3.04.20 +[ 15.136018] AVX version of gcm_enc/dec engaged. +[ 15.142296] AES CTR mode by8 optimization enabled +[ 15.316229] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4 +[ 15.460475] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 02:a6:9f:fe:ad:64 +[ 15.481414] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection +[ 15.900150] e1000 0000:00:08.0 eth1: (PCI:33MHz:32-bit) 08:00:27:cc:34:98 +[ 15.958397] e1000 0000:00:08.0 eth1: Intel(R) PRO/1000 Network Connection +[ 15.973516] mptbase: ioc0: Initiating bringup +[ 15.973732] e1000 0000:00:03.0 enp0s3: renamed from eth0 +[ 15.991285] e1000 0000:00:08.0 enp0s8: renamed from eth1 +[ 16.055133] ioc0: LSI53C1030 A0: Capabilities={Initiator} +[ 16.252611] scsi host2: ioc0: LSI53C1030 A0, FwRev=00000000h, Ports=1, MaxQ=256, IRQ=20 +[ 16.375319] scsi 2:0:0:0: Direct-Access VBOX HARDDISK 1.0 PQ: 0 ANSI: 5 +[ 16.377682] scsi target2:0:0: Beginning Domain Validation +[ 16.380220] scsi target2:0:0: Domain Validation skipping write tests +[ 16.382066] scsi target2:0:0: Ending Domain Validation +[ 16.384272] scsi target2:0:0: asynchronous +[ 16.389213] scsi 2:0:1:0: Direct-Access VBOX HARDDISK 1.0 PQ: 0 ANSI: 5 +[ 16.391616] scsi target2:0:1: Beginning Domain Validation +[ 16.393985] scsi target2:0:1: Domain Validation skipping write tests +[ 16.395900] scsi target2:0:1: Ending Domain Validation +[ 16.397435] scsi target2:0:1: asynchronous +[ 16.407924] sd 2:0:0:0: [sda] 20971520 512-byte logical blocks: (10.7 GB/10.0 GiB) +[ 16.408089] sd 2:0:0:0: Attached scsi generic sg0 type 0 +[ 16.431597] sd 2:0:1:0: Attached scsi generic sg1 type 0 +[ 16.431779] sd 2:0:1:0: [sdb] 20480 512-byte logical blocks: (10.5 MB/10.0 MiB) +[ 16.431896] sd 2:0:1:0: [sdb] Write Protect is off +[ 16.431980] sd 2:0:1:0: [sdb] Incomplete mode parameter data +[ 16.431981] sd 2:0:1:0: [sdb] Assuming drive cache: write through +[ 16.452872] sd 2:0:0:0: [sda] Write Protect is off +[ 16.453857] sd 2:0:1:0: [sdb] Attached SCSI disk +[ 16.459044] sd 2:0:0:0: [sda] Incomplete mode parameter data +[ 16.460588] sd 2:0:0:0: [sda] Assuming drive cache: write through +[ 16.465822] sda: sda1 +[ 16.468819] sd 2:0:0:0: [sda] Attached SCSI disk +[ 18.063187] floppy0: no floppy controllers found +Begin: Loading e[ 19.482456] md: linear personality registered for level -1 +ssential drivers ... [ 19.515791] md: multipath personality registered for level -4 +[ 19.536132] md: raid0 personality registered for level 0 +[ 19.575628] md: raid1 personality registered for level 1 +[ 19.754955] raid6: sse2x1 gen() 5177 MB/s +[ 19.830963] raid6: sse2x1 xor() 4677 MB/s +[ 19.906942] raid6: sse2x2 gen() 8592 MB/s +[ 19.978923] raid6: sse2x2 xor() 6188 MB/s +[ 20.050937] raid6: sse2x4 gen() 9657 MB/s +[ 20.122943] raid6: sse2x4 xor() 6974 MB/s +[ 20.140975] raid6: using algorithm sse2x4 gen() 9657 MB/s +[ 20.168270] raid6: .... xor() 6974 MB/s, rmw enabled +[ 20.195073] raid6: using ssse3x2 recovery algorithm +[ 20.244617] xor: automatically using best checksumming function: +[ 20.295146] avx : 15870.000 MB/sec +[ 20.428545] async_tx: api initialized (async) +[ 20.443344] md: raid6 personality registered for level 6 +[ 20.444919] md: raid5 personality registered for level 5 +[ 20.446496] md: raid4 personality registered for level 4 +[ 20.479156] md: raid10 personality registered for level 10 +done. +Begin: Running /scripts/init-premount ... done. +Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. +Begin: Running /scripts/local-premount ... [ 20.523812] Btrfs loaded +Scanning for Btrfs filesystems +done. +Warning: fsck no[ 20.577822] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) +t present, so skipping root file system +done. +Begin: Running /scripts/local-bottom ... done. +Begin: Running /scripts/init-bottom ... done. +[ 20.684612] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN) +[ 20.696587] systemd[1]: Detected virtualization oracle. +[ 20.708544] systemd[1]: Detected architecture x86-64. + +Welcome to Ubuntu 16.04.1 LTS! + +[ 20.712819] systemd[1]: Set hostname to . +[ 20.716832] systemd[1]: Initializing machine ID from random generator. +[ 20.741285] systemd[1]: Installed transient /etc/machine-id file. +[ 20.868183] systemd[1]: Created slice System Slice. +[ OK ] Created slice System Slice. +[ 20.887204] systemd[1]: Started Forward Password Requests to Wall Directory Watch. +[ OK ] Started Forward Password Requests to Wall Directory Watch. +[ 20.902751] systemd[1]: Listening on Device-mapper event daemon FIFOs. +[ OK ] Listening on Device-mapper event daemon FIFOs. +[ 20.910827] systemd[1]: Listening on Journal Socket (/dev/log). +[ OK ] Listening on Journal Socket (/dev/log). +[ 20.916422] systemd[1]: Reached target Swap. +[ OK ] Reached target Swap. +[ 20.943115] systemd[1]: Reached target User and Group Name Lookups. +[ OK ] Reached target User and Group Name Lookups. +[ 20.951142] systemd[1]: Listening on LVM2 metadata daemon socket. +[ OK ] Listening on LVM2 metadata daemon socket. +[ 21.003805] systemd[1]: Listein on Journal Socket. + +[ OK ] Listening on Journal Socket. +[ 21.087192] systemd[1]: Starting Uncomplicated firewall... + Starting Uncomplicated firewall... +[ 21.108342] systemd[1]: Starting Create list of required static device nodes for the current kernel... + Starting Create list of required st... nodes for the current kernel... +[ 21.120685] systemd[1]: Starting Load Kernel Modules... + Starting Load Ke[ 21.141469] Loading iSCSI transport class v2.0-870. +rnel Modules... +[ 21.199258] iscsi: registered transport (tcp) +[ 21.240237] systemd[1]: Mounting POSIX Message Queue File System... + Mounting POSIX Message Queue File System... +[ 21.310882] systemd[1]: Created slice system-serial\x2dgetty.slice. +[ OK ] Created slice system-serial\x2dgetty.slice. +[ 21.376219] iscsi: registered transport (iser) +[ 21.381435] systemd[1]: Starting Remount Root and Kernel File Systems... +[ 21.384281] EXT4-fs (sda1): re-mounted. Opts: (null) + Starting Remount Root and Kernel File Systems... +[ 21.394121] systemd[1]: Mounting Huge Pages File System... + Mounting Huge Pages File System... +[ 21.412647] systemd[1]: Listening on LVM2 poll daemon socket. +[ OK ] Listening on LVM2 poll daemon socket. +[ 21.414924] systemd[1]: Created slice User and Session Slice. +[ OK ] Created slice User and Session Slice. +[ 21.417088] systemd[1]: Reached target Slices. +[ OK ] Reached target Slices. +[ 21.418866] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. +[ OK ] Listening on /dev/initctl Compatibility Named Pipe. + +[ 21.455078] systemd[1]: Mounting Debug File System... + Mounting Debug File System... +[ 21.480894] systemd[1]: Starting Nameserver information manager... + Starting Nameserver information manager... +[ 21.508342] random: nonblocking pool is initialized +[ 21.509502] systemd[1]: Listening on udev Kernel Socket. +[ OK ] Listening on udev Kernel Socket. +[ 21.526756] systemd[1]: Reached target Encrypted Volumes. +[ OK ] Reached target Encrypted Volumes. +[ 21.913342] systemd[1]: Starting Set console keymap... + Starting Set console keymap... +[ 21.932860] systemd[1]: Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling... + Starting Monitoring of LVM2 mirrors... dmeventd or progress polling... +[ 21.980202] systemd[1]: Listening on Syslog Socket. +[ OK ] Listening on Syslog Socket. +[ 21.995175] systemd[1]: Listening on Journal Audit Socket. +[ OK ] Listening on Journal Audit Socket. +[ 22.004855] systemd[1]: Listening on udev Control Socket. +[ OK ] Listening on udev Control Socket. +[ 22.019246] systemd[1]: Starting Journal Service... + Starting Journal Service... +[ 22.064949] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. +[ OK ] Set up automount Arbitrary Executab...ats File System Automount Point. +[ 22.101247] systemd[1]: Mounted Huge Pages File System. +[ OK ] Mounted Huge Pages File System. +[ 22.127739] systemd[1]: Mounted POSIX Message Queue File System. +[ OK ] Mounted POSIX Message Queue File System. +[ 22.151911] systemd[1]: Mounted Debug File System. +[ OK ] Mounted Debug File System. +[ 22.297505] systemd[1]: Started Journal Service. +[ OK ] Started Journal Service. +[ OK ] Started Uncomplicated firewall. +[ OK ] Started Create list of required sta...ce nodes for the current kernel. +[ OK ] Started Load Kernel Modules. +[ OK ] Started Remount Root and Kernel File Systems. +[ OK ] Started Set console keymap. +[ OK ] Started Nameserver information manager. +[ OK ] Started LVM2 metadata daemon. + Starting Load/Save Random Seed... + Starting Initial cloud-init job (pre-networking)... + Starting udev Coldplug all Devices... + Mounting FUSE Control File System... + Starting Apply Kernel Variables... + Starting Create Static Device Nodes in /dev... + Starting Flush Journal to Persistent Storage... +[ OK ] Mounted FUSE Control File System. +[ OK ] Started Load/Save Random Seed. +[ OK ] Started Apply Kernel Variables. +[ OK ] Started Create Static Device Nodes in /dev. +[ OK ] Started udev Coldplug all Devices. +[ OK ] Started Flush Journal to Persistent Storage. + Starting udev Kernel Device Manager... +[ OK ] Started udev Kernel Device Manager. +[ OK ] Started Dispatch Password Requests to Console Directory Watch. +[ OK ] Started Monitoring of LVM2 mirrors,...ng dmeventd or progress polling. +[ OK ] Found device /dev/ttyS0. +[ OK ] Reached target Local File Systems (Pre). +[ OK ] Reached target Local File Systems. + Starting LSB: AppArmor initialization... + Starting Create Volatile Files and Directories... + Starting Tell Plymouth To Write Out Runtime Data... + Starting Set console font and keymap... + Starting Commit a transient machine-id on disk... +[ 16.812412] cloud-init[470]: Cloud-init v. 0.7.8 running 'init-local' at Mon, 26 Dec 2016 07:58:58 +0000. Up 16.10 seconds. +[ OK ] Started Create Volatile Files and Directories. +[ OK ] Started Tell Plymouth To Write Out Runtime Data. +[ OK ] Started Commit a transient machine-id on disk. +[ OK ] Started Initial cloud-init job (pre-networking). +[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. +[ OK ] Reached target Network (Pre). +[ OK ] Reached target System Time Synchronized. + Starting Update UTMP about System Boot/Shutdown... +[ OK ] Started Set console font and keymap. +[ OK ] Started Update UTMP about System Boot/Shutdown. +[ OK ] Created slice system-getty.slice. +[ OK ] Started LSB: AppArmor initialization. + Starting Raise network interfaces... +[ OK ] Started Raise network interfaces. +[ OK ] Reached target Network. + Starting Initial cloud-init job (metadata service crawler)... +[ 20.136493] cloud-init[1051]: Cloud-init v. 0.7.8 running 'init' at Mon, 26 Dec 2016 07:59:01 +0000. Up 19.39 seconds. +[ 20.204359] cloud-init[1051]: ci-info: ++++++++++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++++++++++ +[ 20.225563] cloud-init[1051]: ci-info: +--------+-------+----------------------------+---------------+-------+-------------------+ +[ 20.225808] cloud-init[1051]: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | +[ OK ] Started Initial cloud-init job (metadata service crawler). +[ 20.225905] cloud-init[1051]: ci-info: +--------+-------+----------------------------+---------------+-------+-------------------+ +[ 20.237999] cloud-init[1051]: ci-info: | enp0s3 | True | 10.0.2.15 | 255.255.255.0 | . | 02:a6:9f:fe:ad:64 | +[ 20.242573] cloud-init[1051]: ci-info: | enp0s3 | True | fe80::a6:9fff:fefe:ad64/64 | . | link | 02:a6:9f:fe:ad:64 | +[ 20.242924] cloud-init[1051]: ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . | . | +[ 20.243199] cloud-init[1051]: ci-info: | lo | True | ::1/128 | . | host | . | +[ 20.243470] cloud-init[1051]: ci-info: | enp0s8 | False | . | . | . | 08:00:27:cc:34:98 | +[ 20.243720] cloud-init[1051]: ci-info: +--------+-------+----------------------------+---------------+-------+-------------------+ +[ 20.243982] cloud-init[1051]: ci-info: +++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++ +[ 20.244518] cloud-init[1051]: ci-info: +-------+-------------+----------+---------------+-----------+-------+ +[ 20.244770] cloud-init[1051]: ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags | +[ 20.245030] cloud-init[1051]: ci-info: +-------+-------------+----------+---------------+-----------+-------+ +[ 20.245356] cloud-init[1051]: ci-info: | 0 | 0.0.0.0 | 10.0.2.2 | 0.0.0.0 | enp0s3 | UG | +[ 20.245612] cloud-init[1051]: ci-info: | 1 | 10.0.2.0 | 0.0.0.0 | 255.255.255.0 | enp0s3 | U | +[ 20.245872] cloud-init[1051]: ci-info: +-------+-------------+----------+---------------+-----------+-------+ +[ 20.246125] cloud-init[1051]: Generating public/private rsa key pair. +[ 20.246384] cloud-init[1051]: Your identification has been saved in /etc/ssh/ssh_host_rsa_key. +[ 20.246644] cloud-init[1051]: Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub. +[ 20.246906] cloud-init[1051]: The key fingerprint is: +[ 20.247167] cloud-init[1051]: SHA256:nL/w9zsKDBhDhxRxYfTMAS6kpAt4gBxfosuw8tmtaT8 root@ubuntu-xenial +[ 20.247422] cloud-init[1051]: The key's randomart image is: +[ 20.247758] cloud-init[1051]: +---[RSA 2048]----+ +[ 20.247934] cloud-init[1051]: |+....o*=Bo. | +[ 20.248481] cloud-init[1051]: |ooooo+.= + . | +[ 20.248728] cloud-init[1051]: |+.o.. + . + | +[ 20.249323] cloud-init[1051]: |o+.. * . | +[ 20.249816] cloud-init[1051]: |oo. . S | +[ 20.251524] cloud-init[1051]: |.. o . + | +[ 20.251727] cloud-init[1051]: | o . . . + | +[ 20.252025] cloud-init[1051]: | .oE o o. . | +[ 20.252671] cloud-init[1051]: | .o... o..ooo | +[ 20.253292] cloud-init[1051]: +----[SHA256]-----+ +[ 20.253868] cloud-init[1051]: Generating public/private dsa key pair. +[ 20.254470] cloud-init[1051]: Your identification has been saved in /etc/ssh/ssh_host_dsa_key. +[ 20.256201] cloud-init[1051]: Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub. +[ 20.256603] cloud-init[1051]: The key fingerprint is: +[ 20.256861] cloud-init[1051]: SHA256:xWeErefKx4W+bNKQj2kvGxvK1z8At7sMGfDee+vUbuE root@ubuntu-xenial +[ 20.257168] cloud-init[1051]: The key's randomart image is: +[ 20.257772] cloud-init[1051]: +---[DSA 1024]----+ +[ 20.258007] cloud-init[1051]: | o. | +[ 20.258259] cloud-init[1051]: | .... | +[ 20.258518] cloud-init[1051]: | . o.o | +[ 20.258778] cloud-init[1051]: | +ooo | +[ 20.259386] cloud-init[1051]: | S o* o | +[ 20.259596] cloud-init[1051]: | .o+= .o | +[ 20.259837] cloud-init[1051]: | .*@.+o o| +[ 20.260361] cloud-init[1051]: | . .XBXooE.| +[ 20.260945] cloud-init[1051]: | oooBB*++.| +[ 20.261469] cloud-init[1051]: +----[SHA256]-----+ +[ 20.261998] cloud-init[1051]: Generating public/private ecdsa key pair. +[ 20.262282] cloud-init[1051]: Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key. +[ 20.262829] cloud-init[1051]: Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub. +[ 20.263089] cloud-init[1051]: The key fingerprint is: +[ 20.263435] cloud-init[1051]: SHA256:BzZ2PJG7EWplpyIWWl87c8VTb8DEpj+tahmyhABU7fg root@ubuntu-xenial +[ 20.263663] cloud-init[1051]: The key's randomart image is: +[ 20.263937] cloud-init[1051]: +---[ECDSA 256]---+ +[ 20.265597] cloud-init[1051]: | ..... .. =o..| +[ 20.266075] cloud-init[1051]: | . o ..*.. B..| +[ 20.266337] cloud-init[1051]: | + ===+* + .o| +[ 20.266619] cloud-init[1051]: | . =o*+B.o . | +[ 20.266894] cloud-init[1051]: | . =So.* . . | +[ 20.267164] cloud-init[1051]: | E.+ . o .| +[ 20.267446] cloud-init[1051]: | . o o o | +[ 20.267715] cloud-init[1051]: | . o . | +[ 20.267993] cloud-init[1051]: | ... | +[ 20.268561] cloud-init[1051]: +----[SHA256]-----+ +[ 20.268838] cloud-init[1051]: Generating public/private ed25519 key pair. +[ 20.269861] cloud-init[1051]: Your identification has been saved in /etc/ssh/ssh_host_ed25519_key. +[ 20.270363] cloud-init[1051]: Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub. +[ 20.270640] cloud-init[1051]: The key fingerprint is: +[ 20.270913] cloud-init[1051]: SHA256:eXL9Wr0BEW3JyPLcFneqwkAq+IxD9uBy+aLYzuMMM34 root@ubuntu-xenial +[ 20.271199] cloud-init[1051]: The key's randomart image is: +[ 20.271474] cloud-init[1051]: +--[ED25519 256]--+ +[ 20.271743] cloud-init[1051]: | ..+ .| +[ 20.280002] cloud-init[1051]: | . . o.*o| +[ 20.280449] cloud-init[1051]: | . o +.o.+| +[ 20.280697] cloud-init[1051]: | = . . .. . ooo | +[ 20.281060] cloud-init[1051]: | + B . Soo .o. | +[ 20.281382] cloud-init[1051]: |. * + +o .... | +[ 20.281626] cloud-init[1051]: |+o o . o..| +[ 20.283774] cloud-init[1051]: |oBoE. o o| +[ 20.283959] cloud-init[1051]: |o=Bo . . | +[ 20.286578] cloud-init[1051]: +----[SHA256]-----+ +[ OK ] Reached target System Initialization. + Starting LXD - unix socket. + Starting Socket activation for snappy daemon. +[ OK ] Listening on UUID daemon activation socket. +[ OK ] Started Daily Cleanup of Temporary Directories. +[ OK ] Started Timer to automatically refresh installed snaps. +[ OK ] Listening on D-Bus System Message Bus Socket. +[ OK ] Listening on ACPID Listen Socket. +[ OK ] Started Daily apt activities. +[ OK ] Reached target Timers. +[ OK ] Started Trigger resolvconf update for networkd DNS. +[ OK ] Started ACPI Events Check. +[ OK ] Reached target Paths. +[ OK ] Reached target Network is Online. + Starting iSCSI initiator daemon (iscsid)... +[ OK ] Reached target Cloud-config availability. +[ OK ] Listening on LXD - unix socket. +[ OK ] Listening on Socket activation for snappy daemon. +[ OK ] Started iSCSI initiator daemon (iscsid). + Starting Login to default iSCSI targets... +[ OK ] Reached target Sockets. +[ OK ] Reached target Basic System. +[ OK ] Started FUSE filesystem for LXC. + Starting System Logging Service... + Starting Pollinate to seed the pseudo random number generator... + Starting LSB: Record successful boot for GRUB... +[ OK ] Started ACPI event daemon. + Starting Apply the settings specified in cloud-config... + Starting LSB: MD monitoring daemon... + Starting LXD - container startup/shutdown... +[ OK ] Started Snappy daemon. + Starting Auto import assertions from block devices... + Starting /etc/rc.local Compatibility... +[ OK ] Started Regular background program processing daemon. +[ OK ] Started Deferred execution scheduler. + Starting Login Service... + Starting Accounts Service... +[ OK ] Started D-Bus System Message Bus. +[ OK ] Started System Logging Service. +[ OK ] Started Auto import assertions from block devices. +[ OK ] Started /etc/rc.local Compatibility. +[ OK ] Started LXD - container startup/shutdown. +[ OK ] Started LSB: Record successful boot for GRUB. +[ OK ] Started LSB: MD monitoring daemon. +[ OK ] Started Login Service. + Starting Authenticate and Authorize Users to Run Privileged Tasks... +[ OK ] Started Authenticate and Authorize Users to Run Privileged Tasks. +[ OK ] Started Accounts Service. +[ 22.265798] cloud-init[1171]: Generating locales (this might take a while)... +[ OK ] Started Pollinate to seed the pseudo random number generator. + Starting OpenBSD Secure Shell server... +[ OK ] Started OpenBSD Secure Shell server. +[ 23.246945] cloud-init[1171]: en_US.UTF-8... done +[ 23.254900] cloud-init[1171]: Generation complete. + Stopping OpenBSD Secure Shell server... +[ OK ] Stopped OpenBSD Secure Shell server. + Starting OpenBSD Secure Shell server... +[ OK ] Started OpenBSD Secure Shell server. +[ 23.783315] cloud-init[1171]: Cloud-init v. 0.7.8 running 'modules:config' at Mon, 26 Dec 2016 07:59:04 +0000. Up 22.07 seconds. +[ OK ] Started Apply the settings specified in cloud-config. +[* ] A start job is running for Login to...t iSCSI targets (15s / no limit) [** ] A start job is running for Login to...t iSCSI targets (16s / no limit) [*** ] A start job is running for Login to...t iSCSI targets (16s / no limit) [ *** ] A start job is running for Login to...t iSCSI targets (17s / no limit) [ *** ] A start job is running for Login to...t iSCSI targets (17s / no limit) [ ***] A start job is running for Login to...t iSCSI targets (18s / no limit) [ **] A start job is running for Login to...t iSCSI targets (19s / no limit) [ *] A start job is running for Login to...t iSCSI targets (19s / no limit) [ **] A start job is running for Login to...t iSCSI targets (20s / no limit) [ ***] A start job is running for Login to...t iSCSI targets (20s / no limit) [ *** ] A start job is running for Login to...t iSCSI targets (21s / no limit) [ *** ] A start job is running for Login to...t iSCSI targets (21s / no limit) [*** ] A start job is running for Login to...t iSCSI targets (22s / no limit) [** ] A start job is running for Login to...t iSCSI targets (23s / no limit) [* ] A start job is running for Login to...t iSCSI targets (23s / no limit) [** ] A start job is running for Login to...t iSCSI targets (24s / no limit) [*** ] A start job is running for Login to...t iSCSI targets (24s / no limit) [ *** ] A start job is running for Login to...t iSCSI targets (25s / no limit) [ *** ] A start job is running for Login to...t iSCSI targets (25s / no limit) [ ***] A start job is running for Login to...t iSCSI targets (26s / no limit) [ **] A start job is running for Login to...t iSCSI targets (26s / no limit) [ *] A start job is running for Login to...t iSCSI targets (27s / no limit) [ **] A start job is running for Login to...t iSCSI targets (27s / no limit) [ ***] A start job is running for Login to...t iSCSI targets (28s / no limit) [ *** ] A start job is running for Login to...t iSCSI targets (28s / no limit) [ *** ] A start job is running for Login to...t iSCSI targets (29s / no limit) [*** ] A start job is running for Login to...t iSCSI targets (29s / no limit) [** ] A start job is running for Login to...t iSCSI targets (30s / no limit) [* ] A start job is running for Login to...t iSCSI targets (30s / no limit) [** ] A start job is running for Login to...t iSCSI targets (31s / no limit) [*** ] A start job is running for Login to...t iSCSI targets (31s / no limit) [ *** ] A start job is running for Login to...t iSCSI targets (32s / no limit) [ *** ] A start job is running for Login to...t iSCSI targets (32s / no limit) [ ***] A start job is running for Login to...t iSCSI targets (32s / no limit) [ **] A start job is running for Login to...t iSCSI targets (33s / no limit) [ *] A start job is running for Login to...t iSCSI targets (34s / no limit) [ **] A start job is running for Login to...t iSCSI targets (34s / no limit) [ ***] A start job is running for Login to...t iSCSI targets (35s / no limit) [ *** ] A start job is running for Login to...t iSCSI targets (35s / no limit) [ *** ] A start job is running for Login to...t iSCSI targets (36s / no limit) [*** ] A start job is running for Login to...t iSCSI targets (36s / no limit) [** ] A start job is running for Login to...t iSCSI targets (37s / no limit) [* ] A start job is running for Login to...t iSCSI targets (37s / no limit) [** ] A start job is running for Login to...t iSCSI targets (38s / no limit) [ OK ] Started Login to default iSCSI targets. +[ OK ] Reached target Remote File Systems (Pre). +[ OK ] Reached target Remote File Systems. + Starting LSB: VirtualBox Linux Additions... + Starting LSB: daemon to balance interrupts for SMP systems... + Starting LSB: automatic crash report generation... + Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"... + Starting Permit User Sessions... +[ OK ] Started Permit User Sessions. +[ OK ] Started LSB: Set the CPU Frequency Scaling governor to "ondemand". + Starting Terminate Plymouth Boot Screen... + Starting Hold until boot process finishes up... +[ OK ] Started Terminate Plymouth Boot Screen. +[ OK ] Started Hold until boot process finishes up. + Starting Set console scheme... +[ OK ] Started Getty on tty1. +[ OK ] Started Serial Getty on ttyS0. +[ OK ] Reached target Login Prompts. +[ OK ] Started Set console scheme. +[ OK ] Started LSB: daemon to balance interrupts for SMP systems. +[ OK ] Started LSB: automatic crash report generation. +[ OK ] Started LSB: VirtualBox Linux Additions. +[ OK ] Reached target Multi-User System. +[ OK ] Reached target Graphical Interface. + Starting Update UTMP about System Runlevel Changes... + Starting Execute cloud user/final scripts... +[ OK ] Started Update UTMP about System Runlevel Changes. +[ OK ] Created slice User Slice of ubuntu. + Starting User Manager for UID 1000... +[ OK ] Started Session 1 of user ubuntu. +[ OK ] Started User Manager for UID 1000. +[ OK ] Started Session 2 of user ubuntu. + Starting Hostname Service... +[ OK ] Started Hostname Service. + +Ubuntu 16.04.1 LTS nextcloud ttyS0 + +nextcloud login: ci-info: +++++Authorized keys from /home/ubuntu/.ssh/authorized_keys for user ubuntu++++++ +ci-info: +---------+-------------------------------------------------+---------+---------+ +ci-info: | Keytype | Fingerprint (md5) | Options | Comment | +ci-info: +---------+-------------------------------------------------+---------+---------+ +ci-info: | ssh-rsa | 21:0a:48:62:01:76:cc:d4:ba:d8:7f:80:05:d0:4e:d2 | - | vagrant | +ci-info: +---------+-------------------------------------------------+---------+---------+ +<14>Dec 26 08:00:06 ec2: +<14>Dec 26 08:00:06 ec2: ############################################################# +<14>Dec 26 08:00:06 ec2: -----BEGIN SSH HOST KEY FINGERPRINTS----- +<14>Dec 26 08:00:06 ec2: 1024 SHA256:xWeErefKx4W+bNKQj2kvGxvK1z8At7sMGfDee+vUbuE root@ubuntu-xenial (DSA) +<14>Dec 26 08:00:06 ec2: 256 SHA256:BzZ2PJG7EWplpyIWWl87c8VTb8DEpj+tahmyhABU7fg root@ubuntu-xenial (ECDSA) +<14>Dec 26 08:00:06 ec2: 256 SHA256:eXL9Wr0BEW3JyPLcFneqwkAq+IxD9uBy+aLYzuMMM34 root@ubuntu-xenial (ED25519) +<14>Dec 26 08:00:06 ec2: 2048 SHA256:nL/w9zsKDBhDhxRxYfTMAS6kpAt4gBxfosuw8tmtaT8 root@ubuntu-xenial (RSA) +<14>Dec 26 08:00:06 ec2: -----END SSH HOST KEY FINGERPRINTS----- +<14>Dec 26 08:00:06 ec2: ############################################################# +-----BEGIN SSH HOST KEY KEYS----- +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHQUnbuawW/vqfwenve05zwj0db+p+XXg2kyxy+nI2hjj8K40oCWt45lLS+xubk/As8i0oICyh5lTi9yjBk3IhA= root@ubuntu-xenial +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILhwE8W2gxrNJPuQzOj1ZVa9SxCQLRhhbLF8Tyu5nXnO root@ubuntu-xenial +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDMJYl/D7Yh75HfBsKYCyhs3EAWkbOGlJXVQKqlMmFh0aVbZrEXnPZIOXZSWamfMggUrntxQKOPceLKku4GwLjSjDkerRIicsiXf+UzgKubwC0bwknWL3mf46U1y0IpvtC9tNGp81ure+2r8bZKjVDW4ESioX4/F32AzqoAyn5QlY+ZJ4fNgZC8kbuKxqCdRCbWzf1oUSPo0S/C09fr1djRne6sP+rIMV0hk8QjBf/Gafm4nJ7K3li2SVRxPvINu9P01oDD7LzZntG3aFkNb2dNrqqQFRgeAKKkRALvpkM+uhPeFCBMaHvQtisM2GgSgIJIhz/B0KKNn62Ve1aU40X5 root@ubuntu-xenial +-----END SSH HOST KEY KEYS----- +[ 84.177078] cloud-init[1613]: Cloud-init v. 0.7.8 running 'modules:final' at Mon, 26 Dec 2016 07:59:35 +0000. Up 52.92 seconds. +[ 84.177204] cloud-init[1613]: Cloud-init v. 0.7.8 finished at Mon, 26 Dec 2016 08:00:06 +0000. Datasource DataSourceNoCloud [seed=/dev/sdb][dsmode=net]. Up 84.16 seconds diff --git a/vagrant.mixin.rb b/vagrant.mixin.rb new file mode 100644 index 0000000..e9392a6 --- /dev/null +++ b/vagrant.mixin.rb @@ -0,0 +1,71 @@ +# This is the vagrant mixin +# By including it with the line below (see double hashes), we guarantee that our +# vagrant infrastructure shares the same characteristics + +## eval(IO.read("../vagrant.mixin"), binding) + +require 'yaml' + +if File.exist?("../config.yaml") + data = YAML.load_file("../config.yaml") +else + data = YAML.load_file("../../config.yaml") +end + +ip = data['hosts'][config.vm.hostname] + +config.vm.box_url = data['vagrants'][config.vm.box] +config.vm.network "private_network", :ip => ip +config.vm.provision "shell", inline: "echo #{ip} > /etc/publicip" + +playbook_base = "../../../orchestration.workloads" +playbook_path = "#{playbook_base}/#{client}" + +config.vm.provider :virtualbox do |provider, override| + if defined?(mount_repo) then + if defined?(mount_dest) then + config.vm.synced_folder mount_repo, mount_dest + else + config.vm.synced_folder mount_repo, "/data/repo" + end + end +end + +# run ansible against the box +config.vm.provision "ansible" do |ansible| + + if defined?(playbook) then + ansible.playbook = "#{playbook_path}/#{playbook}.yml" + else + ansible.playbook = "#{playbook_path}/#{config.vm.hostname}.yml" + end + + # ansible vault key file + ansible_keyfile = "#{playbook_path}/ansible.vault.key" + if File.exist?(ansible_keyfile) then + ansible.vault_password_file = ansible_keyfile + end + + ENV['ANSIBLE_CONFIG'] = File.absolute_path("#{playbook_base}/ansible.cfg") + + if ENV['DEBUG'] != nil then + ansible.verbose = 'vv' + end + if ENV['ANSIBLE_TAGS'] != nil then + ansible.tags = ENV['ANSIBLE_TAGS'] + end + if ENV['ANSIBLE_START_TASK'] != nil then + ansible.start_at_task = ENV['ANSIBLE_START_TASK'] + end + + # ansible variables specifically set when vagranting! + if defined?(ansible_extras) then + ansible.extra_vars = ansible_extras + end +# # if any variables are defined in the vagrant files, then add them to the ansible +# # extra vars hash for use in provisioning +# if defined? ansible_extras then +# ansible.extra_vars = ansible.extra_vars.merge(ansible_extras) +# end + +end