Commit graph

20 commits

Author SHA1 Message Date
Virgil Dupras 2ae84fcc51 Revert tmpfs mount removal
To fix #406, I reverted the tmpfs mount we add at boot time. As we can
see in #455, it was a bad idea.

In addition to bringing back that mount, I've also added a
`tmpfs_mount_size` config that allows to change the size of the mount
from its default `2G`. It's also possible to disable the mount
altogether.

fixes #455
2018-02-02 16:02:17 -05:00
Virgil Dupras 97b5882262 Refactoring: make SudoWrapper a bit more self-contained
By looking at the code, it seems that it was a goal to make the sudo
wrapper path configurable through the Vagrantfile, but it wasn't
effective and didn't make much sense (that kind of config is a per-host
config, not a per-guest one).

This caused the cause to be needlessly complex by giving the Provider
the responsibility of instanciating the wrapper. This commit gets rid of
that.

I didn't get rid of `sudo_wrapper` injection in `Driver` and
`Driver::CLI` constructors because they're needed for tests. I'm not
ready to tackle this yet.
2018-01-13 08:32:27 -05:00
Hugo Fonseca 6d8580a294 default values goes to finalize 2016-11-11 08:34:42 +00:00
Hugo Fonseca cac4910296 tries amount of fetching ip is now configurable 2016-11-09 14:38:05 +00:00
Fabio Rehm 856a847bc8 config: Switch default backingstore to "best" [GH-277] 2014-05-04 20:37:09 -03:00
Fabio Rehm 4c3143aa34 Merge branch 'backingstore_options' of https://github.com/tailhook/vagrant-lxc
Conflicts:
	lib/vagrant-lxc/config.rb
2014-05-03 23:42:39 -03:00
Cam Cope a9248cb697 add backingstore parameters 2014-04-28 17:17:59 +03:00
Jef Mathiot 94e175dc07 sudoers command now creates a safe wrapper script.
Sudoers now creates a safe wrapper script that performs sanity checks on sudo :
* wrapper generated in /usr/local/bin (name includes version to allow multiple wrappers on the same system)
* sudoers command now generates a one-line file in /etc/sudoers.d
* SudoWrapper use the new wrapper
* Removed unused Config#validate method
2014-04-09 15:53:20 +02:00
Cam Cope 186b01e192 remove naming cruft, clarify comment
Removed confusing leftover "use_machine_name" variable
Made comment about :container_name more clear
2014-02-18 03:05:14 -05:00
Fabio Rehm 786bb8a3fe Simplify code related to container naming [GH-132] 2014-02-02 18:37:06 -02:00
Michael Owings b34dd7d8e7 Allow two ways to name a container 2014-02-02 18:03:33 -02:00
Cam Cope ffb573a7f1 allow setting the container name in the vagrantfile 2014-02-02 18:03:33 -02:00
Fabio Rehm d62a053674 Add support for using a sudo wrapper script
Closes #90
2013-07-28 02:17:07 -03:00
Fabio Rehm ee9bfa4189 Config#start_opts -> Config#customize 2013-04-05 22:10:49 -03:00
Fabio Rehm 14f769ee0d Remove support for setting target rootfs path 2013-04-05 22:10:48 -03:00
Fabio Rehm 306deaa0e2 Add support for configuring rootfs path
References #30
2013-03-29 12:24:39 -03:00
Fabio Rehm d2a1eeeabc Use arp to grab container ip instead of dig (it seems to be more reliable)
References: #31
2013-03-10 01:55:18 -03:00
Fabio Rehm 9a168950fe First stab at handling a custom lxc-dhcp IP
Will help on #23
2013-03-08 04:32:47 -03:00
Fabio Rehm 71c1a401cc Add support for setting custom lxc-start arguments from Vagrantfile
Useful for #10
2013-03-03 04:37:07 -03:00
Fabio Rehm faa2aaa6ab Scaffold config, plugin and provider classes 2013-02-28 00:20:54 -03:00