-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Authored default recipe to provision
apt
package resources
- Loading branch information
1 parent
51a8873
commit 3b0ac76
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
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 |