Fix symlinking vagrant inventory
The default path assumes that the vagrant dir is called 'inventory'. With custom defined inventory dirs that are not called 'inventory' this fails to create the correct symlink under .vagrant.d.
This commit is contained in:
parent
712bdfc82f
commit
e662ed4adc
1 changed files with 1 additions and 1 deletions
2
Vagrantfile
vendored
2
Vagrantfile
vendored
|
@ -61,7 +61,7 @@ if ! File.exist?(File.join(File.dirname($inventory), "hosts"))
|
||||||
"provisioners", "ansible")
|
"provisioners", "ansible")
|
||||||
FileUtils.mkdir_p($vagrant_ansible) if ! File.exist?($vagrant_ansible)
|
FileUtils.mkdir_p($vagrant_ansible) if ! File.exist?($vagrant_ansible)
|
||||||
if ! File.exist?(File.join($vagrant_ansible,"inventory"))
|
if ! File.exist?(File.join($vagrant_ansible,"inventory"))
|
||||||
FileUtils.ln_s($inventory, $vagrant_ansible)
|
FileUtils.ln_s($inventory, File.join($vagrant_ansible,"inventory"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue