Robin Gloster
4b78c04a47
Use /usr/bin/env CMD instead of hardcoded paths
...
This fixes commands that currently rely on hardcoded paths and break
on systems like NixOS that don't have all binaries in /usr/bin etc.
2015-08-02 10:15:55 +00:00
Robin Gloster
9c67e13fb8
Fix test on NixOS
...
Tempfile can be created in /run, too.
2015-08-02 10:15:55 +00:00
Robin Gloster
5cd32c76df
Update gems to resolve dependencies on NixOS
2015-08-02 10:15:55 +00:00
Robin Gloster
2b91983cae
do not copy the lxc template instead use the full path
2015-08-02 10:15:55 +00:00
Robin Gloster
64240323f0
fix shebang in template
2015-08-02 09:58:36 +00:00
Franz Pletz
6718fed241
Merge pull request #381 from terceiro/bind-localhost
...
forward_ports: bind to localhost only by default
2015-07-31 19:04:12 +02:00
Antonio Terceiro
81f2c13541
forward_ports: bind to localhost only by default
...
This has been raised as security concern on vagrant itself, and fixed
there some time ago.
2015-07-19 12:29:27 -03:00
Michael Stucki
c3508870fd
Private networking: Create bridge if it is missing
2015-07-06 18:01:18 +02:00
Michael Stucki
fb661300e7
Move bridge_exists check into a function
2015-07-06 18:01:15 +02:00
Fabio Rehm
bb21906ec4
Update README.md
2015-05-08 19:49:30 -03:00
Fabio Rehm
0365ad4a17
Update CHANGELOG.md
2015-04-06 11:02:18 -03:00
Fabio Rehm
fd22ccc073
Update CHANGELOG.md
2015-04-06 10:59:57 -03:00
Fabio Rehm
52cca8e7f6
Merge pull request #355 from lfaraone/use-current-ruby
...
vagrant-lxc-wrapper: Use correct ruby interpreter
2015-04-06 10:58:53 -03:00
Fabio Rehm
55bbadef6f
Merge pull request #352 from ccope/private_dhcp
...
Support private networking using DHCP
2015-04-06 10:56:38 -03:00
Fabio Rehm
f52df5df14
Update CHANGELOG.md
2015-04-06 10:54:36 -03:00
Fabio Rehm
8cb0afeb39
Merge pull request #357 from agriffis/fedora-host-selinux-ro
...
Mount the selinux sys dir read-only [GH-301]
2015-04-06 10:51:30 -03:00
Fabio Rehm
8ccafecd9e
Update CHANGELOG.md
2015-04-06 10:30:27 -03:00
Fabio Rehm
497f750248
Merge pull request #361 from ccope/autocreate-mountpoint
...
move mountpoint creation to lxc template for lvm rootfs support
2015-04-06 10:27:18 -03:00
Cam Cope
caa3c53a8f
move mountpoint creation to lxc template for lvm rootfs support
2015-04-05 17:46:22 -07:00
Aron Griffis
7d017ada1e
Mount the selinux sys dir read-only [GH-301]
2015-03-24 17:42:11 -04:00
Luke Faraone
05fdb3e000
vagrant-lxc-wrapper: Use correct ruby interpreter
...
Previously, we hardcoded to using the ruby binary in /opt/vagrant[..].
On some systems, this path is incorrect, so instead we use the
path of the interpreter that is executing the `vagrant lxc sudoers`
command.
2015-03-19 16:22:00 -07:00
Cam Cope
5da3fc8be5
support containers with dhcp private networking
2015-03-08 19:58:29 -07:00
Fabio Rehm
c9cd671a32
Update README.md
2015-01-14 21:46:18 -02:00
Fabio Rehm
3b45b92d1a
v1.1.0
2015-01-14 21:44:28 -02:00
Fabio Rehm
156bc015c8
Allow backingstore options to be used along with the sudo wrapper script [GH-310]
2015-01-14 21:07:35 -02:00
Fabio Rehm
fb23e606cc
action/create: Trim automatically generated container names to 64 chars
...
Fixes GH-337
2015-01-11 21:30:11 -02:00
Fabio Rehm
ef06ea622e
Remove blank file
2015-01-11 21:18:56 -02:00
Fabio Rehm
7a09375ae7
Update CHANGELOG
2015-01-11 21:18:03 -02:00
Fabio Rehm
f4b738ebd9
Minor tweaks to specs introduced by GH-329
2015-01-11 21:16:30 -02:00
Fabio Rehm
555499d04a
Merge branch 'master' of https://github.com/pruby/vagrant-lxc into next
...
Closes GH-329
2015-01-11 21:06:46 -02:00
Fabio Rehm
447d0dfc42
Experimental support for private networking [GH-298]
2015-01-11 20:59:38 -02:00
Fabio Rehm
bf3a9a5039
action: Some more tweaks around private networking + new pipework code [GH-298]
2015-01-08 03:57:49 -02:00
Fabio Rehm
28bdbe371d
Merge remote-tracking branch 'origin/private-networks' into next
2015-01-08 02:28:45 -02:00
Fabio Rehm
758703ea6b
provider: Use full which
path when checking whether the lxc-create
command is available
...
Fixes GH-322
2015-01-08 02:26:25 -02:00
Fabio Rehm
01d53a783c
sudoers: Treat 256 exit codes as errors
...
I ran into an issue locally where I didnt have lxc installed and some
commands were giving me back some false positives. Weird but this fixes
the problem I was facing.
2015-01-08 02:18:38 -02:00
Fabio Rehm
8b37056294
provider: Show an user friendly message when trying to use the plugin on non-Linux environments
2015-01-08 02:17:32 -02:00
Fabio Rehm
2a667b88b6
plugin: Give the provider a higher priority over Vagrant's builtin VBox provider
2015-01-08 00:55:19 -02:00
Fabio Rehm
2a48f366d4
Merge branch 'tempfile_problem' of https://github.com/stefan-langenmaier/vagrant-lxc into next
2015-01-08 02:07:02 +00:00
Fabio Rehm
92685472ec
Update bundle
2015-01-08 01:48:34 +00:00
Fabio Rehm
67523019aa
👋 to support for Vagrant < 1.5
2015-01-07 23:48:10 -02:00
Tim Goddard
fe532525c8
Support for formatted overlayfs path spec when finding the root FS path
...
We're using snapshots in a CI set-up so that a Vagrant cluster can be built
once, then each push to the repository only checked as an incremental
update to the cluster. We copy each LXC VM to a master image, then re-create
the original names as snapshots.
This change corrects a method which assumes the LXC root path in the config
file is a simple directory name, which is only true for directory-backed
instances.
Conflicts:
spec/unit/driver_spec.rb
2014-11-12 15:21:28 +13:00
Stefan Langenmaier
188a1eb089
uninitialized constant Tempfile
2014-11-05 08:50:46 -05:00
Fabio Rehm
622366bd64
Update README.md
2014-10-15 01:18:16 -03:00
Fabio Rehm
2f0eccb236
🔨 Fix the build 🔨
2014-10-15 01:14:52 -03:00
Fabio Rehm
71e210f683
v1.0.1
2014-10-15 01:04:37 -03:00
Fabio Rehm
186d453621
Prefix action to fetch containers IP with ssh so that vagrant does not lock around its execution
...
Closes GH-321
2014-10-15 01:02:52 -03:00
Fabio Rehm
80ca559258
Tweaks to get the changes introduced on GH-317 to work with the sudo wrapper
2014-10-15 01:01:43 -03:00
Fabio Rehm
b4a642bc8a
Merge pull request #318 from rtkrruvinskiy/lock_race
...
Work around WaitForCommunicator lock race condition
2014-10-15 00:31:10 -03:00
Fabio Rehm
8421291c52
Merge pull request #317 from azomazo/detect_container_path_by_lxc_config
...
The path of storage containers taken from lxc-config, instead of using a constant
2014-10-15 00:30:53 -03:00
Ray Ruvinskiy
dc55c914e4
Work around WaitForCommunicator lock race condition
...
The LXC provider issues the "fetch_ip" action to look up the IP address
of the container as part of its "ssh_info" action.
Vagrant::LXC::Action.action_fetch_ip checks the machine state using
Builtin::IsState, which calls Vagrant::Machine.state, which also updates
the state in the machine index and acquires a machine index entry lock to do that.
A race condition ensues in WaitForCommunicator.call, where ready_thr tries
to acquire the machine index lock while running ssh_info, and states_thr tries
to acquire the same lock doing its own state look up (env[:machine].state.id).
If they both try to acquire the lock at the same time, one will fail, and
an exception will be raised.
Work around this issue by checking for the desired machine state (:running) in
Vagrant::LXC::Provider.ssh_info, which can get the state from
Vagrant::LXC::Provider.state, which in turn does not write out the state into
the index file and does not acquire the index entry lock.
2014-09-29 16:47:29 -04:00