@ -7,9 +7,9 @@
"providers": [
{
"name": "lxd",
"url": "file:///data/ghopp/projects/vagrant/vagrant-lxd/gentoo_001_lxd.box",
"url": "file:///home/hopp/projects/vagrant/vagrant-lxd/gentoo_001_lxd.box",
"checksum_type": "sha1",
"checksum": "303573ec033c0eb1939df486f444c5bcc3f82d1e"
"checksum": "279b73b0a0f51368376a89283c842c5b474f9274"
}
]
@ -11,7 +11,7 @@
},
"packages": {
"exec": [
["emerge", "--update", "sudo"]
["emerge", "--update", "sudo", "dhcpcd"]
"sudo": {
@ -49,6 +49,13 @@ module Vagrant
b.use SSHExec
end
def self.action_provision
Vagrant::Action::Builder.new.tap do |b|
#b.use CheckAccessible
b.use Provision
@ -18,6 +18,12 @@ module Vagrant
env[:ui].info "--- #{driver.name} created ---", :prefix => false
# TODO maybe not optimal, check if it would be better to include the
# pid of the init process to the id of the machine.
# Well, in that case the id changes with every restart which might
# not be feasable...
env[:machine].id = driver.name
@app.call(env)
@ -7,6 +7,9 @@ module Vagrant
def execute
@env.ui.info("my own plugin", :prefix => false)
@env.ui.info("--- #{@env.inspect} ---", :prefix => false)
@env.ui.info("--- #{@local_data_path} ---", :prefix => false)
@env.ui.info("--- #{@env.active_machines} ---", :prefix => false)
@ -0,0 +1,6 @@
module Vagrant
module Lxd
class Config < Vagrant.plugin("2", :config)
@ -16,10 +16,10 @@ module Vagrant
Provider
#config(:lxd, :provider) do
# require File.expand_path("../config", __FILE__)
# Config
#end
config(:lxd, :provider) do
require_relative "config"
Config
#synced_folder(:virtualbox) do
# require File.expand_path("../synced_folder", __FILE__)
---
- hosts: all
become: true
tasks:
- name: test connection
ping:
"url": "file:///data/ghopp/projects/vagrant/vagrant-lxd/sid_001_lxd.box",
"url": "file:///home/hopp/projects/vagrant/vagrant-lxd/sid_001_lxd.box",
"checksum": "a533654e7577931659c1cb457b13e6b184d4013d"
"checksum": "21d7376327acdb7f36aa25ed89039248c6562415"
@ -10,7 +10,8 @@
["apt-get", "install", "-y", "sudo"],
["apt-get", "install", "-y", "openssh-server"]
["apt-get", "install", "-y", "openssh-server"],
["apt-get", "install", "-y", "python"]