Skip to content

Commit

Permalink
Authored default recipe to provision apt package resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestaylr committed Oct 25, 2015
1 parent 51a8873 commit 3b0ac76
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions chef/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#
# Cookbook Name:: vt-sailbot
# Recipe:: default
#

include_recipe 'apt'

# Installs the core SailBOT packages / dependencies
package [
'build-essential',
'python3-dev',
'gpsd',
'gpsd-clients',
'python-gps',
'i2c-tools',
'python-smbus',
'python3-pip',
'libgps-dev'
] do
action :install
end

# Installs optional, depencency packages
if node.chef_environment == "dev"
package ['telnet'] do
action :install
end

bash 'Install IPython' do
code <<-EOH
sudo pip3 install ipython
EOH
end
end

# Installs the web server
bash 'Install Tornado Web Server' do
code <<-EOH
sudo pip3 install tornado
EOH
end

0 comments on commit 3b0ac76

Please sign in to comment.