Skip to content

Instantly share code, notes, and snippets.

@GUI
Created April 26, 2014 14:45
Show Gist options
  • Save GUI/11321943 to your computer and use it in GitHub Desktop.
Save GUI/11321943 to your computer and use it in GitHub Desktop.
NREL Vagrant Base Box Puppet Test
File {
owner => 'root',
group => 'root',
mode => '0644',
}
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "CentOS-6.5-x86_64-v20140311"
config.vm.box_url = "http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.5-x86_64-v20140311.box"
config.vm.provision "puppet" do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "site.pp"
end
end
@GUI
Copy link
Author

GUI commented Apr 26, 2014

Result of run:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'CentOS-6.5-x86_64-v20140311' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Adding box 'CentOS-6.5-x86_64-v20140311' (v0) for provider: virtualbox
    default: Downloading: http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.5-x86_64-v20140311.box
==> default: Successfully added box 'CentOS-6.5-x86_64-v20140311' (v0) for 'virtualbox'!
==> default: Importing base box 'CentOS-6.5-x86_64-v20140311'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: puppet-test_default_1398523524273_3429
==> default: Fixed port collision for 22 => 2222. Now on port 2201.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 => 2201 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2201
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /vagrant => /Users/nmuerdte/code/puppet-test
    default: /tmp/vagrant-puppet-1/manifests => /Users/nmuerdte/code/puppet-test/manifests
==> default: Running provisioner: puppet...
Running Puppet with site.pp...
Notice: Compiled catalog for localhost.hsd1.co.comcast.net in environment production in 0.02 seconds
Notice: Finished catalog run in 0.02 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment