itamae-plugin-recipe-consul 0.1.3.beta1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b44d7a47dc95c38c07c81d882a8f3fc82f34fb5
4
- data.tar.gz: 78982cebc8d13d89f8d8323efdde76e2962b5db1
3
+ metadata.gz: d69ab6db75c91fa87795e4d910b02e86a5a1db92
4
+ data.tar.gz: 72a9eba2ebe31b0ec6955c86f772302c6b1e1b71
5
5
  SHA512:
6
- metadata.gz: 98d7bf0b7c2a4f3ae9a174806dfbbd77bbd8e2463d10e7ef2eec7bd74a5b4bb7e3d91636f0330d44a2d6057456463da5255fe029fd2398395e5a25c491889bbc
7
- data.tar.gz: d08ad421785210b9bbafb2c424de49eb3f6d751b339cd7e21dc8b83fb9ee6b2e0d1d4299e5110fb3684f31728911bd8c9996915ece70a104c27c0930b4f6a0b7
6
+ metadata.gz: 64e45d2972b33617b39778d2c38c968f157b6f947c394e53f993189dc1f91278082314682449644d484f28eec5a21331c88b290965dc375566def142a23ca6b7
7
+ data.tar.gz: 781e7be854ce73c2c85195dc120d86b99c08992a58f44dfe8410e77c222ea625c778f7df68857c860af32bc8fcdce70791b88571b752430820da73d6e2fc3695
data/Rakefile CHANGED
@@ -24,7 +24,7 @@ namespace :itamae do
24
24
  HOSTS.each do |host|
25
25
  desc "Run itamae to #{host}"
26
26
  task host do
27
- sh "bundle exec itamae ssh --host=#{host} --vagrant --node-yaml=recipes/node.yml recipes/install.rb"
27
+ sh "itamae ssh --host=#{host} --vagrant --node-yaml=recipes/node.yml recipes/install.rb"
28
28
  end
29
29
  end
30
30
  end
@@ -14,6 +14,7 @@ Vagrant.configure(2) do |config|
14
14
  provider.size = "512MB"
15
15
 
16
16
  if ENV["WERCKER"] == "true"
17
+ override.vm.synced_folder ".", "/vagrant", disabled: true
17
18
  provider.ssh_key_name = "wercker-#{ENV['WERCKER_GIT_REPOSITORY']}"
18
19
  override.ssh.private_key_path = "~/.ssh/id_rsa.vagrant"
19
20
  else
@@ -27,8 +28,8 @@ Vagrant.configure(2) do |config|
27
28
  c.vm.provider :digital_ocean do |provider, override|
28
29
  provider.image = "centos-6-5-x64"
29
30
  end
30
- c.vm.hostname = 'itamae-centos65'
31
- c.vm.hostname += "-#{ENV['WERCKER_BUILD_ID']}" if ENV['WERCKER_BUILD_ID']
31
+ c.vm.hostname = 'itamae-consul-centos65'
32
+ c.vm.hostname += "-#{ENV['WERCKER_RUN_ID']}" if ENV['WERCKER_RUN_ID']
32
33
  end
33
34
 
34
35
  config.vm.define :centos70 do |c|
@@ -36,8 +37,8 @@ Vagrant.configure(2) do |config|
36
37
  c.vm.provider :digital_ocean do |provider, override|
37
38
  provider.image = "centos-7-0-x64"
38
39
  end
39
- c.vm.hostname = 'itamae-centos70'
40
- c.vm.hostname += "-#{ENV['WERCKER_BUILD_ID']}" if ENV['WERCKER_BUILD_ID']
40
+ c.vm.hostname = 'itamae-consul-centos70'
41
+ c.vm.hostname += "-#{ENV['WERCKER_RUN_ID']}" if ENV['WERCKER_RUN_ID']
41
42
  end
42
43
 
43
44
  config.vm.define :debian8 do |c|
@@ -45,8 +46,8 @@ Vagrant.configure(2) do |config|
45
46
  c.vm.provider :digital_ocean do |provider, override|
46
47
  provider.image = "debian-8-x64"
47
48
  end
48
- c.vm.hostname = 'itamae-debian8'
49
- c.vm.hostname += "-#{ENV['WERCKER_BUILD_ID']}" if ENV['WERCKER_BUILD_ID']
49
+ c.vm.hostname = 'itamae-consul-debian8'
50
+ c.vm.hostname += "-#{ENV['WERCKER_RUN_ID']}" if ENV['WERCKER_RUN_ID']
50
51
  end
51
52
 
52
53
  # The most common configuration options are documented and commented below.
@@ -0,0 +1,25 @@
1
+ #!/bin/bash -xe
2
+
3
+ wget https://releases.hashicorp.com/vagrant/1.8.4/vagrant_1.8.4_x86_64.rpm
4
+ rpm -i vagrant_1.8.4_x86_64.rpm
5
+ vagrant plugin install vagrant-digitalocean
6
+
7
+ # NOTE: vagrant v1.8.4 depends on bundler v1.12.5
8
+ # https://github.com/mitchellh/vagrant/blob/v1.8.4/vagrant.gemspec#L23
9
+ gem uninstall bundler --all --force
10
+ gem install bundler -v 1.12.5 --no-document
11
+
12
+
13
+ mkdir -m 700 -p $HOME/.ssh
14
+
15
+ #########################
16
+ # put ssh keys
17
+ set +x
18
+
19
+ echo -e "$DIGITALOCEAN_KEY_PRIVATE" > $HOME/.ssh/id_rsa.vagrant
20
+ echo -e "$DIGITALOCEAN_KEY_PUBLIC" > $HOME/.ssh/id_rsa.vagrant.pub
21
+
22
+ set -x
23
+ #########################
24
+
25
+ chmod 600 $HOME/.ssh/id_rsa.vagrant
@@ -22,7 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency "itamae"
23
23
 
24
24
  spec.add_development_dependency "bundler"
25
- spec.add_development_dependency "paraduct"
26
25
  spec.add_development_dependency "rake", "~> 10.0"
27
26
  spec.add_development_dependency "serverspec"
28
27
  end
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Consul
5
- VERSION = "0.1.3.beta1"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
8
8
  end
@@ -3,7 +3,7 @@
3
3
  # https://registry.hub.docker.com/_/ruby/
4
4
  # If you want to use a specific version you would use a tag:
5
5
  # ruby:2.2.2
6
- box: sue445/rvm-vagrant-digitalocean@1.0.0
6
+ box: drecom/centos-ruby:2.3.1
7
7
  # You can also use services such as databases. Read more on our dev center:
8
8
  # http://devcenter.wercker.com/docs/services/index.html
9
9
  # services:
@@ -13,58 +13,63 @@ box: sue445/rvm-vagrant-digitalocean@1.0.0
13
13
  # - mongodb
14
14
  # http://devcenter.wercker.com/docs/services/mongodb.html
15
15
 
16
- # This is the build pipeline. Pipelines are the core of wercker
17
- # Read more about pipelines on our dev center
18
- # http://devcenter.wercker.com/docs/pipelines/index.html
16
+ default: &default
17
+ after-steps:
18
+ - script:
19
+ name: set variables
20
+ code: |
21
+ # NOTE: override .ruby-version in pretty-slack-notify
22
+ export RBENV_VERSION=2.3.1
23
+
24
+ - script:
25
+ name: remove all vms
26
+ code: vagrant destroy -f
27
+
28
+ - wantedly/pretty-slack-notify:
29
+ webhook_url: $SLACK_WEBHOOK_URL
30
+ username: wercker_build
31
+
19
32
  build:
20
- # Steps make up the actions in your pipeline
21
- # Read more about steps on our dev center:
22
- # http://devcenter.wercker.com/docs/steps/index.html
23
33
  steps:
24
- - rvm-use:
25
- version: 2.3.0
26
34
 
35
+ build-centos65:
36
+ <<: *default
37
+ steps:
27
38
  - script:
28
- name: install bundler
29
- code: gem install bundler -v 1.10.6 --no-document
39
+ name: setup
40
+ code: ./ci/setup.sh
30
41
 
31
42
  - bundle-install:
32
43
  jobs: 4
33
44
 
34
45
  - script:
35
- name: echo ruby information
36
- code: |
37
- echo "ruby version $(ruby --version) running"
38
- echo "from location $(which ruby)"
39
- echo -p "gem list: $(gem list)"
46
+ name: build CentOS 6.5
47
+ code: ./ci/build.sh centos65
40
48
 
49
+ build-centos70:
50
+ <<: *default
51
+ steps:
41
52
  - script:
42
- name: create .ssh directory
43
- code: mkdir -m 700 -p $HOME/.ssh
53
+ name: setup
54
+ code: ./ci/setup.sh
44
55
 
45
- - create-file:
46
- name: put private key
47
- filename: $HOME/.ssh/id_rsa.vagrant
48
- overwrite: true
49
- hide-from-log: true
50
- content: $DIGITALOCEAN_KEY_PRIVATE
51
-
52
- - create-file:
53
- name: put public key
54
- filename: $HOME/.ssh/id_rsa.vagrant.pub
55
- overwrite: true
56
- hide-from-log: true
57
- content: $DIGITALOCEAN_KEY_PUBLIC
56
+ - bundle-install:
57
+ jobs: 4
58
58
 
59
59
  - script:
60
- name: chmod 600 id_rsa
61
- code: chmod 600 $HOME/.ssh/id_rsa.vagrant
60
+ name: build CentOS 7.0
61
+ code: ./ci/build.sh centos70
62
62
 
63
+ build-debian8:
64
+ <<: *default
65
+ steps:
63
66
  - script:
64
- name: paraduct test
65
- code: bundle exec paraduct test
67
+ name: setup
68
+ code: ./ci/setup.sh
66
69
 
67
- after-steps:
68
- - wantedly/pretty-slack-notify:
69
- webhook_url: $SLACK_WEBHOOK_URL
70
- username: wercker_build
70
+ - bundle-install:
71
+ jobs: 4
72
+
73
+ - script:
74
+ name: build Debian 8
75
+ code: ./ci/build.sh debian8
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-consul
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3.beta1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-06 00:00:00.000000000 Z
11
+ date: 2016-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: paraduct
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -88,7 +74,6 @@ extensions: []
88
74
  extra_rdoc_files: []
89
75
  files:
90
76
  - ".gitignore"
91
- - ".paraduct.yml"
92
77
  - ".rspec"
93
78
  - CHANGELOG.md
94
79
  - Gemfile
@@ -99,6 +84,7 @@ files:
99
84
  - bin/console
100
85
  - bin/setup
101
86
  - ci/build.sh
87
+ - ci/setup.sh
102
88
  - itamae-plugin-recipe-consul.gemspec
103
89
  - lib/itamae/plugin/recipe/consul.rb
104
90
  - lib/itamae/plugin/recipe/consul/default.rb
@@ -130,9 +116,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
116
  version: '0'
131
117
  required_rubygems_version: !ruby/object:Gem::Requirement
132
118
  requirements:
133
- - - ">"
119
+ - - ">="
134
120
  - !ruby/object:Gem::Version
135
- version: 1.3.1
121
+ version: '0'
136
122
  requirements: []
137
123
  rubyforge_project:
138
124
  rubygems_version: 2.5.1
@@ -1,10 +0,0 @@
1
- script: |-
2
- ./ci/build.sh ${HOST}
3
- after_script: |-
4
- vagrant destroy -f $HOST
5
- variables:
6
- HOST:
7
- - centos65
8
- - centos70
9
- - debian8
10
- max_threads: 4