itamae-plugin-recipe-consul 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e696e3eb11310355191152bffd9628e2556d96bce76895d6dbbef62d1b2fa5a6
4
- data.tar.gz: cd1d01c5851c933dfabcd59e7d5b3ddd0f05e59a0d28c332ec36d7961a76976f
3
+ metadata.gz: 0c9f3f64a2a1c656572b41f18d9761fe188ddbfa9d8ffbc7e049f2188353b6e7
4
+ data.tar.gz: 3c606a7e9a5342b0e2d882bec52a250b702ca0fccd76f06301797ddad9a7fc3b
5
5
  SHA512:
6
- metadata.gz: a2a65c97992569d060cdc56a6572cb62f3eaada86176bda14e2dc78ee6c48a51cbe7ffb00234fb22cd1dd123e2bf531a4d84ee06e994c4b23eb51cd84205f76a
7
- data.tar.gz: 814e154186854fa87a53950e68f770d8a8478c395dcc7af0c1b15370728aaf46d6f0757e06a4d2b247b4e307839e6e2e821b6fd509a8883afab52b30c40cb1b8
6
+ metadata.gz: 5e2295733b36874f90da2685ef977f8a1d79c31214bd28b5f32f13871abd416a605c400b63618225c069801467b5df34dcd4045185586292fc572855cb9587fb
7
+ data.tar.gz: 0d3dd7436d0d476da1189821d899652ca68e8a273f4048e90115c4338580e9e4235422f079adf00ed0e55f4ff0c65707d2a2f38c668cdb94a0ad77519538b490
@@ -0,0 +1,113 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - synchronize
11
+ - reopened
12
+ schedule:
13
+ - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
+
15
+ env:
16
+ CI: "true"
17
+
18
+ jobs:
19
+ test:
20
+ runs-on: ubuntu-latest
21
+
22
+ strategy:
23
+ fail-fast: false
24
+
25
+ matrix:
26
+ ruby:
27
+ - 2.3
28
+ image:
29
+ - centos:7
30
+ - centos:8
31
+ - debian:jessie
32
+ - debian:stretch
33
+ - debian:buster
34
+
35
+ steps:
36
+ - uses: actions/checkout@v2
37
+
38
+ - uses: eregon/use-ruby-action@v1
39
+ with:
40
+ ruby-version: ${{ matrix.ruby }}
41
+
42
+ - name: Cache vendor/bundle
43
+ uses: actions/cache@v1
44
+ id: cache_gem
45
+ with:
46
+ path: vendor/bundle
47
+ key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
48
+ restore-keys: |
49
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
50
+
51
+ - name: bundle update
52
+ run: |
53
+ set -xe
54
+ bundle config path vendor/bundle
55
+ bundle update --jobs $(nproc) --retry 3
56
+
57
+ - name: Start container
58
+ run: |
59
+ set -xe
60
+
61
+ case "$IMAGE" in
62
+ "debian:stretch" | "debian:buster" )
63
+ docker run --name tmp-debian $IMAGE bash -c "apt-get update && apt-get install -y systemd-sysv"
64
+ docker commit tmp-debian debian-with-systemd
65
+ docker run --privileged -d --name container-with-service debian-with-systemd /sbin/init
66
+ ;;
67
+ *)
68
+ docker run --privileged -d --name container-with-service $IMAGE /sbin/init
69
+ ;;
70
+ esac
71
+ env:
72
+ IMAGE: ${{ matrix.image }}
73
+
74
+ - name: Run Itamae
75
+ run: |
76
+ set -xe
77
+ bundle exec itamae docker --node-yaml=recipes/node.yml recipes/install.rb --container=container-with-service --tag itamae-plugin:latest
78
+
79
+ - name: Run Serverspec
80
+ run: |
81
+ set -xe
82
+ bundle exec rspec
83
+ env:
84
+ DOCKER_CONTAINER: container-with-service
85
+
86
+ - name: Slack Notification (not success)
87
+ uses: lazy-actions/slatify@master
88
+ if: "! success()"
89
+ continue-on-error: true
90
+ with:
91
+ job_name: ${{ format('*build* ({0}, {1})', matrix.ruby, matrix.image) }}
92
+ type: ${{ job.status }}
93
+ icon_emoji: ":octocat:"
94
+ url: ${{ secrets.SLACK_WEBHOOK }}
95
+ token: ${{ secrets.GITHUB_TOKEN }}
96
+
97
+ notify:
98
+ needs:
99
+ - test
100
+
101
+ runs-on: ubuntu-latest
102
+
103
+ steps:
104
+ - name: Slack Notification (success)
105
+ uses: lazy-actions/slatify@master
106
+ if: always()
107
+ continue-on-error: true
108
+ with:
109
+ job_name: '*build*'
110
+ type: ${{ job.status }}
111
+ icon_emoji: ":octocat:"
112
+ url: ${{ secrets.SLACK_WEBHOOK }}
113
+ token: ${{ secrets.GITHUB_TOKEN }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.1.5](https://github.com/sue445/itamae-plugin-recipe-consul/tree/v0.1.5) (2021-11-20)
4
+
5
+ [Full Changelog](https://github.com/sue445/itamae-plugin-recipe-consul/compare/v0.1.4...v0.1.5)
6
+
7
+ * Enable MFA requirement for gem releasing
8
+ * https://github.com/sue445/itamae-plugin-recipe-consul/pull/38
9
+
3
10
  ## [v0.1.4](https://github.com/sue445/itamae-plugin-recipe-consul/tree/v0.1.4) (2019-03-29)
4
11
 
5
12
  [Full Changelog](https://github.com/sue445/itamae-plugin-recipe-consul/compare/v0.1.3...v0.1.4)
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Itamae plugin to install [Consul](https://www.consul.io/) with init scripts
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/itamae-plugin-recipe-consul.svg)](https://badge.fury.io/rb/itamae-plugin-recipe-consul)
6
- [![Build Status](https://travis-ci.org/sue445/itamae-plugin-recipe-consul.svg?branch=master)](https://travis-ci.org/sue445/itamae-plugin-recipe-consul)
6
+ [![Build Status](https://github.com/sue445/itamae-plugin-recipe-consul/workflows/test/badge.svg?branch=master)](https://github.com/sue445/itamae-plugin-recipe-consul/actions?query=workflow%3Atest)
7
7
 
8
8
  ## Supported
9
9
  * CentOS 6 (init.d)
@@ -14,6 +14,11 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/sue445/itamae-plugin-recipe-consul"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
20
+ spec.metadata["rubygems_mfa_required"] = "true"
21
+
17
22
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
23
  spec.bindir = "exe"
19
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -23,6 +28,6 @@ Gem::Specification.new do |spec|
23
28
 
24
29
  spec.add_development_dependency "bundler"
25
30
  spec.add_development_dependency "docker-api"
26
- spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency "rake"
27
32
  spec.add_development_dependency "serverspec"
28
33
  end
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Consul
5
- VERSION = "0.1.4"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  end
8
8
  end
data/recipes/install.rb CHANGED
@@ -3,4 +3,6 @@ when "debian", "ubuntu"
3
3
  execute "apt-get update"
4
4
  end
5
5
 
6
+ directory "/tmp/itamae_tmp"
7
+
6
8
  include_recipe "consul"
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-29 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: serverspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -87,9 +87,9 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
+ - ".github/workflows/test.yml"
90
91
  - ".gitignore"
91
92
  - ".rspec"
92
- - ".travis.yml"
93
93
  - CHANGELOG.md
94
94
  - Gemfile
95
95
  - LICENSE.txt
@@ -115,8 +115,12 @@ files:
115
115
  homepage: https://github.com/sue445/itamae-plugin-recipe-consul
116
116
  licenses:
117
117
  - MIT
118
- metadata: {}
119
- post_install_message:
118
+ metadata:
119
+ homepage_uri: https://github.com/sue445/itamae-plugin-recipe-consul
120
+ source_code_uri: https://github.com/sue445/itamae-plugin-recipe-consul
121
+ changelog_uri: https://github.com/sue445/itamae-plugin-recipe-consul/blob/master/CHANGELOG.md
122
+ rubygems_mfa_required: 'true'
123
+ post_install_message:
120
124
  rdoc_options: []
121
125
  require_paths:
122
126
  - lib
@@ -131,8 +135,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
135
  - !ruby/object:Gem::Version
132
136
  version: '0'
133
137
  requirements: []
134
- rubygems_version: 3.0.3
135
- signing_key:
138
+ rubygems_version: 3.2.22
139
+ signing_key:
136
140
  specification_version: 4
137
141
  summary: Itamae plugin to install Consul with init scripts
138
142
  test_files: []
data/.travis.yml DELETED
@@ -1,26 +0,0 @@
1
- language: ruby
2
- sudo: required
3
- services:
4
- - docker
5
- rvm:
6
- - 2.3
7
- env:
8
- - IMAGE=centos:7
9
- - IMAGE=debian:jessie
10
- bundler_args: "--jobs=4"
11
- cache: bundler
12
- before_install:
13
- - travis_retry gem update --system || travis_retry gem update --system 2.7.8
14
- - travis_retry gem install bundler --no-document || travis_retry gem install bundler --no-document -v 1.17.3
15
- before_script:
16
- - docker run --privileged -d --name container-with-service $IMAGE /sbin/init
17
- script:
18
- - bundle exec itamae docker --node-yaml=recipes/node.yml recipes/install.rb --container=container-with-service --tag itamae-plugin:latest
19
- - DOCKER_CONTAINER=container-with-service bundle exec rspec
20
- branches:
21
- only:
22
- - master
23
- notifications:
24
- email: false
25
- slack:
26
- secure: M93HeWW+fQk+PrzI2mdtnlVkpiMVfQcfujFXl76ly0EtLS3V9p5KKHSyduQ2t7j/KOoRVF+86sEdPZJg16Ha+Y9pVE2oAs7SMv57rT9HaoQtzf5kZo64eCy63+iV+jUZ4U+NitrtNM1vELKyOsSgAq/KJblq9U67Wto3lOsRec7rskwlkjRwqV4TQElqbA1h4oyWyQG0SMKNnmKYV6TFC0/UNjnYLkxNY3btcOB/PYURxfcwbZk9IU+7id2MM4uG8cBVGSjqOglYOWdpWxTCJpZ6YQGdmXsICa38D/Y3crEHLcUAE4DkaPHpTSVdjVm0kvQlUDuLOmHe+Eh4lm6zy8NCMpyO80/C74/OQQdQgDkohKFI8RX/BZnKdQAmZZf8cIdfe4pF4cZGB8mzGcBcpSBApQHEXZyuJF5u9clNW6+Cdo8jtps0c7Nqg3NWebpUCqwiTVR95Dr820sO6wtIlqlNB5AaNpHzefFoxd42pRm5+Ua9rDuoDuRyhVuWcUQCOn9ScqjhsY9q1UIRbgF03ILgDFmFTu/ClaJ7tOtAtE9n7IsibNf87o2Lz+rNQUrIzIZUo7vElrCub0RhgZFy9+sfplHyIR5CBD4y/9Ca6KoB06vzyb3Y7ElXwIifwbGQ3EQZdAWV6V7slVP83+ahHD+K0E+EPLzAqaDum0MkeqI=