-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into radial_menus
- Loading branch information
Showing
2 changed files
with
30 additions
and
25 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
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 |
---|---|---|
@@ -1,41 +1,46 @@ | ||
# | ||
# General packages | ||
# Update the system | ||
# | ||
package { "python2": | ||
ensure => "present", | ||
provider => "pacman" | ||
exec { "backports": | ||
command => "/bin/echo 'deb http://backports.debian.org/debian-backports squeeze-backports main' >> /etc/apt/sources.list", | ||
user => root | ||
} | ||
|
||
package { "python2-pip": | ||
ensure => "present", | ||
require => Package['python2'], | ||
provider => "pacman" | ||
} | ||
|
||
package { "redis": | ||
ensure => present, | ||
provider => "pacman" | ||
exec { "update1": | ||
command => "/usr/bin/sudo /usr/bin/apt-get update", | ||
require => Exec['backports'] | ||
} | ||
|
||
# | ||
# Link execs | ||
# General packages | ||
# | ||
exec { "Link-python": | ||
command => "/usr/bin/sudo ln /usr/bin/python2 /usr/bin/python", | ||
creates => "/usr/bin/python", | ||
require => Package['python2'] | ||
package { "python": | ||
ensure => "present", | ||
provider => "apt", | ||
require => Exec['update1'] | ||
} | ||
|
||
exec { "Link-pip": | ||
command => "/usr/bin/sudo ln /usr/bin/pip2 /usr/bin/pip", | ||
creates => "/usr/bin/pip", | ||
require => Package['python2-pip'] | ||
package { "python-pip": | ||
ensure => "present", | ||
require => Package['python'], | ||
provider => "apt", | ||
} | ||
|
||
package { "redis-server/squeeze-backports": | ||
ensure => present, | ||
provider => "apt", | ||
require => Exec['update1'] | ||
} | ||
|
||
# | ||
# Required python libraries | ||
# | ||
exec { "Install-Py-Libraries": | ||
command => "/usr/bin/sudo pip install -r /vagrant/requirements.txt", | ||
require => Exec['Link-pip'] | ||
require => Package['python-pip'] | ||
} | ||
|
||
exec { "Start redis": | ||
command => "/usr/bin/sudo service redis-server start", | ||
require => Package['redis-server/squeeze-backports'] | ||
} |