This repository has been archived by the owner on Apr 27, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from CPAN-API/use-xbuild
use xbuild-perl to run application
- Loading branch information
Showing
10 changed files
with
55 additions
and
51 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 |
---|---|---|
|
@@ -2,4 +2,7 @@ | |
/cookbooks | ||
/tmp | ||
/.bundle/ | ||
/vendor/ | ||
/vendor/ | ||
/cookbooks/ | ||
/tmp/librarian/ | ||
/.chef/ |
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
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ source "https://rubygems.org" | |
|
||
gem "knife-solo" | ||
gem "librarian" | ||
gem "librarian-chef" |
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
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,9 +1,15 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant::Config.run do |config| | ||
Vagrant.configure("2") do |config| | ||
config.vm.box = "centos-6.4" | ||
config.vm.box_url = "http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130309.box" | ||
config.vm.host_name = "local.prepan.org" | ||
config.vm.forward_port 8000, 8000 | ||
config.vm.box_url = "http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box" | ||
|
||
config.vm.hostname = "local.prepan.org" | ||
config.vm.network :forwarded_port, :guest => 8080, :host => 8080 | ||
|
||
config.vm.provider :virtualbox do |vb| | ||
vb.customize ["modifyvm", :id, "--natdnsproxy1", "off"] | ||
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "off"] | ||
end | ||
end |
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,18 +1,13 @@ | ||
plenv_install node.app.perl.version do | ||
user node.base.user.name | ||
action :install | ||
end | ||
include_recipe "xbuild" | ||
|
||
plenv_global node.app.perl.version do | ||
user node.base.user.name | ||
action :run | ||
xbuild_perl "install perl #{node['app']['perl']['version']}" do | ||
version node['app']['perl']['version'] | ||
prefix node['app']['perl']['prefix'] | ||
end | ||
|
||
node.app.perl.modules.each do |mod| | ||
plenv_cpanm mod do | ||
user user node.base.user.name | ||
version node.app.perl.version | ||
options "--force" | ||
action :install | ||
xbuild_cpanm mod do | ||
options '--force' | ||
perl_root node['app']['perl']['prefix'] | ||
end | ||
end |