Skip to content

Instantly share code, notes, and snippets.

@raphink
Created March 21, 2013 10:31
Show Gist options
  • Save raphink/5212102 to your computer and use it in GitHub Desktop.
Save raphink/5212102 to your computer and use it in GitHub Desktop.
exec { 'apt-get clean':
unless => "mount | grep -q ${apt_archives_dir}",
before => Mount[$apt_archives_dir],
}
mount { $apt_archives_dir:
ensure => 'mounted',
device => 'tmpfs',
fstype => 'tmpfs',
options => $apt_archives_options,
dump => '0',
pass => '0',
require => Exec['apt-get clean'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment