Skip to content

Instantly share code, notes, and snippets.

@glarizza
Created May 31, 2011 21:32
Show Gist options
  • Select an option

  • Save glarizza/1001326 to your computer and use it in GitHub Desktop.

Select an option

Save glarizza/1001326 to your computer and use it in GitHub Desktop.
Repos for Vagrant
class vagrant::aptitude {
exec { 'aptitude_update':
command => 'aptitude update',
refreshonly => true,
path => '/bin:/usr/bin:/sbin:/usr/sbin',
}
file { 'kumina_repo':
ensure => file,
path => '/etc/apt/sources.list.d/kumina_repo.list',
content => 'deb http://debian.kumina.nl/debian/ squeeze-kumina main',
mode => '0644',
owner => 'root',
group => 'root',
notify => Exec['aptitude_update'],
}
file { 'mcollective_repo':
ensure => file,
path => '/etc/apt/sources.list.d/mcollective_repo.list',
content => 'deb http://apt.puppetlabs.com/ubuntu unstable main',
mode => '0644',
owner => 'root',
group => 'root',
notify => Exec['aptitude_update'],
}
file { 'ignore_trust_violations':
ensure => file,
path => '/etc/apt/apt.conf.d/99untrusted',
content => 'Aptitude::CmdLine::Ignore-Trust-Violations "true";',
mode => '0644',
owner => 'root',
group => 'root',
before => File['mcollective_repo', 'kumina_repo'],
notify => Exec['aptitude_update'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment