Created
August 14, 2011 04:31
-
-
Save robbyt/1144587 to your computer and use it in GitHub Desktop.
Setup basic vagrant/vbox env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$apt_key = 'http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc' | |
file {'/etc/apt/sources.list.d/vargrant.conf': | |
ensure => file, | |
content => "deb http://download.virtualbox.org/virtualbox/debian ${lsbdistcodename} contrib", | |
notify => Exec['apt-get-update'], | |
before => Package['virtualbox-4.0'], | |
} | |
exec {'apt-key': | |
command => "/usr/bin/wget -q -O $apt_key | /usr/bin/apt-key add -", | |
unless => "/usr/bin/apt-key list|/bin/grep -c oracle", | |
notify => Exec['apt-get-update'], | |
before => Package['virtualbox-4.0'], | |
} | |
exec {'apt-get-update': | |
command => '/usr/bin/apt-get update', | |
refreshonly => true, | |
} | |
package{'virtualbox-4.0': | |
ensure => installed, | |
} | |
package{'vagrant': | |
ensure => installed, | |
provider => 'gem', | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put a hash-bang bin puppet at the top, chmod +x this guy and you're all set!