Skip to content

Instantly share code, notes, and snippets.

@gaffo
Last active December 15, 2015 20:49
Show Gist options
  • Save gaffo/5321674 to your computer and use it in GitHub Desktop.
Save gaffo/5321674 to your computer and use it in GitHub Desktop.
exec "sudo apt-get update --fix-missing" do
user "root"
end
package 'vim'
package 'mysql-server'
package 'mysql-client'
package 'git-core'
package 'python'
package 'python-twisted'
package 'python-virtualenv'
package 'netcat'
service "mysqld" do
action :start
end
# setup the smaba configuration
package 'samba'
package 'smbclient'
service "smbd" do
action :start
end
cookbook_file "/etc/samab/smb.conf" do
source "smb.conf"
owner "root"
group "root"
end
cookbook_file "/etc/samba/smbusers" do
source "smbusers"
owner "root"
group "root"
end
# install perforce
cookbook_file "/usr/bin/p4" do
source "p4"
owner "root"
group "root"
mode 777
end
F:\boxes\stats>vagrant up
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Setting host name...
[default] Mounting shared folders...
[default] -- v-root: /vagrant
[default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
stdin: is not a tty
[2013-04-05T18:48:47+00:00] INFO: *** Chef 10.14.2 ***
[2013-04-05T18:48:47+00:00] INFO: Setting the run_list to ["recipe[default]"] from JSON
[2013-04-05T18:48:47+00:00] INFO: Run List is [recipe[default]]
[2013-04-05T18:48:47+00:00] INFO: Run List expands to [default]
[2013-04-05T18:48:47+00:00] INFO: Starting Chef Run for stats
[2013-04-05T18:48:47+00:00] INFO: Running start handlers
[2013-04-05T18:48:47+00:00] INFO: Start handlers complete.
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Ign http://security.ubuntu.com precise-security InRelease
Hit http://us.archive.ubuntu.com precise Release.gpg
Get:1 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:2 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:3 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise Release
Get:4 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:5 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:6 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]
Get:7 http://security.ubuntu.com precise-security/main Sources [65.1 kB]
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main amd64 Packages
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:8 http://us.archive.ubuntu.com precise-updates/main Sources [374 kB]
Get:9 http://security.ubuntu.com precise-security/restricted Sources [1,950 B]
Get:10 http://security.ubuntu.com precise-security/universe Sources [24.0 kB]
Get:11 http://security.ubuntu.com precise-security/multiverse Sources [1,380 B]
Get:12 http://security.ubuntu.com precise-security/main amd64 Packages [234 kB]
Get:13 http://security.ubuntu.com precise-security/restricted amd64 Packages [3,969 B]
Get:14 http://security.ubuntu.com precise-security/universe amd64 Packages [71.1 kB]
Get:15 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,186 B]
Get:16 http://security.ubuntu.com precise-security/main i386 Packages [245 kB]
Get:17 http://us.archive.ubuntu.com precise-updates/restricted Sources [5,494 B]
Get:18 http://us.archive.ubuntu.com precise-updates/universe Sources [83.4 kB]
Get:19 http://us.archive.ubuntu.com precise-updates/multiverse Sources [4,746 B]
Get:20 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [593 kB]
Get:21 http://security.ubuntu.com precise-security/restricted i386 Packages [3,968 B]
Get:22 http://security.ubuntu.com precise-security/universe i386 Packages [73.0 kB]
Get:23 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,369 B]
Get:24 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:25 http://security.ubuntu.com precise-security/multiverse TranslationIndex [71 B]
Get:26 http://security.ubuntu.com precise-security/restricted TranslationIndex [71 B]
Get:27 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:28 http://security.ubuntu.com precise-security/main Translation-en [114 kB]
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Get:29 http://security.ubuntu.com precise-security/universe Translation-en [44.9 kB]
Get:30 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [10.1 kB]
Get:31 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [191 kB]
Get:32 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [9,418 B]
Get:33 http://us.archive.ubuntu.com precise-updates/main i386 Packages [603 kB]
Get:34 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [10.1 kB]
Get:35 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [194 kB]
Get:36 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [10.4 kB]
Get:37 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
Get:38 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]
Get:39 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
Get:40 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]
Get:41 http://us.archive.ubuntu.com precise-backports/main Sources [2,422 B]
Get:42 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:43 http://us.archive.ubuntu.com precise-backports/universe Sources [23.3 kB]
Get:44 http://us.archive.ubuntu.com precise-backports/multiverse Sources [2,669 B]
Get:45 http://us.archive.ubuntu.com precise-backports/main amd64 Packages [1,945 B]
Get:46 http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages [14 B]
Get:47 http://us.archive.ubuntu.com precise-backports/universe amd64 Packages [23.2 kB]
Get:48 http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages [2,489 B]
Get:49 http://us.archive.ubuntu.com precise-backports/main i386 Packages [1,941 B]
Get:50 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:51 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [23.2 kB]
Get:52 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [2,504 B]
Get:53 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:54 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:55 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:56 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Get:57 http://us.archive.ubuntu.com precise-updates/main Translation-en [266 kB]
Get:58 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [5,694 B]
Get:59 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [2,432 B]
Get:60 http://us.archive.ubuntu.com precise-updates/universe Translation-en [113 kB]
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Get:61 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [1,476 B]
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Get:62 http://us.archive.ubuntu.com precise-backports/universe Translation-en [16.4 kB]
Fetched 3,626 kB in 4s (882 kB/s)
Reading package lists...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment