Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
Specifically this machine is provisioning java8 from oracle on ubuntu, and the package has symlinks. This extracts ok normally, but when using the cachier plugin, the location that the package is extracted from/to is symlinked to the cache folder which is a vsboxfs type, so not supporting symlinks, so it fails :(. Without using cachier, this is a normal ext4 fs folder, so extracts fine
Fabio Rehm
@Spiral90210 I think this should work
Vagrant.configure("2") do |config|
  config.cache.scope = :box

  config.vm.define "web" do |web|

  config.vm.define "db"
Got round to testing that today, worked just fine, thanks for the assist!
Anton Kasperovich
Hey guys, mb someone can help me, i try to use vagrant-cachier for composer & npm cache between projects (boxes), but i discover some strange line of code for me, why used php checks for that bucket, if this is just folder with some files (tar archives for examples) and there is no dependencies on PHP. I'am asking because as i understood, cachier won't work cause this php check with Ansible provision
Inanc Gumus
hey. i've posted a comment about a vagrant-cachier bug here: https://github.com/fgrehm/vagrant-cachier/issues/74#issuecomment-105875789
it was closed before but i'm using the latest version and it happens again. i've posted debug and output logs too.
i wanted to let you know
awesome~ you made my day
Marco Janssen
by default it seems that the cache files flagged as generic are removed from the host machine and then copied to the cache
after that it's used in the guest machine in /tmp/vagrant-cache
anyway to keep the files in /tmp/vagrant-cache on the host machine as well?


config.cache.enable :generic, {
"logs" => { cache_dir: "/home/vagrant/apps/foo/app/logs" },

gets copied to guest:

then symlinked:
logs -> /var/vagrant-cache/logs

now i can't access my logs on the host machine considering /var/vagrant-cache/logs doesn't exist on the host machine, makes sense but would be great if i had some easy way too get the logs on my host though

Marco Janssen
ah it's actually still in the .vagrant dir
Marco Janssen
never mind figured it out by myself, always helps to write it down :D
Gaspar Chilingarov
hi all! any way to cache npm files which go under /root/.npm ??? puppet with global installation mode downloads all npm packages there . seems default npm bucket detects cache only under ~vagrant :(
Srikanth Viswanathan
Hi all, is there a way to configure a cache bucket to only cache a single file under a directory? I'm trying to cache /var/cache/oracle-jdk7-installer/<java-tarball>.tar.gz, but there's other files under there that I don't want to cache (they interfere with the install if cached)
Cameron Braid
is there any way to turn on/off the cache for individual machines in a multi-machine vagrant setup ?
Cash Williams
hello gang :D
just found this and trying to get it setup, however I'm not seeing a ~/.vagrant.d/cache directory created
I used Vagrantfile.local instead of Vagrantfile
Cash Williams
ha, I just saw the timestamps on previous messages in here...
Fabio Rehm
@CashWilliams sorry but the plugin is currently unmaintained :( https://github.com/fgrehm/vagrant-cachier#help-needed
Cash Williams
@fgrehm no worries, I think we got it working. Thanks
Fabio Rehm
Amo Chumber
hello chat. I've seen all the recent conversations about the project being unmaintained but wanted to get an update. Are there perople working on this project?
Tom Hodder
erm, am I missing something. enabling "c.cache.scope = :box" seems to create the symlink from /var/cache/yum to /tmp/vagrant-cache/yum and a local dir gets created
in ~/.vagrant.d/cache, but there is nothing in there, either before or after a vagrant run
do I need to create the synced folder manually?
Tom Hodder
oh, seems like it needed a destroy/create
sed -i 's/keepcache=0/keepcache=1/g' /etc/yum.conf
fails on fedora 27
Deepanshu Gajbhiye
I am using vagrant-cachier. It does not create copy of all the packages that I install in ~/.vagrant.d/cache. Also tend to download same packages again when I do vagrant destroy && vagrant up
Achala Bhatt
Hi, Im new to vagrant. I run the command vagrant up and vagrant ssh
After vagrant ssh the root of the file is changed. But i wanted to access some files what is command to access to files. Tried with cd but its not working.