itamae-plugin-recipe-consul 0.1.4 → 0.1.6

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: 11f609d68c20e8cf1006e6b93a85907d686de0fc3f4be94a66739044ae0a5f08
4
+ data.tar.gz: 763dcc6c9b8a3f441621d7e38921d6aefc099640daf1d2b166912acc50374d02
5
5
  SHA512:
6
- metadata.gz: a2a65c97992569d060cdc56a6572cb62f3eaada86176bda14e2dc78ee6c48a51cbe7ffb00234fb22cd1dd123e2bf531a4d84ee06e994c4b23eb51cd84205f76a
7
- data.tar.gz: 814e154186854fa87a53950e68f770d8a8478c395dcc7af0c1b15370728aaf46d6f0757e06a4d2b247b4e307839e6e2e821b6fd509a8883afab52b30c40cb1b8
6
+ metadata.gz: 538a6b5a5920831e60053fcbfe28366ccb921f9d242546e1e89e2b5d9f614d3a56eb753222bcce350693b6442c212b1a7e80647b03739b3bc38f827e225eb69d
7
+ data.tar.gz: 661d838fc35315ba09e5490056d53ec1ac5de141f65fca0c00a5f427cdbbc399b91e7da3cf17e4d260e9977d29e628ed2a9d0c73cf16d2b250265663806c8526
@@ -0,0 +1,12 @@
1
+ # c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2
+ version: 2
3
+
4
+ updates:
5
+ - package-ecosystem: github-actions
6
+ directory: /
7
+ schedule:
8
+ interval: weekly
9
+ cooldown:
10
+ default-days: 7
11
+ assignees:
12
+ - sue445
@@ -0,0 +1,41 @@
1
+ name: Publish gem to rubygems.org
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ release:
8
+ if: github.repository == 'sue445/itamae-plugin-recipe-consul'
9
+ runs-on: ubuntu-latest
10
+
11
+ environment:
12
+ name: rubygems.org
13
+ url: https://rubygems.org/gems/itamae-plugin-recipe-consul
14
+
15
+ permissions:
16
+ contents: write
17
+ id-token: write
18
+
19
+ steps:
20
+ - name: Harden Runner
21
+ uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
22
+ with:
23
+ egress-policy: audit
24
+
25
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26
+
27
+ - name: Set up Ruby
28
+ uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
29
+ with:
30
+ bundler-cache: true
31
+ ruby-version: ruby
32
+
33
+ - name: Publish to RubyGems
34
+ uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
35
+
36
+ - name: Create GitHub release
37
+ run: |
38
+ tag_name="$(git describe --tags --abbrev=0)"
39
+ gh release create "${tag_name}" --verify-tag --generate-notes
40
+ env:
41
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,87 @@
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
+ jobs:
16
+ test:
17
+ runs-on: ubuntu-latest
18
+
19
+ strategy:
20
+ fail-fast: false
21
+
22
+ matrix:
23
+ ruby:
24
+ - "2.3"
25
+ image:
26
+ - debian:bullseye
27
+ - debian:bookworm
28
+
29
+ steps:
30
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
31
+
32
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
33
+ with:
34
+ ruby-version: ${{ matrix.ruby }}
35
+ bundler-cache: true
36
+
37
+ - run: bundle update --jobs $(nproc) --retry 3
38
+
39
+ - name: Start container
40
+ run: |
41
+ set -xe
42
+
43
+ case "$IMAGE" in
44
+ "debian:"* )
45
+ docker run --name tmp-debian $IMAGE bash -c "apt-get update && apt-get install -y systemd-sysv"
46
+ docker commit tmp-debian debian-with-systemd
47
+ docker run --privileged -d --name container-with-service debian-with-systemd /sbin/init
48
+ ;;
49
+ esac
50
+ env:
51
+ IMAGE: ${{ matrix.image }}
52
+
53
+ - name: Run Itamae
54
+ run: |
55
+ set -xe
56
+ bundle exec itamae docker --node-yaml=recipes/node.yml recipes/install.rb --container=container-with-service --tag itamae-plugin:latest
57
+
58
+ - name: Run Serverspec
59
+ run: |
60
+ set -xe
61
+ bundle exec rspec
62
+ env:
63
+ DOCKER_CONTAINER: container-with-service
64
+
65
+ - name: Slack Notification (not success)
66
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
67
+ if: "! success()"
68
+ continue-on-error: true
69
+ with:
70
+ status: ${{ job.status }}
71
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
72
+ matrix: ${{ toJson(matrix) }}
73
+
74
+ notify:
75
+ needs:
76
+ - test
77
+
78
+ runs-on: ubuntu-latest
79
+
80
+ steps:
81
+ - name: Slack Notification (success)
82
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
83
+ if: always()
84
+ continue-on-error: true
85
+ with:
86
+ status: ${{ job.status }}
87
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
data/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
  # Change Log
2
+ ## Unreleased
3
+ [full changelog](http://github.com/sue445/itamae-plugin-recipe-consul/compare/v0.1.6...master)
4
+
5
+ ## [v0.1.6](https://github.com/sue445/itamae-plugin-recipe-consul/releases/tag/v0.1.6) (2025-11-29)
6
+
7
+ [Full Changelog](https://github.com/sue445/itamae-plugin-recipe-consul/compare/v0.1.5...v0.1.6)
8
+
9
+ * Release gem from GitHub Actions
10
+ * https://github.com/sue445/itamae-plugin-recipe-consul/pull/48
11
+
12
+ ## [v0.1.5](https://github.com/sue445/itamae-plugin-recipe-consul/tree/v0.1.5) (2021-11-20)
13
+
14
+ [Full Changelog](https://github.com/sue445/itamae-plugin-recipe-consul/compare/v0.1.4...v0.1.5)
15
+
16
+ * Enable MFA requirement for gem releasing
17
+ * https://github.com/sue445/itamae-plugin-recipe-consul/pull/38
2
18
 
3
19
  ## [v0.1.4](https://github.com/sue445/itamae-plugin-recipe-consul/tree/v0.1.4) (2019-03-29)
4
20
 
data/README.md CHANGED
@@ -3,12 +3,10 @@
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
+ [![test](https://github.com/sue445/itamae-plugin-recipe-consul/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/itamae-plugin-recipe-consul/actions/workflows/test.yml)
7
7
 
8
8
  ## Supported
9
- * CentOS 6 (init.d)
10
- * CentOS 7+ (systemd)
11
- * Debian 8+ (systemd)
9
+ * Debian 10+ (systemd)
12
10
 
13
11
  ## Installation
14
12
 
@@ -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.6"
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,13 @@
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.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2019-03-29 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: itamae
@@ -56,16 +55,16 @@ dependencies:
56
55
  name: rake
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
- - - "~>"
58
+ - - ">="
60
59
  - !ruby/object:Gem::Version
61
- version: '10.0'
60
+ version: '0'
62
61
  type: :development
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
65
64
  requirements:
66
- - - "~>"
65
+ - - ">="
67
66
  - !ruby/object:Gem::Version
68
- version: '10.0'
67
+ version: '0'
69
68
  - !ruby/object:Gem::Dependency
70
69
  name: serverspec
71
70
  requirement: !ruby/object:Gem::Requirement
@@ -87,9 +86,11 @@ executables: []
87
86
  extensions: []
88
87
  extra_rdoc_files: []
89
88
  files:
89
+ - ".github/dependabot.yml"
90
+ - ".github/workflows/release_gem.yml"
91
+ - ".github/workflows/test.yml"
90
92
  - ".gitignore"
91
93
  - ".rspec"
92
- - ".travis.yml"
93
94
  - CHANGELOG.md
94
95
  - Gemfile
95
96
  - LICENSE.txt
@@ -115,8 +116,11 @@ files:
115
116
  homepage: https://github.com/sue445/itamae-plugin-recipe-consul
116
117
  licenses:
117
118
  - MIT
118
- metadata: {}
119
- post_install_message:
119
+ metadata:
120
+ homepage_uri: https://github.com/sue445/itamae-plugin-recipe-consul
121
+ source_code_uri: https://github.com/sue445/itamae-plugin-recipe-consul
122
+ changelog_uri: https://github.com/sue445/itamae-plugin-recipe-consul/blob/master/CHANGELOG.md
123
+ rubygems_mfa_required: 'true'
120
124
  rdoc_options: []
121
125
  require_paths:
122
126
  - lib
@@ -131,8 +135,7 @@ 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.6.7
136
139
  specification_version: 4
137
140
  summary: Itamae plugin to install Consul with init scripts
138
141
  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=