Commit 98100c7c09f6bcda1a6840e0204f17cfd3f9febf
1 parent
e0318caa
store machine id, so that ansible provisioner can create inventory file
Showing
12 changed files
with
39 additions
and
10 deletions
... | ... | @@ -7,9 +7,9 @@ |
7 | 7 | "providers": [ |
8 | 8 | { |
9 | 9 | "name": "lxd", |
10 | - "url": "file:///data/ghopp/projects/vagrant/vagrant-lxd/gentoo_001_lxd.box", | |
10 | + "url": "file:///home/hopp/projects/vagrant/vagrant-lxd/gentoo_001_lxd.box", | |
11 | 11 | "checksum_type": "sha1", |
12 | - "checksum": "303573ec033c0eb1939df486f444c5bcc3f82d1e" | |
12 | + "checksum": "279b73b0a0f51368376a89283c842c5b474f9274" | |
13 | 13 | } |
14 | 14 | ] |
15 | 15 | } | ... | ... |
No preview for this file type
... | ... | @@ -18,6 +18,12 @@ module Vagrant |
18 | 18 | env[:ui].info "--- #{driver.name} created ---", :prefix => false |
19 | 19 | end |
20 | 20 | |
21 | + # TODO maybe not optimal, check if it would be better to include the | |
22 | + # pid of the init process to the id of the machine. | |
23 | + # Well, in that case the id changes with every restart which might | |
24 | + # not be feasable... | |
25 | + env[:machine].id = driver.name | |
26 | + | |
21 | 27 | @app.call(env) |
22 | 28 | end |
23 | 29 | end | ... | ... |
... | ... | @@ -7,6 +7,9 @@ module Vagrant |
7 | 7 | |
8 | 8 | def execute |
9 | 9 | @env.ui.info("my own plugin", :prefix => false) |
10 | + @env.ui.info("--- #{@env.inspect} ---", :prefix => false) | |
11 | + @env.ui.info("--- #{@local_data_path} ---", :prefix => false) | |
12 | + @env.ui.info("--- #{@env.active_machines} ---", :prefix => false) | |
10 | 13 | end |
11 | 14 | end |
12 | 15 | end | ... | ... |
lib/vagrant/lxd/config.rb
0 → 100644
... | ... | @@ -16,10 +16,10 @@ module Vagrant |
16 | 16 | Provider |
17 | 17 | end |
18 | 18 | |
19 | - #config(:lxd, :provider) do | |
20 | - # require File.expand_path("../config", __FILE__) | |
21 | - # Config | |
22 | - #end | |
19 | + config(:lxd, :provider) do | |
20 | + require_relative "config" | |
21 | + Config | |
22 | + end | |
23 | 23 | |
24 | 24 | #synced_folder(:virtualbox) do |
25 | 25 | # require File.expand_path("../synced_folder", __FILE__) | ... | ... |
playbook.yml
0 → 100644
... | ... | @@ -7,9 +7,9 @@ |
7 | 7 | "providers": [ |
8 | 8 | { |
9 | 9 | "name": "lxd", |
10 | - "url": "file:///data/ghopp/projects/vagrant/vagrant-lxd/sid_001_lxd.box", | |
10 | + "url": "file:///home/hopp/projects/vagrant/vagrant-lxd/sid_001_lxd.box", | |
11 | 11 | "checksum_type": "sha1", |
12 | - "checksum": "a533654e7577931659c1cb457b13e6b184d4013d" | |
12 | + "checksum": "21d7376327acdb7f36aa25ed89039248c6562415" | |
13 | 13 | } |
14 | 14 | ] |
15 | 15 | } | ... | ... |
No preview for this file type
Please
register
or
login
to post a comment