foreman_envsync 1.4.1 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yaml +35 -12
- data/CHANGELOG.md +112 -3
- data/Gemfile +3 -2
- data/README.md +1 -1
- data/Rakefile +10 -2
- data/foreman_envsync.gemspec +0 -2
- data/lib/foreman_envsync/version.rb +1 -1
- metadata +3 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f964b4b5e5148ac96832a89fadf3921f9d3cd93405962b27c3d07680bd2266db
|
4
|
+
data.tar.gz: 2a5aec58eb13d352cfcbc68861d815d2b4c27eb1054597a62d627a0902c46b67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a80e03b908522bf3a2933efdbf90908f32a3d2897896fcb2ca6bcb1d09749a79f6ebef655c3fc8dd05458191a410d31859e95c0dd87bb964740485e8dca9f4f1
|
7
|
+
data.tar.gz: 98e7a8562c67cadf672e26182a839225522369cf27778f065fc8d101f875603cea4b3938ac601e03526031f8e5ee74de3f15ed858d171d3e4ff427501b8c718f
|
data/.github/workflows/ci.yaml
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
---
|
1
2
|
# based on https://github.com/docker/build-push-action/blob/master/docs/advanced/tags-labels.md
|
2
3
|
|
3
4
|
name: ci
|
4
5
|
|
5
|
-
on:
|
6
|
+
"on":
|
7
|
+
workflow_dispatch: {}
|
6
8
|
schedule:
|
7
9
|
- cron: '0 10 * * 1'
|
8
10
|
push:
|
@@ -13,45 +15,60 @@ on:
|
|
13
15
|
pull_request:
|
14
16
|
branches:
|
15
17
|
- 'main'
|
18
|
+
- 'master'
|
19
|
+
|
20
|
+
env:
|
21
|
+
REGISTRY: ghcr.io
|
22
|
+
IMAGE_NAME: ${{ github.repository }}
|
16
23
|
|
17
24
|
jobs:
|
18
25
|
release:
|
19
|
-
runs-on: ubuntu-latest
|
20
26
|
if: github.repository == 'lsst-it/foreman_envsync'
|
27
|
+
runs-on: ubuntu-latest
|
21
28
|
steps:
|
22
29
|
- name: Checkout
|
23
30
|
uses: actions/checkout@v3
|
31
|
+
|
24
32
|
- name: Set up Ruby
|
25
33
|
uses: ruby/setup-ruby@v1
|
26
34
|
with:
|
27
35
|
ruby-version: 3.0
|
28
36
|
bundler-cache: true
|
37
|
+
|
29
38
|
- name: Run the default task
|
30
39
|
run: bundle exec rake
|
40
|
+
|
31
41
|
- name: Build gem
|
32
42
|
run: gem build *.gemspec
|
33
|
-
- name: Publish gem to rubygems.org
|
34
|
-
if: startsWith(github.ref, 'refs/tags/v')
|
35
|
-
run: gem push *.gem
|
36
|
-
env:
|
37
|
-
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
|
38
43
|
|
39
44
|
- name: Docker meta
|
40
45
|
id: meta
|
41
46
|
uses: docker/metadata-action@v4
|
42
47
|
with:
|
43
|
-
images:
|
44
|
-
|
48
|
+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
49
|
+
tags: |
|
50
|
+
type=schedule
|
51
|
+
type=ref,event=branch
|
52
|
+
type=ref,event=pr
|
53
|
+
type=semver,pattern={{version}}
|
54
|
+
type=semver,pattern={{major}}.{{minor}}
|
55
|
+
type=semver,pattern={{major}}
|
56
|
+
type=sha
|
57
|
+
|
45
58
|
- name: Set up QEMU
|
46
59
|
uses: docker/setup-qemu-action@v2
|
60
|
+
|
47
61
|
- name: Set up Docker Buildx
|
48
62
|
uses: docker/setup-buildx-action@v2
|
49
|
-
|
63
|
+
|
64
|
+
- name: Login to OCI registry
|
50
65
|
if: github.event_name != 'pull_request'
|
51
66
|
uses: docker/login-action@v2
|
52
67
|
with:
|
53
|
-
|
54
|
-
|
68
|
+
registry: ${{ env.REGISTRY }}
|
69
|
+
username: ${{ github.actor }}
|
70
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
71
|
+
|
55
72
|
- name: Build and push
|
56
73
|
uses: docker/build-push-action@v3
|
57
74
|
with:
|
@@ -59,3 +76,9 @@ jobs:
|
|
59
76
|
push: ${{ github.event_name != 'pull_request' }}
|
60
77
|
tags: ${{ steps.meta.outputs.tags }}
|
61
78
|
labels: ${{ steps.meta.outputs.labels }}
|
79
|
+
|
80
|
+
- name: Publish gem to rubygems.org
|
81
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
82
|
+
run: gem push *.gem
|
83
|
+
env:
|
84
|
+
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,114 @@
|
|
1
|
-
|
1
|
+
# Changelog
|
2
2
|
|
3
|
-
## [
|
3
|
+
## [v1.5.0](https://github.com/lsst-it/foreman_envsync/tree/v1.5.0) (2023-03-16)
|
4
4
|
|
5
|
-
-
|
5
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.4.1...v1.5.0)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- migrate from hub.docker.com -\> ghcr.io [\#16](https://github.com/lsst-it/foreman_envsync/pull/16) ([jhoblitt](https://github.com/jhoblitt))
|
10
|
+
|
11
|
+
## [v1.4.1](https://github.com/lsst-it/foreman_envsync/tree/v1.4.1) (2022-09-13)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.4.0...v1.4.1)
|
14
|
+
|
15
|
+
**Fixed bugs:**
|
16
|
+
|
17
|
+
- fix \#verbose\_list not appending a new line when items arg is empty [\#15](https://github.com/lsst-it/foreman_envsync/pull/15) ([jhoblitt](https://github.com/jhoblitt))
|
18
|
+
|
19
|
+
## [v1.4.0](https://github.com/lsst-it/foreman_envsync/tree/v1.4.0) (2022-09-13)
|
20
|
+
|
21
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.3.0...v1.4.0)
|
22
|
+
|
23
|
+
**Fixed bugs:**
|
24
|
+
|
25
|
+
- fix `sort': comparison of Hash with Hash failed error [\#13](https://github.com/lsst-it/foreman_envsync/pull/13) ([jhoblitt](https://github.com/jhoblitt))
|
26
|
+
|
27
|
+
## [v1.3.0](https://github.com/lsst-it/foreman_envsync/tree/v1.3.0) (2022-08-23)
|
28
|
+
|
29
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.2.3...v1.3.0)
|
30
|
+
|
31
|
+
**Implemented enhancements:**
|
32
|
+
|
33
|
+
- prefer new puppetserver 7 ca\_crt.pem path [\#11](https://github.com/lsst-it/foreman_envsync/pull/11) ([jhoblitt](https://github.com/jhoblitt))
|
34
|
+
|
35
|
+
## [v1.2.3](https://github.com/lsst-it/foreman_envsync/tree/v1.2.3) (2022-08-04)
|
36
|
+
|
37
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.2.2...v1.2.3)
|
38
|
+
|
39
|
+
## [v1.2.2](https://github.com/lsst-it/foreman_envsync/tree/v1.2.2) (2022-08-04)
|
40
|
+
|
41
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.2.1...v1.2.2)
|
42
|
+
|
43
|
+
## [v1.2.1](https://github.com/lsst-it/foreman_envsync/tree/v1.2.1) (2022-08-04)
|
44
|
+
|
45
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.2.0...v1.2.1)
|
46
|
+
|
47
|
+
## [v1.2.0](https://github.com/lsst-it/foreman_envsync/tree/v1.2.0) (2022-08-04)
|
48
|
+
|
49
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.1.1...v1.2.0)
|
50
|
+
|
51
|
+
**Implemented enhancements:**
|
52
|
+
|
53
|
+
- sort lists of items dumped out as YAML [\#8](https://github.com/lsst-it/foreman_envsync/pull/8) ([jhoblitt](https://github.com/jhoblitt))
|
54
|
+
- add gha rubygems & docker hub releases [\#7](https://github.com/lsst-it/foreman_envsync/pull/7) ([jhoblitt](https://github.com/jhoblitt))
|
55
|
+
|
56
|
+
**Fixed bugs:**
|
57
|
+
|
58
|
+
- fix ruby3 compatibility [\#6](https://github.com/lsst-it/foreman_envsync/pull/6) ([jhoblitt](https://github.com/jhoblitt))
|
59
|
+
|
60
|
+
**Closed issues:**
|
61
|
+
|
62
|
+
- puppetserver and foreman known envs should be sorted for display [\#5](https://github.com/lsst-it/foreman_envsync/issues/5)
|
63
|
+
|
64
|
+
## [v1.1.1](https://github.com/lsst-it/foreman_envsync/tree/v1.1.1) (2021-11-02)
|
65
|
+
|
66
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.1.0...v1.1.1)
|
67
|
+
|
68
|
+
**Fixed bugs:**
|
69
|
+
|
70
|
+
- allow delete report to be nil [\#4](https://github.com/lsst-it/foreman_envsync/pull/4) ([jhoblitt](https://github.com/jhoblitt))
|
71
|
+
|
72
|
+
## [v1.1.0](https://github.com/lsst-it/foreman_envsync/tree/v1.1.0) (2021-11-02)
|
73
|
+
|
74
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v1.0.0...v1.1.0)
|
75
|
+
|
76
|
+
**Implemented enhancements:**
|
77
|
+
|
78
|
+
- allow undeletable foreman envs [\#3](https://github.com/lsst-it/foreman_envsync/pull/3) ([jhoblitt](https://github.com/jhoblitt))
|
79
|
+
|
80
|
+
## [v1.0.0](https://github.com/lsst-it/foreman_envsync/tree/v1.0.0) (2021-06-10)
|
81
|
+
|
82
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v0.1.4...v1.0.0)
|
83
|
+
|
84
|
+
**Implemented enhancements:**
|
85
|
+
|
86
|
+
- add initial README [\#2](https://github.com/lsst-it/foreman_envsync/pull/2) ([jhoblitt](https://github.com/jhoblitt))
|
87
|
+
|
88
|
+
## [v0.1.4](https://github.com/lsst-it/foreman_envsync/tree/v0.1.4) (2021-06-08)
|
89
|
+
|
90
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v0.1.3...v0.1.4)
|
91
|
+
|
92
|
+
## [v0.1.3](https://github.com/lsst-it/foreman_envsync/tree/v0.1.3) (2021-06-08)
|
93
|
+
|
94
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v0.1.2...v0.1.3)
|
95
|
+
|
96
|
+
## [v0.1.2](https://github.com/lsst-it/foreman_envsync/tree/v0.1.2) (2021-06-07)
|
97
|
+
|
98
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v0.1.1...v0.1.2)
|
99
|
+
|
100
|
+
## [v0.1.1](https://github.com/lsst-it/foreman_envsync/tree/v0.1.1) (2021-06-07)
|
101
|
+
|
102
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/v0.1.0...v0.1.1)
|
103
|
+
|
104
|
+
## [v0.1.0](https://github.com/lsst-it/foreman_envsync/tree/v0.1.0) (2021-06-07)
|
105
|
+
|
106
|
+
[Full Changelog](https://github.com/lsst-it/foreman_envsync/compare/45f9ba5c88833559ec7abe699be4b55cb0a7a2bc...v0.1.0)
|
107
|
+
|
108
|
+
**Implemented enhancements:**
|
109
|
+
|
110
|
+
- fwv [\#1](https://github.com/lsst-it/foreman_envsync/pull/1) ([jhoblitt](https://github.com/jhoblitt))
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/Gemfile
CHANGED
@@ -5,8 +5,9 @@ source "https://rubygems.org"
|
|
5
5
|
# Specify your gem's dependencies in foreman_envsync.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
+
gem "github_changelog_generator"
|
8
9
|
gem "rake", "~> 13.0"
|
9
|
-
|
10
10
|
gem "rspec", "~> 3.0"
|
11
|
-
|
12
11
|
gem "rubocop", "~> 1.7"
|
12
|
+
gem "rubocop-rake", "~> 0.6"
|
13
|
+
gem "rubocop-rspec", "~> 2.19"
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ classes within those puppet environments.
|
|
7
7
|
## OCI Image
|
8
8
|
|
9
9
|
An OCI image containing this gem is published to docker hub as
|
10
|
-
[`
|
10
|
+
[`ghcr.io/lsst-it/foreman_envsync`](ghcr.io/lsst-it/foreman_envsync).
|
11
11
|
|
12
12
|
|
13
13
|
## The Problem
|
data/Rakefile
CHANGED
@@ -1,12 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "bundler/gem_tasks"
|
4
|
+
require "github_changelog_generator/task"
|
4
5
|
require "rspec/core/rake_task"
|
6
|
+
require "rubocop/rake_task"
|
7
|
+
require "foreman_envsync"
|
5
8
|
|
6
9
|
RSpec::Core::RakeTask.new(:spec)
|
7
10
|
|
8
|
-
require "rubocop/rake_task"
|
9
|
-
|
10
11
|
RuboCop::RakeTask.new
|
11
12
|
|
13
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
14
|
+
config.future_release = ForemanEnvsync::VERSION
|
15
|
+
config.exclude_labels = ["skip-changelog"]
|
16
|
+
config.user = "lsst-it"
|
17
|
+
config.project = "foreman_envsync"
|
18
|
+
end
|
19
|
+
|
12
20
|
task default: %i[spec rubocop]
|
data/foreman_envsync.gemspec
CHANGED
@@ -30,8 +30,6 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_runtime_dependency "hammer_cli_foreman"
|
31
31
|
spec.add_runtime_dependency "hammer_cli_foreman_puppet"
|
32
32
|
spec.add_runtime_dependency "rest-client", "~> 2.0"
|
33
|
-
spec.add_development_dependency "rubocop-rake"
|
34
|
-
spec.add_development_dependency "rubocop-rspec"
|
35
33
|
|
36
34
|
# For more information and examples about making a new gem, checkout our
|
37
35
|
# guide at: https://bundler.io/guides/creating_gem.html
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_envsync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Hoblitt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hammer_cli
|
@@ -66,34 +66,6 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '2.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop-rake
|
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
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-rspec
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
69
|
description:
|
98
70
|
email:
|
99
71
|
- josh@hoblitt.com
|
@@ -141,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
113
|
- !ruby/object:Gem::Version
|
142
114
|
version: '0'
|
143
115
|
requirements: []
|
144
|
-
rubygems_version: 3.
|
116
|
+
rubygems_version: 3.4.6
|
145
117
|
signing_key:
|
146
118
|
specification_version: 4
|
147
119
|
summary: Sync pupperserver envs with foreman
|