itamae-plugin-recipe-erlang 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +60 -0
- data/.rspec +2 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE +21 -0
- data/README.md +58 -0
- data/Rakefile +30 -0
- data/Vagrantfile +42 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/ci/build.sh +10 -0
- data/ci/setup.sh +17 -0
- data/itamae-plugin-recipe-erlang.gemspec +30 -0
- data/lib/itamae-plugin-recipe-erlang.rb +1 -0
- data/lib/itamae/plugin/recipe/erlang.rb +11 -0
- data/lib/itamae/plugin/recipe/erlang/dependency.rb +22 -0
- data/lib/itamae/plugin/recipe/erlang/install.rb +2 -0
- data/lib/itamae/plugin/recipe/erlang/setup.rb +54 -0
- data/lib/itamae/plugin/recipe/erlang/templates/kerl.sh.erb +3 -0
- data/lib/itamae/plugin/recipe/erlang/templates/kerlrc.erb +14 -0
- data/lib/itamae/plugin/recipe/erlang/version.rb +9 -0
- data/recipes/install.rb +1 -0
- data/recipes/node.yml +5 -0
- data/wercker.yml +21 -0
- metadata +138 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8ab665afe764d0f89f0334986b84a7cc962f7a4a
|
4
|
+
data.tar.gz: fed8ee49e18b9761018291803f073d5da3a1868e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5016395097be63741a44e40c130ca085abe83b28beb5f60ed789261cf50d721168c5512a7daa2c7a450c659e4977e684b1bd2b2f05609aa816d5f56e9dbff265
|
7
|
+
data.tar.gz: b2e29d0fa5ad50031eea4d27e3b02b5e391538a8aba9b6496a6dffe846e75586292a21c600b621be08a04b181ddbb515401927a759fe1028a39e0388c9282003
|
data/.gitignore
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
# .env
|
15
|
+
|
16
|
+
## Specific to RubyMotion:
|
17
|
+
.dat*
|
18
|
+
.repl_history
|
19
|
+
build/
|
20
|
+
*.bridgesupport
|
21
|
+
build-iPhoneOS/
|
22
|
+
build-iPhoneSimulator/
|
23
|
+
|
24
|
+
## Specific to RubyMotion (use of CocoaPods):
|
25
|
+
#
|
26
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
27
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
28
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
29
|
+
#
|
30
|
+
# vendor/Pods/
|
31
|
+
|
32
|
+
## Documentation cache and generated files:
|
33
|
+
/.yardoc/
|
34
|
+
/_yardoc/
|
35
|
+
/doc/
|
36
|
+
/rdoc/
|
37
|
+
|
38
|
+
## Environment normalization:
|
39
|
+
/.bundle/
|
40
|
+
/vendor/bundle
|
41
|
+
/lib/bundler/man/
|
42
|
+
|
43
|
+
# for a library or gem, you might want to ignore these files since the code is
|
44
|
+
# intended to run in multiple environments; otherwise, check them in:
|
45
|
+
Gemfile.lock
|
46
|
+
# .ruby-version
|
47
|
+
# .ruby-gemset
|
48
|
+
|
49
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
50
|
+
.rvmrc
|
51
|
+
|
52
|
+
# rspec failure tracking
|
53
|
+
.rspec_status
|
54
|
+
|
55
|
+
# for vagrant
|
56
|
+
.vagrant
|
57
|
+
|
58
|
+
# for editor
|
59
|
+
*.swp
|
60
|
+
*~
|
data/.rspec
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at tsunenori.ohara@drecom.co.jp. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2017 ohr486
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# Itamae::Plugin::Recipe::Erlang
|
2
|
+
|
3
|
+
[![wercker status](https://app.wercker.com/status/d64235a018605ddf4ebee04532597235/m/master "wercker status")](https://app.wercker.com/project/byKey/d64235a018605ddf4ebee04532597235)
|
4
|
+
|
5
|
+
Itamae plugin to install erlang with kerl
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'itamae-plugin-recipe-erlang'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install itamae-plugin-recipe-erlang
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
### Recipe
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
# your recipe
|
29
|
+
include_recipe "erlang::install"
|
30
|
+
```
|
31
|
+
|
32
|
+
### Node
|
33
|
+
|
34
|
+
Use this with `itamae -y node.yml`
|
35
|
+
|
36
|
+
```yaml
|
37
|
+
# node.yml
|
38
|
+
erlang:
|
39
|
+
# target version
|
40
|
+
version: 20.0
|
41
|
+
# build options, see: https://github.com/kerl/kerl#build-configuration
|
42
|
+
configure_options: ""
|
43
|
+
enable_apps: ""
|
44
|
+
disable_apps: ""
|
45
|
+
```
|
46
|
+
|
47
|
+
## Testing
|
48
|
+
|
49
|
+
requirements [Vagrant](https://www.vagrantup.com/)
|
50
|
+
|
51
|
+
```sh
|
52
|
+
bundle exec rake itamae:default
|
53
|
+
bundle exec rake spec:default
|
54
|
+
```
|
55
|
+
|
56
|
+
## License
|
57
|
+
|
58
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
|
4
|
+
task :spec => "spec:all"
|
5
|
+
task :itamae => "itamae:all"
|
6
|
+
|
7
|
+
HOSTS = %w(centos7 aws)
|
8
|
+
|
9
|
+
namespace :spec do
|
10
|
+
task :all => HOSTS
|
11
|
+
|
12
|
+
HOSTS.each do |host|
|
13
|
+
RSpec::Core::RakeTask.new(host.to_sym) do |t|
|
14
|
+
puts "Running tests to #{host} ..."
|
15
|
+
ENV["TARGET_HOST"] = host
|
16
|
+
t.pattern = "spec/*_spec.rb"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
namespace :itamae do
|
22
|
+
task :all => HOSTS
|
23
|
+
|
24
|
+
HOSTS.each do |host|
|
25
|
+
desc "Running itamae to #{host}"
|
26
|
+
task host do
|
27
|
+
sh "itamae ssh --host=#{host} --vagrant --node-yaml=recipes/node.yml recipes/install.rb"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/Vagrantfile
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
Vagrant.configure("2") do |config|
|
5
|
+
config.vm.provider :digital_ocean do |provider, override|
|
6
|
+
override.ssh.private_key_path = "~/.ssh/id_rsa"
|
7
|
+
override.vm.box = "digital_ocean"
|
8
|
+
override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
|
9
|
+
provider.token = ENV["DIGITALOCEAN_ACCESS_TOKEN"]
|
10
|
+
provider.region = "nyc3"
|
11
|
+
provider.size = "512MB"
|
12
|
+
|
13
|
+
if ENV["WERCKER"] == "true"
|
14
|
+
provider.ssh_key_name = "wercker-vagrant"
|
15
|
+
else
|
16
|
+
provider.ssh_key_name = "local"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
config.vm.provider "virtualbox" do |vb|
|
21
|
+
vb.gui = false
|
22
|
+
vb.memory = "512"
|
23
|
+
end
|
24
|
+
|
25
|
+
config.vm.define "centos7" do |c|
|
26
|
+
c.vm.box = "centos/7"
|
27
|
+
c.vm.provider :digital_ocean do |provider, override|
|
28
|
+
provider.image = "centos-7-0-x64"
|
29
|
+
end
|
30
|
+
c.vm.hostname = "centos7"
|
31
|
+
c.vm.hostname += "-#{ENV["WERCKER_RUN_ID"]}" if ENV["WERCKER_RUN_ID"]
|
32
|
+
end
|
33
|
+
|
34
|
+
#config.vm.define "aws" do |a|
|
35
|
+
# a.vm.box = "mvbcoding/awslinux"
|
36
|
+
# a.vm.provider :digital_ocean do |provider, override|
|
37
|
+
# provider.image = "centos-7-0-x64"
|
38
|
+
# end
|
39
|
+
# a.vm.hostname = "aws"
|
40
|
+
# a.vm.hostname += "-#{ENV["WERCKER_RUN_ID"]}" if ENV["WERCKER_RUN_ID"]
|
41
|
+
#end
|
42
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "itamae/plugin/recipe/erlang"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/ci/build.sh
ADDED
data/ci/setup.sh
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/bin/bash -xe
|
2
|
+
|
3
|
+
wget -q https://releases.hashicorp.com/vagrant/1.9.8/vagrant_1.9.8_x86_64.rpm
|
4
|
+
rpm -i vagrant_1.9.8_x86_64.rpm
|
5
|
+
vagrant plugin install vagrant-digitalocean
|
6
|
+
|
7
|
+
gem uninstall bundler --all --force
|
8
|
+
gem install bundler --no-document
|
9
|
+
|
10
|
+
# put ssh keys
|
11
|
+
mkdir -m 700 -p $HOME/.ssh
|
12
|
+
set +x
|
13
|
+
echo -e "$DIGITALOCEAN_KEY_PRIVATE" > $HOME/.ssh/id_rsa
|
14
|
+
echo -e "$DIGITALOCEAN_KEY_PUBLIC" > $HOME/.ssh/id_rsa.pub
|
15
|
+
set -x
|
16
|
+
|
17
|
+
chmod 600 $HOME/.ssh/id_rsa
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "itamae/plugin/recipe/erlang/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "itamae-plugin-recipe-erlang"
|
8
|
+
spec.version = Itamae::Plugin::Recipe::Erlang::VERSION
|
9
|
+
spec.authors = ["ohr486"]
|
10
|
+
spec.email = ["ohr486@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Itamae plugin to install erlang with kerl}
|
13
|
+
spec.description = %q{Itamae plugin to install erlang with kerl}
|
14
|
+
spec.homepage = "https://github.com/ohr486/itamae-plugin-recipe-erlang"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_dependency "itamae", "~> 1.2"
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
+
spec.add_development_dependency "serverspec"
|
30
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require "itamae/plugin/recipe/erlang"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
%w(erlang erlang-*).each do |pkg|
|
2
|
+
package pkg do
|
3
|
+
action :remove
|
4
|
+
end
|
5
|
+
end
|
6
|
+
|
7
|
+
%w(
|
8
|
+
wget perl gcc
|
9
|
+
ncurses-devel openssl-devel unixODBC-devel
|
10
|
+
java-1.8.0-openjdk-devel fop
|
11
|
+
).each do |pkg|
|
12
|
+
package pkg do
|
13
|
+
action :install
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
case node[:platform]
|
18
|
+
when "redhat", "fedora", "amazon"
|
19
|
+
# TODO: add if need
|
20
|
+
else
|
21
|
+
raise "Sorry, unsupported platform."
|
22
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# --- SETTINGS ---
|
2
|
+
|
3
|
+
erlang_version = node[:erlang][:version]
|
4
|
+
erlang_configure_options = node[:erlang][:configure_options]
|
5
|
+
erlang_enable_apps = node[:erlang][:enable_apps]
|
6
|
+
erlang_disable_apps = node[:erlang][:disable_apps]
|
7
|
+
|
8
|
+
directory "/usr/local/kerl" do
|
9
|
+
mode "0755"
|
10
|
+
owner "root"
|
11
|
+
group "root"
|
12
|
+
end
|
13
|
+
|
14
|
+
template "/root/.kerlrc" do
|
15
|
+
action :create
|
16
|
+
source "templates/kerlrc.erb"
|
17
|
+
owner "root"
|
18
|
+
group "root"
|
19
|
+
mode "644"
|
20
|
+
variables(
|
21
|
+
erlang_version: erlang_version,
|
22
|
+
erlang_configure_options: erlang_configure_options,
|
23
|
+
erlang_enable_apps: erlang_enable_apps,
|
24
|
+
erlang_disable_apps: erlang_disable_apps
|
25
|
+
)
|
26
|
+
end
|
27
|
+
|
28
|
+
template "/etc/profile.d/kerl.sh" do
|
29
|
+
action :create
|
30
|
+
source "templates/kerl.sh.erb"
|
31
|
+
owner "root"
|
32
|
+
group "root"
|
33
|
+
mode "644"
|
34
|
+
variables(erlang_version: erlang_version)
|
35
|
+
end
|
36
|
+
|
37
|
+
# --- INSTALL ---
|
38
|
+
|
39
|
+
execute "# get kerl" do
|
40
|
+
not_if "test -e /usr/bin/kerl"
|
41
|
+
cwd "/usr/bin"
|
42
|
+
command "wget https://raw.githubusercontent.com/kerl/kerl/master/kerl; chmod a+x /usr/bin/kerl"
|
43
|
+
end
|
44
|
+
|
45
|
+
execute "kerl update releases"
|
46
|
+
|
47
|
+
execute "kerl build #{erlang_version} #{erlang_version}" do
|
48
|
+
not_if "test -e /usr/local/kerl/builds/#{erlang_version}"
|
49
|
+
end
|
50
|
+
|
51
|
+
execute "# activate erlang" do
|
52
|
+
not_if "test -e /usr/local/kerl/erlang/#{erlang_version}"
|
53
|
+
command "kerl install #{erlang_version} /usr/local/kerl/erlang/#{erlang_version}"
|
54
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# kerl config
|
2
|
+
KERL_BASE_DIR=/usr/local/kerl
|
3
|
+
KERL_CONFIG=/root/.kerlrc
|
4
|
+
KERL_DOWNLOAD_DIR=${KERL_BASE_DIR}/archives
|
5
|
+
KERL_BUILD_DIR=${KERL_BASE_DIR}/builds
|
6
|
+
KERL_GIT_DIR=${KERL_BASE_DIR}/gits
|
7
|
+
|
8
|
+
# build config
|
9
|
+
KERL_CONFIGURE_OPTIONS="<%= @erlang_configure_options %>"
|
10
|
+
KERL_CONFIGURE_APPLICATIONS="<%= @erlang_enable_apps %>"
|
11
|
+
KERL_CONFIGURE_DISABLE_APPLICATIONS="<%= @erlang_disable_apps %>"
|
12
|
+
|
13
|
+
# install config
|
14
|
+
KERL_DEFAULT_INSTALL_DIR=${KERL_BASE_DIR}/erlang
|
data/recipes/install.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
include_recipe "erlang::install"
|
data/recipes/node.yml
ADDED
data/wercker.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
box: drecom/centos-ruby:2.3.1
|
2
|
+
no-response-timeout: 60
|
3
|
+
command-timeout: 60
|
4
|
+
|
5
|
+
default: &default
|
6
|
+
after-steps:
|
7
|
+
- script:
|
8
|
+
name: remove all vms
|
9
|
+
code: vagrant destroy -f
|
10
|
+
|
11
|
+
build-centos7:
|
12
|
+
<<: *default
|
13
|
+
steps:
|
14
|
+
- script:
|
15
|
+
name: setup
|
16
|
+
code: ./ci/setup.sh
|
17
|
+
- bundle-install:
|
18
|
+
jobs: 4
|
19
|
+
- script:
|
20
|
+
name: build CentOS 7.0
|
21
|
+
code: ./ci/build.sh centos7
|
metadata
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: itamae-plugin-recipe-erlang
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ohr486
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-08-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: itamae
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.15'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.15'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: serverspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: Itamae plugin to install erlang with kerl
|
84
|
+
email:
|
85
|
+
- ohr486@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- CODE_OF_CONDUCT.md
|
93
|
+
- Gemfile
|
94
|
+
- LICENSE
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- Vagrantfile
|
98
|
+
- bin/console
|
99
|
+
- bin/setup
|
100
|
+
- ci/build.sh
|
101
|
+
- ci/setup.sh
|
102
|
+
- itamae-plugin-recipe-erlang.gemspec
|
103
|
+
- lib/itamae-plugin-recipe-erlang.rb
|
104
|
+
- lib/itamae/plugin/recipe/erlang.rb
|
105
|
+
- lib/itamae/plugin/recipe/erlang/dependency.rb
|
106
|
+
- lib/itamae/plugin/recipe/erlang/install.rb
|
107
|
+
- lib/itamae/plugin/recipe/erlang/setup.rb
|
108
|
+
- lib/itamae/plugin/recipe/erlang/templates/kerl.sh.erb
|
109
|
+
- lib/itamae/plugin/recipe/erlang/templates/kerlrc.erb
|
110
|
+
- lib/itamae/plugin/recipe/erlang/version.rb
|
111
|
+
- recipes/install.rb
|
112
|
+
- recipes/node.yml
|
113
|
+
- wercker.yml
|
114
|
+
homepage: https://github.com/ohr486/itamae-plugin-recipe-erlang
|
115
|
+
licenses:
|
116
|
+
- MIT
|
117
|
+
metadata: {}
|
118
|
+
post_install_message:
|
119
|
+
rdoc_options: []
|
120
|
+
require_paths:
|
121
|
+
- lib
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
requirements: []
|
133
|
+
rubyforge_project:
|
134
|
+
rubygems_version: 2.6.11
|
135
|
+
signing_key:
|
136
|
+
specification_version: 4
|
137
|
+
summary: Itamae plugin to install erlang with kerl
|
138
|
+
test_files: []
|