r10k 3.15.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +17 -0
- data/.github/workflows/docker.yml +4 -4
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/rspec_tests.yml +10 -11
- data/.github/workflows/stale.yml +1 -1
- data/CHANGELOG.mkd +66 -0
- data/CODEOWNERS +1 -2
- data/Gemfile +2 -2
- data/README.mkd +16 -17
- data/doc/common-patterns.mkd +1 -2
- data/doc/dynamic-environments/configuration.mkd +78 -2
- data/doc/puppetfile.mkd +9 -3
- data/integration/Gemfile +1 -1
- data/integration/Rakefile +1 -1
- data/integration/files/pre-suite/git_config.pp.erb +1 -1
- data/integration/pre-suite/00_pe_install.rb +3 -0
- data/integration/pre-suite/10_git_config.rb +0 -3
- data/integration/tests/Puppetfile/HTTP_PROXY_affects_git_source.rb +5 -4
- data/integration/tests/basic_functionality/negative/negative_bad_proxy.rb +1 -1
- data/integration/tests/basic_functionality/proxy_specified_in_configuration.rb +2 -2
- data/integration/tests/basic_functionality/proxy_with_puppetfile.rb +2 -2
- data/integration/tests/basic_functionality/rugged_git_provider_with_ssh.rb +3 -3
- data/integration/tests/basic_functionality/rugged_git_provider_without_ssh.rb +3 -3
- data/integration/tests/command_line/deploy_env_without_mod_update.rb +0 -3
- data/integration/tests/command_line/negative/neg_deploy_env_with_module_update.rb +0 -3
- data/integration/tests/git_source/HTTP_proxy_and_git_source.rb +5 -10
- data/integration/tests/git_source/git_source_git.rb +1 -4
- data/integration/tests/git_source/git_source_repeated_remote.rb +0 -3
- data/integration/tests/git_source/git_source_submodule.rb +1 -1
- data/integration/tests/git_source/negative/neg_git_unauthorized_ssh.rb +1 -1
- data/integration/tests/purging/content_not_purged_at_root.rb +0 -3
- data/integration/tests/purging/default_purging.rb +0 -3
- data/integration/tests/purging/{does_not_purge_files_on_white_list.rb → does_not_purge_files_on_allowlist.rb} +2 -5
- data/integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module.rb +0 -3
- data/integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module_static.rb +0 -3
- data/integration/tests/user_scenario/basic_workflow/multi_source_custom_forge_git_module.rb +0 -3
- data/integration/tests/user_scenario/basic_workflow/negative/neg_bad_forge_module.rb +0 -3
- data/integration/tests/user_scenario/basic_workflow/negative/neg_disk_full.rb +1 -1
- data/integration/tests/user_scenario/basic_workflow/negative/neg_duplicate_module_names.rb +0 -3
- data/integration/tests/user_scenario/basic_workflow/negative/neg_inaccessible_forge.rb +3 -2
- data/integration/tests/user_scenario/basic_workflow/negative/neg_specify_deleted_forge_module.rb +1 -5
- data/integration/tests/user_scenario/basic_workflow/single_env_10000_files.rb +1 -1
- data/integration/tests/user_scenario/basic_workflow/single_env_custom_forge_git_module.rb +0 -3
- data/integration/tests/user_scenario/basic_workflow/single_env_custom_forge_module.rb +0 -3
- data/integration/tests/user_scenario/basic_workflow/single_env_large_files.rb +1 -1
- data/integration/tests/user_scenario/basic_workflow/single_env_module_already_installed.rb +0 -3
- data/integration/tests/user_scenario/basic_workflow/single_env_purge_unmanaged_modules.rb +0 -3
- data/integration/tests/user_scenario/basic_workflow/single_env_switch_forge_git_module.rb +0 -3
- data/integration/tests/user_scenario/basic_workflow/single_env_upgrade_forge_mod_revert_change.rb +0 -3
- data/integration/tests/user_scenario/complex_workflow/multi_env_add_change_remove.rb +0 -3
- data/lib/r10k/action/deploy/environment.rb +2 -19
- data/lib/r10k/action/deploy/module.rb +1 -0
- data/lib/r10k/action/puppetfile/check.rb +7 -0
- data/lib/r10k/action/puppetfile/install.rb +3 -1
- data/lib/r10k/cli/deploy.rb +15 -1
- data/lib/r10k/cli/puppetfile.rb +1 -0
- data/lib/r10k/content_synchronizer.rb +7 -2
- data/lib/r10k/environment.rb +0 -1
- data/lib/r10k/git/rugged/bare_repository.rb +4 -3
- data/lib/r10k/git/rugged/working_repository.rb +7 -5
- data/lib/r10k/git/shellgit/working_repository.rb +3 -3
- data/lib/r10k/git/stateful_repository.rb +2 -2
- data/lib/r10k/module/base.rb +3 -3
- data/lib/r10k/module/git.rb +18 -4
- data/lib/r10k/module_loader/puppetfile.rb +14 -9
- data/lib/r10k/puppetfile.rb +1 -1
- data/lib/r10k/settings.rb +6 -7
- data/lib/r10k/version.rb +1 -1
- data/locales/r10k.pot +34 -82
- data/r10k.gemspec +5 -7
- metadata +22 -211
- data/docker/.gitignore +0 -1
- data/docker/.rspec +0 -4
- data/docker/Gemfile +0 -11
- data/docker/Makefile +0 -99
- data/docker/README.md +0 -28
- data/docker/docker-compose.yml +0 -18
- data/docker/r10k/Dockerfile +0 -68
- data/docker/r10k/adduser.sh +0 -13
- data/docker/r10k/docker-entrypoint.d/10-analytics.sh +0 -30
- data/docker/r10k/docker-entrypoint.sh +0 -10
- data/docker/r10k/release.Dockerfile +0 -55
- data/docker/spec/dockerfile_spec.rb +0 -37
- data/docker/spec/fixtures/Puppetfile +0 -2
- data/integration/tests/basic_functionality/install_pe_only_module_with_puppetfile.rb +0 -83
- data/integration/tests/basic_functionality/proxy_with_pe_only_module.rb +0 -128
- data/integration/tests/purging/invalid_whitelist_types.rb +0 -63
- data/integration/tests/user_scenario/basic_workflow/negative/neg_module_specified_at_deleted_release.rb +0 -49
- data/integration/tests/user_scenario/basic_workflow/single_env_module_last_release_deleted.rb +0 -68
- data/lib/r10k/environment/bare.rb +0 -13
- data/spec/fixtures/empty/.empty +0 -0
- data/spec/fixtures/integration/git/puppet-boolean-bare.tar +0 -0
- data/spec/fixtures/module/forge/bad_module/metadata.json +0 -1
- data/spec/fixtures/module/forge/eight_hundred/Modulefile +0 -8
- data/spec/fixtures/module/forge/eight_hundred/metadata.json +0 -19
- data/spec/fixtures/tarball/tarball.tar.gz +0 -0
- data/spec/fixtures/unit/action/r10k.yaml +0 -5
- data/spec/fixtures/unit/action/r10k_cachedir.yaml +0 -2
- data/spec/fixtures/unit/action/r10k_creds.yaml +0 -9
- data/spec/fixtures/unit/action/r10k_forge_auth.yaml +0 -4
- data/spec/fixtures/unit/action/r10k_forge_auth_no_url.yaml +0 -3
- data/spec/fixtures/unit/action/r10k_generate_types.yaml +0 -3
- data/spec/fixtures/unit/action/r10k_logging.yaml +0 -12
- data/spec/fixtures/unit/action/r10k_puppet_path.yaml +0 -3
- data/spec/fixtures/unit/puppetfile/argument-error/Puppetfile +0 -1
- data/spec/fixtures/unit/puppetfile/default-branch-override/Puppetfile +0 -5
- data/spec/fixtures/unit/puppetfile/duplicate-module-error/Puppetfile +0 -10
- data/spec/fixtures/unit/puppetfile/forge-override/Puppetfile +0 -8
- data/spec/fixtures/unit/puppetfile/invalid-syntax/Puppetfile +0 -1
- data/spec/fixtures/unit/puppetfile/load-error/Puppetfile +0 -1
- data/spec/fixtures/unit/puppetfile/name-error/Puppetfile +0 -1
- data/spec/fixtures/unit/puppetfile/valid-forge-with-version/Puppetfile +0 -1
- data/spec/fixtures/unit/puppetfile/valid-forge-without-version/Puppetfile +0 -1
- data/spec/fixtures/unit/puppetfile/various-modules/Puppetfile +0 -10
- data/spec/fixtures/unit/puppetfile/various-modules/Puppetfile.new +0 -10
- data/spec/fixtures/unit/puppetfile/various-modules/modules/apt/.gitkeep +0 -1
- data/spec/fixtures/unit/puppetfile/various-modules/modules/baz/.gitkeep +0 -1
- data/spec/fixtures/unit/puppetfile/various-modules/modules/buzz/.gitkeep +0 -1
- data/spec/fixtures/unit/puppetfile/various-modules/modules/canary/.gitkeep +0 -1
- data/spec/fixtures/unit/puppetfile/various-modules/modules/fizz/.gitkeep +0 -1
- data/spec/fixtures/unit/puppetfile/various-modules/modules/rpm/.gitkeep +0 -1
- data/spec/fixtures/unit/util/purgeable/managed_one/expected_1 +0 -0
- data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/managed_symlink_file +0 -1
- data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_allowlisted_2/ignored_1 +0 -0
- data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_expected_1 +0 -0
- data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_unmanaged_1 +0 -0
- data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/unmanaged_symlink_dir +0 -1
- data/spec/fixtures/unit/util/purgeable/managed_one/managed_symlink_dir +0 -1
- data/spec/fixtures/unit/util/purgeable/managed_one/unmanaged_1 +0 -0
- data/spec/fixtures/unit/util/purgeable/managed_one/unmanaged_symlink_file +0 -1
- data/spec/fixtures/unit/util/purgeable/managed_two/.hidden/unmanaged_3 +0 -0
- data/spec/fixtures/unit/util/purgeable/managed_two/expected_2 +0 -0
- data/spec/fixtures/unit/util/purgeable/managed_two/unmanaged_2 +0 -0
- data/spec/fixtures/unit/util/subprocess/runner/no-execute.sh +0 -3
- data/spec/integration/git/rugged/bare_repository_spec.rb +0 -13
- data/spec/integration/git/rugged/cache_spec.rb +0 -33
- data/spec/integration/git/rugged/thin_repository_spec.rb +0 -14
- data/spec/integration/git/rugged/working_repository_spec.rb +0 -48
- data/spec/integration/git/shellgit/bare_repository_spec.rb +0 -13
- data/spec/integration/git/shellgit/thin_repository_spec.rb +0 -14
- data/spec/integration/git/shellgit/working_repository_spec.rb +0 -13
- data/spec/integration/git/stateful_repository_spec.rb +0 -175
- data/spec/integration/util/purageable_spec.rb +0 -41
- data/spec/matchers/exit_with.rb +0 -28
- data/spec/matchers/match_realpath.rb +0 -18
- data/spec/r10k-mocks/mock_config.rb +0 -33
- data/spec/r10k-mocks/mock_env.rb +0 -18
- data/spec/r10k-mocks/mock_source.rb +0 -17
- data/spec/r10k-mocks.rb +0 -3
- data/spec/shared-contexts/git-fixtures.rb +0 -55
- data/spec/shared-contexts/tarball.rb +0 -32
- data/spec/shared-examples/deploy-actions.rb +0 -69
- data/spec/shared-examples/git/bare_repository.rb +0 -132
- data/spec/shared-examples/git/thin_repository.rb +0 -26
- data/spec/shared-examples/git/working_repository.rb +0 -207
- data/spec/shared-examples/git-repository.rb +0 -38
- data/spec/shared-examples/puppetfile-action.rb +0 -39
- data/spec/shared-examples/settings/ancestry.rb +0 -44
- data/spec/shared-examples/subprocess-runner.rb +0 -89
- data/spec/spec_helper.rb +0 -41
- data/spec/unit/action/cri_runner_spec.rb +0 -72
- data/spec/unit/action/deploy/deploy_helpers_spec.rb +0 -38
- data/spec/unit/action/deploy/display_spec.rb +0 -61
- data/spec/unit/action/deploy/environment_spec.rb +0 -640
- data/spec/unit/action/deploy/module_spec.rb +0 -476
- data/spec/unit/action/puppetfile/check_spec.rb +0 -53
- data/spec/unit/action/puppetfile/cri_runner_spec.rb +0 -47
- data/spec/unit/action/puppetfile/install_spec.rb +0 -112
- data/spec/unit/action/puppetfile/purge_spec.rb +0 -60
- data/spec/unit/action/runner_spec.rb +0 -407
- data/spec/unit/action/visitor_spec.rb +0 -39
- data/spec/unit/cli_spec.rb +0 -9
- data/spec/unit/deployment/config_spec.rb +0 -33
- data/spec/unit/deployment_spec.rb +0 -162
- data/spec/unit/environment/bare_spec.rb +0 -13
- data/spec/unit/environment/base_spec.rb +0 -122
- data/spec/unit/environment/git_spec.rb +0 -114
- data/spec/unit/environment/name_spec.rb +0 -181
- data/spec/unit/environment/plain_spec.rb +0 -8
- data/spec/unit/environment/svn_spec.rb +0 -146
- data/spec/unit/environment/tarball_spec.rb +0 -45
- data/spec/unit/environment/with_modules_spec.rb +0 -122
- data/spec/unit/errors/formatting_spec.rb +0 -84
- data/spec/unit/feature_spec.rb +0 -50
- data/spec/unit/forge/module_release_spec.rb +0 -213
- data/spec/unit/git/alternates_spec.rb +0 -116
- data/spec/unit/git/cache_spec.rb +0 -66
- data/spec/unit/git/rugged/cache_spec.rb +0 -48
- data/spec/unit/git/rugged/credentials_spec.rb +0 -215
- data/spec/unit/git/shellgit/cache_spec.rb +0 -27
- data/spec/unit/git/stateful_repository_spec.rb +0 -45
- data/spec/unit/git_spec.rb +0 -102
- data/spec/unit/initializers_spec.rb +0 -68
- data/spec/unit/instance_cache_spec.rb +0 -78
- data/spec/unit/keyed_factory_spec.rb +0 -51
- data/spec/unit/logging/terminaloutputter_spec.rb +0 -53
- data/spec/unit/logging_spec.rb +0 -68
- data/spec/unit/module/base_spec.rb +0 -118
- data/spec/unit/module/forge_spec.rb +0 -271
- data/spec/unit/module/git_spec.rb +0 -387
- data/spec/unit/module/metadata_file_spec.rb +0 -68
- data/spec/unit/module/svn_spec.rb +0 -208
- data/spec/unit/module/tarball_spec.rb +0 -70
- data/spec/unit/module_loader/puppetfile_spec.rb +0 -421
- data/spec/unit/module_spec.rb +0 -114
- data/spec/unit/puppetfile_spec.rb +0 -304
- data/spec/unit/settings/collection_spec.rb +0 -123
- data/spec/unit/settings/container_spec.rb +0 -92
- data/spec/unit/settings/definition_spec.rb +0 -79
- data/spec/unit/settings/enum_definition_spec.rb +0 -20
- data/spec/unit/settings/inheritance_spec.rb +0 -38
- data/spec/unit/settings/list_spec.rb +0 -88
- data/spec/unit/settings/loader_spec.rb +0 -110
- data/spec/unit/settings/uri_definition_spec.rb +0 -23
- data/spec/unit/settings_spec.rb +0 -303
- data/spec/unit/source/base_spec.rb +0 -31
- data/spec/unit/source/exec_spec.rb +0 -81
- data/spec/unit/source/git_spec.rb +0 -233
- data/spec/unit/source/hash_spec.rb +0 -54
- data/spec/unit/source/svn_spec.rb +0 -196
- data/spec/unit/source/yaml_spec.rb +0 -42
- data/spec/unit/source_spec.rb +0 -10
- data/spec/unit/svn/remote_spec.rb +0 -21
- data/spec/unit/svn/working_dir_spec.rb +0 -56
- data/spec/unit/tarball_spec.rb +0 -57
- data/spec/unit/util/attempt_spec.rb +0 -82
- data/spec/unit/util/cacheable_spec.rb +0 -23
- data/spec/unit/util/commands_spec.rb +0 -61
- data/spec/unit/util/downloader_spec.rb +0 -98
- data/spec/unit/util/exec_env_spec.rb +0 -56
- data/spec/unit/util/purgeable_spec.rb +0 -267
- data/spec/unit/util/setopts_spec.rb +0 -83
- data/spec/unit/util/subprocess/result_spec.rb +0 -36
- data/spec/unit/util/subprocess/runner/posix_spec.rb +0 -7
- data/spec/unit/util/subprocess/runner/pump_spec.rb +0 -79
- data/spec/unit/util/subprocess/runner/windows_spec.rb +0 -7
- data/spec/unit/util/subprocess/subprocess_error_spec.rb +0 -26
- data/spec/unit/util/subprocess_spec.rb +0 -65
- data/spec/unit/util/symbolize_keys_spec.rb +0 -67
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r10k
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrien Thebo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored2
|
@@ -72,82 +72,60 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 2.3.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: gettext-setup
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0.24'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0.24'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: fast_gettext
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 1.1.0
|
75
|
+
version: '4.1'
|
104
76
|
- - "<"
|
105
77
|
- !ruby/object:Gem::Version
|
106
|
-
version:
|
78
|
+
version: '6'
|
107
79
|
type: :runtime
|
108
80
|
prerelease: false
|
109
81
|
version_requirements: !ruby/object:Gem::Requirement
|
110
82
|
requirements:
|
111
83
|
- - ">="
|
112
84
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
85
|
+
version: '4.1'
|
114
86
|
- - "<"
|
115
87
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
88
|
+
version: '6'
|
117
89
|
- !ruby/object:Gem::Dependency
|
118
|
-
name: gettext
|
90
|
+
name: gettext-setup
|
119
91
|
requirement: !ruby/object:Gem::Requirement
|
120
92
|
requirements:
|
121
93
|
- - ">="
|
122
94
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
95
|
+
version: '0.24'
|
124
96
|
- - "<"
|
125
97
|
- !ruby/object:Gem::Version
|
126
|
-
version:
|
98
|
+
version: '2.0'
|
127
99
|
type: :runtime
|
128
100
|
prerelease: false
|
129
101
|
version_requirements: !ruby/object:Gem::Requirement
|
130
102
|
requirements:
|
131
103
|
- - ">="
|
132
104
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
105
|
+
version: '0.24'
|
134
106
|
- - "<"
|
135
107
|
- !ruby/object:Gem::Version
|
136
|
-
version:
|
108
|
+
version: '2.0'
|
137
109
|
- !ruby/object:Gem::Dependency
|
138
110
|
name: jwt
|
139
111
|
requirement: !ruby/object:Gem::Requirement
|
140
112
|
requirements:
|
141
|
-
- - "
|
113
|
+
- - ">="
|
142
114
|
- !ruby/object:Gem::Version
|
143
115
|
version: 2.2.3
|
116
|
+
- - "<"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '3'
|
144
119
|
type: :runtime
|
145
120
|
prerelease: false
|
146
121
|
version_requirements: !ruby/object:Gem::Requirement
|
147
122
|
requirements:
|
148
|
-
- - "
|
123
|
+
- - ">="
|
149
124
|
- !ruby/object:Gem::Version
|
150
125
|
version: 2.2.3
|
126
|
+
- - "<"
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '3'
|
151
129
|
- !ruby/object:Gem::Dependency
|
152
130
|
name: minitar
|
153
131
|
requirement: !ruby/object:Gem::Requirement
|
@@ -215,6 +193,7 @@ extensions: []
|
|
215
193
|
extra_rdoc_files: []
|
216
194
|
files:
|
217
195
|
- ".gitattributes"
|
196
|
+
- ".github/dependabot.yml"
|
218
197
|
- ".github/pull_request_template.md"
|
219
198
|
- ".github/workflows/docker.yml"
|
220
199
|
- ".github/workflows/release.yml"
|
@@ -244,19 +223,6 @@ files:
|
|
244
223
|
- doc/git/providers.mkd
|
245
224
|
- doc/puppetfile.mkd
|
246
225
|
- doc/updating-your-puppetfile.mkd
|
247
|
-
- docker/.gitignore
|
248
|
-
- docker/.rspec
|
249
|
-
- docker/Gemfile
|
250
|
-
- docker/Makefile
|
251
|
-
- docker/README.md
|
252
|
-
- docker/docker-compose.yml
|
253
|
-
- docker/r10k/Dockerfile
|
254
|
-
- docker/r10k/adduser.sh
|
255
|
-
- docker/r10k/docker-entrypoint.d/10-analytics.sh
|
256
|
-
- docker/r10k/docker-entrypoint.sh
|
257
|
-
- docker/r10k/release.Dockerfile
|
258
|
-
- docker/spec/dockerfile_spec.rb
|
259
|
-
- docker/spec/fixtures/Puppetfile
|
260
226
|
- integration/Gemfile
|
261
227
|
- integration/README.mkd
|
262
228
|
- integration/Rakefile
|
@@ -283,13 +249,11 @@ files:
|
|
283
249
|
- integration/tests/Puppetfile/HTTP_PROXY_affects_git_source.rb
|
284
250
|
- integration/tests/README.mkd
|
285
251
|
- integration/tests/basic_functionality/basic_deployment.rb
|
286
|
-
- integration/tests/basic_functionality/install_pe_only_module_with_puppetfile.rb
|
287
252
|
- integration/tests/basic_functionality/negative/neg_deploy_with_invalid_r10k_yaml.rb
|
288
253
|
- integration/tests/basic_functionality/negative/neg_deploy_with_missing_r10k_yaml.rb
|
289
254
|
- integration/tests/basic_functionality/negative/neg_invalid_git_provider.rb
|
290
255
|
- integration/tests/basic_functionality/negative/negative_bad_proxy.rb
|
291
256
|
- integration/tests/basic_functionality/proxy_specified_in_configuration.rb
|
292
|
-
- integration/tests/basic_functionality/proxy_with_pe_only_module.rb
|
293
257
|
- integration/tests/basic_functionality/proxy_with_puppetfile.rb
|
294
258
|
- integration/tests/basic_functionality/rugged_git_provider_with_ssh.rb
|
295
259
|
- integration/tests/basic_functionality/rugged_git_provider_without_ssh.rb
|
@@ -308,8 +272,7 @@ files:
|
|
308
272
|
- integration/tests/i18n/deploy_module_with_unicode_in_file_name.rb
|
309
273
|
- integration/tests/purging/content_not_purged_at_root.rb
|
310
274
|
- integration/tests/purging/default_purging.rb
|
311
|
-
- integration/tests/purging/
|
312
|
-
- integration/tests/purging/invalid_whitelist_types.rb
|
275
|
+
- integration/tests/purging/does_not_purge_files_on_allowlist.rb
|
313
276
|
- integration/tests/user_scenario/basic_workflow/multi_env_1000_branches.rb
|
314
277
|
- integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module.rb
|
315
278
|
- integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module_static.rb
|
@@ -327,7 +290,6 @@ files:
|
|
327
290
|
- integration/tests/user_scenario/basic_workflow/negative/neg_inaccessible_forge.rb
|
328
291
|
- integration/tests/user_scenario/basic_workflow/negative/neg_invalid_env_name.rb
|
329
292
|
- integration/tests/user_scenario/basic_workflow/negative/neg_invalid_puppet_file.rb
|
330
|
-
- integration/tests/user_scenario/basic_workflow/negative/neg_module_specified_at_deleted_release.rb
|
331
293
|
- integration/tests/user_scenario/basic_workflow/negative/neg_read_only.rb
|
332
294
|
- integration/tests/user_scenario/basic_workflow/negative/neg_specify_deleted_forge_module.rb
|
333
295
|
- integration/tests/user_scenario/basic_workflow/single_env_10000_files.rb
|
@@ -336,7 +298,6 @@ files:
|
|
336
298
|
- integration/tests/user_scenario/basic_workflow/single_env_custom_module.rb
|
337
299
|
- integration/tests/user_scenario/basic_workflow/single_env_large_files.rb
|
338
300
|
- integration/tests/user_scenario/basic_workflow/single_env_module_already_installed.rb
|
339
|
-
- integration/tests/user_scenario/basic_workflow/single_env_module_last_release_deleted.rb
|
340
301
|
- integration/tests/user_scenario/basic_workflow/single_env_non-existent_base_dir.rb
|
341
302
|
- integration/tests/user_scenario/basic_workflow/single_env_purge_unmanaged_modules.rb
|
342
303
|
- integration/tests/user_scenario/basic_workflow/single_env_switch_forge_git_module.rb
|
@@ -371,7 +332,6 @@ files:
|
|
371
332
|
- lib/r10k/deployment.rb
|
372
333
|
- lib/r10k/deployment/config.rb
|
373
334
|
- lib/r10k/environment.rb
|
374
|
-
- lib/r10k/environment/bare.rb
|
375
335
|
- lib/r10k/environment/base.rb
|
376
336
|
- lib/r10k/environment/git.rb
|
377
337
|
- lib/r10k/environment/name.rb
|
@@ -467,155 +427,6 @@ files:
|
|
467
427
|
- locales/r10k.pot
|
468
428
|
- r10k.gemspec
|
469
429
|
- r10k.yaml.example
|
470
|
-
- spec/fixtures/empty/.empty
|
471
|
-
- spec/fixtures/integration/git/puppet-boolean-bare.tar
|
472
|
-
- spec/fixtures/module/forge/bad_module/metadata.json
|
473
|
-
- spec/fixtures/module/forge/eight_hundred/Modulefile
|
474
|
-
- spec/fixtures/module/forge/eight_hundred/metadata.json
|
475
|
-
- spec/fixtures/tarball/tarball.tar.gz
|
476
|
-
- spec/fixtures/unit/action/r10k.yaml
|
477
|
-
- spec/fixtures/unit/action/r10k_cachedir.yaml
|
478
|
-
- spec/fixtures/unit/action/r10k_creds.yaml
|
479
|
-
- spec/fixtures/unit/action/r10k_forge_auth.yaml
|
480
|
-
- spec/fixtures/unit/action/r10k_forge_auth_no_url.yaml
|
481
|
-
- spec/fixtures/unit/action/r10k_generate_types.yaml
|
482
|
-
- spec/fixtures/unit/action/r10k_logging.yaml
|
483
|
-
- spec/fixtures/unit/action/r10k_puppet_path.yaml
|
484
|
-
- spec/fixtures/unit/puppetfile/argument-error/Puppetfile
|
485
|
-
- spec/fixtures/unit/puppetfile/default-branch-override/Puppetfile
|
486
|
-
- spec/fixtures/unit/puppetfile/duplicate-module-error/Puppetfile
|
487
|
-
- spec/fixtures/unit/puppetfile/forge-override/Puppetfile
|
488
|
-
- spec/fixtures/unit/puppetfile/invalid-syntax/Puppetfile
|
489
|
-
- spec/fixtures/unit/puppetfile/load-error/Puppetfile
|
490
|
-
- spec/fixtures/unit/puppetfile/name-error/Puppetfile
|
491
|
-
- spec/fixtures/unit/puppetfile/valid-forge-with-version/Puppetfile
|
492
|
-
- spec/fixtures/unit/puppetfile/valid-forge-without-version/Puppetfile
|
493
|
-
- spec/fixtures/unit/puppetfile/various-modules/Puppetfile
|
494
|
-
- spec/fixtures/unit/puppetfile/various-modules/Puppetfile.new
|
495
|
-
- spec/fixtures/unit/puppetfile/various-modules/modules/apt/.gitkeep
|
496
|
-
- spec/fixtures/unit/puppetfile/various-modules/modules/baz/.gitkeep
|
497
|
-
- spec/fixtures/unit/puppetfile/various-modules/modules/buzz/.gitkeep
|
498
|
-
- spec/fixtures/unit/puppetfile/various-modules/modules/canary/.gitkeep
|
499
|
-
- spec/fixtures/unit/puppetfile/various-modules/modules/fizz/.gitkeep
|
500
|
-
- spec/fixtures/unit/puppetfile/various-modules/modules/rpm/.gitkeep
|
501
|
-
- spec/fixtures/unit/util/purgeable/managed_one/expected_1
|
502
|
-
- spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/managed_symlink_file
|
503
|
-
- spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_allowlisted_2/ignored_1
|
504
|
-
- spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_expected_1
|
505
|
-
- spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_unmanaged_1
|
506
|
-
- spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/unmanaged_symlink_dir
|
507
|
-
- spec/fixtures/unit/util/purgeable/managed_one/managed_symlink_dir
|
508
|
-
- spec/fixtures/unit/util/purgeable/managed_one/unmanaged_1
|
509
|
-
- spec/fixtures/unit/util/purgeable/managed_one/unmanaged_symlink_file
|
510
|
-
- spec/fixtures/unit/util/purgeable/managed_two/.hidden/unmanaged_3
|
511
|
-
- spec/fixtures/unit/util/purgeable/managed_two/expected_2
|
512
|
-
- spec/fixtures/unit/util/purgeable/managed_two/unmanaged_2
|
513
|
-
- spec/fixtures/unit/util/subprocess/runner/no-execute.sh
|
514
|
-
- spec/integration/git/rugged/bare_repository_spec.rb
|
515
|
-
- spec/integration/git/rugged/cache_spec.rb
|
516
|
-
- spec/integration/git/rugged/thin_repository_spec.rb
|
517
|
-
- spec/integration/git/rugged/working_repository_spec.rb
|
518
|
-
- spec/integration/git/shellgit/bare_repository_spec.rb
|
519
|
-
- spec/integration/git/shellgit/thin_repository_spec.rb
|
520
|
-
- spec/integration/git/shellgit/working_repository_spec.rb
|
521
|
-
- spec/integration/git/stateful_repository_spec.rb
|
522
|
-
- spec/integration/util/purageable_spec.rb
|
523
|
-
- spec/matchers/exit_with.rb
|
524
|
-
- spec/matchers/match_realpath.rb
|
525
|
-
- spec/r10k-mocks.rb
|
526
|
-
- spec/r10k-mocks/mock_config.rb
|
527
|
-
- spec/r10k-mocks/mock_env.rb
|
528
|
-
- spec/r10k-mocks/mock_source.rb
|
529
|
-
- spec/shared-contexts/git-fixtures.rb
|
530
|
-
- spec/shared-contexts/tarball.rb
|
531
|
-
- spec/shared-examples/deploy-actions.rb
|
532
|
-
- spec/shared-examples/git-repository.rb
|
533
|
-
- spec/shared-examples/git/bare_repository.rb
|
534
|
-
- spec/shared-examples/git/thin_repository.rb
|
535
|
-
- spec/shared-examples/git/working_repository.rb
|
536
|
-
- spec/shared-examples/puppetfile-action.rb
|
537
|
-
- spec/shared-examples/settings/ancestry.rb
|
538
|
-
- spec/shared-examples/subprocess-runner.rb
|
539
|
-
- spec/spec_helper.rb
|
540
|
-
- spec/unit/action/cri_runner_spec.rb
|
541
|
-
- spec/unit/action/deploy/deploy_helpers_spec.rb
|
542
|
-
- spec/unit/action/deploy/display_spec.rb
|
543
|
-
- spec/unit/action/deploy/environment_spec.rb
|
544
|
-
- spec/unit/action/deploy/module_spec.rb
|
545
|
-
- spec/unit/action/puppetfile/check_spec.rb
|
546
|
-
- spec/unit/action/puppetfile/cri_runner_spec.rb
|
547
|
-
- spec/unit/action/puppetfile/install_spec.rb
|
548
|
-
- spec/unit/action/puppetfile/purge_spec.rb
|
549
|
-
- spec/unit/action/runner_spec.rb
|
550
|
-
- spec/unit/action/visitor_spec.rb
|
551
|
-
- spec/unit/cli_spec.rb
|
552
|
-
- spec/unit/deployment/config_spec.rb
|
553
|
-
- spec/unit/deployment_spec.rb
|
554
|
-
- spec/unit/environment/bare_spec.rb
|
555
|
-
- spec/unit/environment/base_spec.rb
|
556
|
-
- spec/unit/environment/git_spec.rb
|
557
|
-
- spec/unit/environment/name_spec.rb
|
558
|
-
- spec/unit/environment/plain_spec.rb
|
559
|
-
- spec/unit/environment/svn_spec.rb
|
560
|
-
- spec/unit/environment/tarball_spec.rb
|
561
|
-
- spec/unit/environment/with_modules_spec.rb
|
562
|
-
- spec/unit/errors/formatting_spec.rb
|
563
|
-
- spec/unit/feature_spec.rb
|
564
|
-
- spec/unit/forge/module_release_spec.rb
|
565
|
-
- spec/unit/git/alternates_spec.rb
|
566
|
-
- spec/unit/git/cache_spec.rb
|
567
|
-
- spec/unit/git/rugged/cache_spec.rb
|
568
|
-
- spec/unit/git/rugged/credentials_spec.rb
|
569
|
-
- spec/unit/git/shellgit/cache_spec.rb
|
570
|
-
- spec/unit/git/stateful_repository_spec.rb
|
571
|
-
- spec/unit/git_spec.rb
|
572
|
-
- spec/unit/initializers_spec.rb
|
573
|
-
- spec/unit/instance_cache_spec.rb
|
574
|
-
- spec/unit/keyed_factory_spec.rb
|
575
|
-
- spec/unit/logging/terminaloutputter_spec.rb
|
576
|
-
- spec/unit/logging_spec.rb
|
577
|
-
- spec/unit/module/base_spec.rb
|
578
|
-
- spec/unit/module/forge_spec.rb
|
579
|
-
- spec/unit/module/git_spec.rb
|
580
|
-
- spec/unit/module/metadata_file_spec.rb
|
581
|
-
- spec/unit/module/svn_spec.rb
|
582
|
-
- spec/unit/module/tarball_spec.rb
|
583
|
-
- spec/unit/module_loader/puppetfile_spec.rb
|
584
|
-
- spec/unit/module_spec.rb
|
585
|
-
- spec/unit/puppetfile_spec.rb
|
586
|
-
- spec/unit/settings/collection_spec.rb
|
587
|
-
- spec/unit/settings/container_spec.rb
|
588
|
-
- spec/unit/settings/definition_spec.rb
|
589
|
-
- spec/unit/settings/enum_definition_spec.rb
|
590
|
-
- spec/unit/settings/inheritance_spec.rb
|
591
|
-
- spec/unit/settings/list_spec.rb
|
592
|
-
- spec/unit/settings/loader_spec.rb
|
593
|
-
- spec/unit/settings/uri_definition_spec.rb
|
594
|
-
- spec/unit/settings_spec.rb
|
595
|
-
- spec/unit/source/base_spec.rb
|
596
|
-
- spec/unit/source/exec_spec.rb
|
597
|
-
- spec/unit/source/git_spec.rb
|
598
|
-
- spec/unit/source/hash_spec.rb
|
599
|
-
- spec/unit/source/svn_spec.rb
|
600
|
-
- spec/unit/source/yaml_spec.rb
|
601
|
-
- spec/unit/source_spec.rb
|
602
|
-
- spec/unit/svn/remote_spec.rb
|
603
|
-
- spec/unit/svn/working_dir_spec.rb
|
604
|
-
- spec/unit/tarball_spec.rb
|
605
|
-
- spec/unit/util/attempt_spec.rb
|
606
|
-
- spec/unit/util/cacheable_spec.rb
|
607
|
-
- spec/unit/util/commands_spec.rb
|
608
|
-
- spec/unit/util/downloader_spec.rb
|
609
|
-
- spec/unit/util/exec_env_spec.rb
|
610
|
-
- spec/unit/util/purgeable_spec.rb
|
611
|
-
- spec/unit/util/setopts_spec.rb
|
612
|
-
- spec/unit/util/subprocess/result_spec.rb
|
613
|
-
- spec/unit/util/subprocess/runner/posix_spec.rb
|
614
|
-
- spec/unit/util/subprocess/runner/pump_spec.rb
|
615
|
-
- spec/unit/util/subprocess/runner/windows_spec.rb
|
616
|
-
- spec/unit/util/subprocess/subprocess_error_spec.rb
|
617
|
-
- spec/unit/util/subprocess_spec.rb
|
618
|
-
- spec/unit/util/symbolize_keys_spec.rb
|
619
430
|
homepage: https://github.com/puppetlabs/r10k
|
620
431
|
licenses:
|
621
432
|
- Apache-2.0
|
@@ -628,7 +439,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
628
439
|
requirements:
|
629
440
|
- - ">="
|
630
441
|
- !ruby/object:Gem::Version
|
631
|
-
version: 2.
|
442
|
+
version: 2.6.0
|
632
443
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
633
444
|
requirements:
|
634
445
|
- - ">="
|
data/docker/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
TEST-rspec.xml
|
data/docker/.rspec
DELETED
data/docker/Gemfile
DELETED
data/docker/Makefile
DELETED
@@ -1,99 +0,0 @@
|
|
1
|
-
PUPPERWARE_ANALYTICS_STREAM ?= dev
|
2
|
-
NAMESPACE ?= puppet
|
3
|
-
git_describe = $(shell git describe --tags)
|
4
|
-
vcs_ref := $(shell git rev-parse HEAD)
|
5
|
-
build_date := $(shell date -u +%FT%T)
|
6
|
-
hadolint_available := $(shell hadolint --help > /dev/null 2>&1; echo $$?)
|
7
|
-
hadolint_command := hadolint
|
8
|
-
hadolint_container := ghcr.io/hadolint/hadolint:latest
|
9
|
-
alpine_version := 3.14
|
10
|
-
# --load (--output=type=docker) can only be used with a single arch / platform
|
11
|
-
# https://github.com/docker/buildx/issues/59
|
12
|
-
output_type := docker
|
13
|
-
platform := linux/amd64
|
14
|
-
export BUNDLE_PATH = $(PWD)/.bundle/gems
|
15
|
-
export BUNDLE_BIN = $(PWD)/.bundle/bin
|
16
|
-
export GEMFILE = $(PWD)/Gemfile
|
17
|
-
export DOCKER_BUILDKIT ?= 1
|
18
|
-
|
19
|
-
ifeq ($(IS_RELEASE),true)
|
20
|
-
VERSION ?= $(shell echo $(git_describe) | sed 's/-.*//')
|
21
|
-
PUBLISHED_VERSION ?= $(shell curl --silent 'https://rubygems.org/api/v1/gems/r10k.json' | jq '."version"' | tr -d '"')
|
22
|
-
CONTAINER_EXISTS = $(shell DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect $(NAMESPACE)/r10k:$(VERSION) > /dev/null 2>&1; echo $$?)
|
23
|
-
ifeq ($(CONTAINER_EXISTS),0)
|
24
|
-
SKIP_BUILD ?= true
|
25
|
-
else ifneq ($(VERSION),$(PUBLISHED_VERSION))
|
26
|
-
SKIP_BUILD ?= true
|
27
|
-
endif
|
28
|
-
|
29
|
-
LATEST_VERSION ?= latest
|
30
|
-
dockerfile := release.Dockerfile
|
31
|
-
dockerfile_context := r10k
|
32
|
-
else
|
33
|
-
VERSION ?= edge
|
34
|
-
IS_LATEST := false
|
35
|
-
dockerfile := Dockerfile
|
36
|
-
dockerfile_context := $(PWD)/..
|
37
|
-
endif
|
38
|
-
|
39
|
-
ifeq ($(IS_LATEST),true)
|
40
|
-
latest_tag := --tag $(NAMESPACE)/r10k:$(LATEST_VERSION)
|
41
|
-
endif
|
42
|
-
|
43
|
-
prep:
|
44
|
-
@git fetch --unshallow 2> /dev/null ||:
|
45
|
-
@git fetch origin 'refs/tags/*:refs/tags/*'
|
46
|
-
ifeq ($(SKIP_BUILD),true)
|
47
|
-
@echo "SKIP_BUILD is true, exiting with 1"
|
48
|
-
@exit 1
|
49
|
-
endif
|
50
|
-
|
51
|
-
lint:
|
52
|
-
ifeq ($(hadolint_available),0)
|
53
|
-
@$(hadolint_command) r10k/$(dockerfile)
|
54
|
-
else
|
55
|
-
@docker pull $(hadolint_container)
|
56
|
-
@docker run --rm -v $(PWD)/r10k/$(dockerfile):/Dockerfile -i $(hadolint_container) $(hadolint_command) Dockerfile
|
57
|
-
endif
|
58
|
-
|
59
|
-
build: prep
|
60
|
-
docker pull alpine:$(alpine_version)
|
61
|
-
docker buildx build \
|
62
|
-
${DOCKER_BUILD_FLAGS} \
|
63
|
-
--output=type=$(output_type) \
|
64
|
-
--platform $(platform) \
|
65
|
-
--build-arg alpine_version=$(alpine_version) \
|
66
|
-
--build-arg vcs_ref=$(vcs_ref) \
|
67
|
-
--build-arg build_date=$(build_date) \
|
68
|
-
--build-arg version=$(VERSION) \
|
69
|
-
--build-arg pupperware_analytics_stream=$(PUPPERWARE_ANALYTICS_STREAM) \
|
70
|
-
--file r10k/$(dockerfile) \
|
71
|
-
--tag $(NAMESPACE)/r10k:$(VERSION) $(latest_tag) $(dockerfile_context)
|
72
|
-
|
73
|
-
test: prep
|
74
|
-
@bundle install --path $$BUNDLE_PATH --gemfile $$GEMFILE --with test
|
75
|
-
@bundle update
|
76
|
-
@PUPPET_TEST_DOCKER_IMAGE=$(NAMESPACE)/r10k:$(VERSION) \
|
77
|
-
bundle exec --gemfile $$GEMFILE \
|
78
|
-
rspec spec
|
79
|
-
|
80
|
-
# call build to produce multiple architectures
|
81
|
-
# uses cached output from amd64 build target if it exists
|
82
|
-
# registry output is equivalent to --push
|
83
|
-
push-image: platform=linux/amd64,linux/arm64
|
84
|
-
push-image: output_type=registry
|
85
|
-
push-image: prep build
|
86
|
-
|
87
|
-
push-readme:
|
88
|
-
@docker pull sheogorath/readme-to-dockerhub
|
89
|
-
@docker run --rm \
|
90
|
-
-v $(PWD)/README.md:/data/README.md \
|
91
|
-
-e DOCKERHUB_USERNAME="$(DOCKERHUB_USERNAME)" \
|
92
|
-
-e DOCKERHUB_PASSWORD="$(DOCKERHUB_PASSWORD)" \
|
93
|
-
-e DOCKERHUB_REPO_PREFIX=puppet \
|
94
|
-
-e DOCKERHUB_REPO_NAME=r10k \
|
95
|
-
sheogorath/readme-to-dockerhub
|
96
|
-
|
97
|
-
publish: push-image push-readme
|
98
|
-
|
99
|
-
.PHONY: lint build test prep publish push-image push-readme
|
data/docker/README.md
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# [puppetlabs/r10k](https://github.com/puppetlabs/r10k)
|
2
|
-
|
3
|
-
r10k on a Docker image. Based on Alpine 3.8.
|
4
|
-
|
5
|
-
## Configuration
|
6
|
-
|
7
|
-
The following environment variables are supported:
|
8
|
-
|
9
|
-
- `PUPPERWARE_ANALYTICS_ENABLED`
|
10
|
-
|
11
|
-
Set to 'true' to enable Google Analytics metrics. Defaults to 'false'.
|
12
|
-
|
13
|
-
## Analytics Data Collection
|
14
|
-
|
15
|
-
The r10k container collects usage data. This is disabled by default. You can enable it by passing `--env PUPPERWARE_ANALYTICS_ENABLED=true`
|
16
|
-
to your `docker run` command.
|
17
|
-
|
18
|
-
### What data is collected?
|
19
|
-
* Version of the r10k container.
|
20
|
-
* Anonymized IP address is used by Google Analytics for Geolocation data, but the IP address is not collected.
|
21
|
-
|
22
|
-
### Why does the r10k container collect data?
|
23
|
-
|
24
|
-
We collect data to help us understand how the containers are used and make decisions about upcoming changes.
|
25
|
-
|
26
|
-
### How can I opt out of r10k container data collection?
|
27
|
-
|
28
|
-
This is disabled by default.
|
data/docker/docker-compose.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
version: '3.7'
|
2
|
-
|
3
|
-
services:
|
4
|
-
r10k_check:
|
5
|
-
image: ${R10K_IMAGE:-puppet/r10k}
|
6
|
-
environment:
|
7
|
-
- PUPPERWARE_ANALYTICS_ENABLED=${PUPPERWARE_ANALYTICS_ENABLED:-false}
|
8
|
-
command: 'puppetfile check --verbose --trace --puppetfile test/Puppetfile'
|
9
|
-
volumes:
|
10
|
-
- ${SPEC_DIRECTORY}/fixtures:/home/puppet/test
|
11
|
-
|
12
|
-
r10k_install:
|
13
|
-
image: ${R10K_IMAGE:-puppet/r10k}
|
14
|
-
environment:
|
15
|
-
- PUPPERWARE_ANALYTICS_ENABLED=${PUPPERWARE_ANALYTICS_ENABLED:-false}
|
16
|
-
command: 'puppetfile install --verbose --trace --puppetfile test/Puppetfile'
|
17
|
-
volumes:
|
18
|
-
- ${SPEC_DIRECTORY}/fixtures:/home/puppet/test
|
data/docker/r10k/Dockerfile
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
ARG alpine_version=3.14
|
2
|
-
FROM alpine:${alpine_version} as build
|
3
|
-
|
4
|
-
# hadolint ignore=DL3018
|
5
|
-
RUN apk add --no-cache ruby git && \
|
6
|
-
mkdir /workspace
|
7
|
-
WORKDIR /workspace
|
8
|
-
COPY . /workspace
|
9
|
-
RUN gem build r10k.gemspec && \
|
10
|
-
mv r10k*.gem r10k.gem
|
11
|
-
|
12
|
-
FROM alpine:${alpine_version}
|
13
|
-
|
14
|
-
ARG vcs_ref
|
15
|
-
ARG build_date
|
16
|
-
ARG version="3.1.0"
|
17
|
-
# Used by entrypoint to submit metrics to Google Analytics.
|
18
|
-
# Published images should use "production" for this build_arg.
|
19
|
-
ARG pupperware_analytics_stream="dev"
|
20
|
-
# required to schedule runs of "r10k" in K8s
|
21
|
-
ARG supercronic_version="0.1.9"
|
22
|
-
ARG supercronic_sha1sum="5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85"
|
23
|
-
ARG supercronic="supercronic-linux-amd64"
|
24
|
-
ARG supercronic_url="https://github.com/aptible/supercronic/releases/download/v$supercronic_version/$supercronic"
|
25
|
-
|
26
|
-
LABEL org.label-schema.maintainer="Puppet Release Team <release@puppet.com>" \
|
27
|
-
org.label-schema.vendor="Puppet" \
|
28
|
-
org.label-schema.url="https://github.com/puppetlabs/r10k" \
|
29
|
-
org.label-schema.name="r10k" \
|
30
|
-
org.label-schema.license="Apache-2.0" \
|
31
|
-
org.label-schema.vcs-url="https://github.com/puppetlabs/r10k" \
|
32
|
-
org.label-schema.schema-version="1.0" \
|
33
|
-
org.label-schema.dockerfile="/Dockerfile"
|
34
|
-
|
35
|
-
COPY docker/r10k/adduser.sh docker/r10k/docker-entrypoint.sh /
|
36
|
-
COPY docker/r10k/docker-entrypoint.d /docker-entrypoint.d
|
37
|
-
|
38
|
-
ENTRYPOINT ["/docker-entrypoint.sh"]
|
39
|
-
CMD ["help"]
|
40
|
-
|
41
|
-
# dynamic LABELs and ENV vars placed lower for the sake of Docker layer caching
|
42
|
-
ENV PUPPERWARE_ANALYTICS_STREAM="$pupperware_analytics_stream"
|
43
|
-
|
44
|
-
LABEL org.label-schema.version="$version" \
|
45
|
-
org.label-schema.vcs-ref="$vcs_ref" \
|
46
|
-
org.label-schema.build-date="$build_date"
|
47
|
-
|
48
|
-
COPY --from=build /workspace/r10k.gem /
|
49
|
-
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
|
50
|
-
# ignore apk and gem pinning
|
51
|
-
# hadolint ignore=DL3018,DL3028
|
52
|
-
RUN chmod a+x /adduser.sh /docker-entrypoint.sh /docker-entrypoint.d/*.sh && \
|
53
|
-
# Add a puppet user to run r10k as for consistency with puppetserver
|
54
|
-
/adduser.sh && \
|
55
|
-
chown -R puppet: /docker-entrypoint.d /docker-entrypoint.sh && \
|
56
|
-
apk add --no-cache ruby openssh-client git ruby-rugged curl ruby-json ruby-etc && \
|
57
|
-
gem install --no-doc /r10k.gem && \
|
58
|
-
rm -f /r10k.gem && \
|
59
|
-
curl --fail --silent --show-error --location --remote-name "$supercronic_url" && \
|
60
|
-
echo "${supercronic_sha1sum} ${supercronic}" | sha1sum -c - && \
|
61
|
-
chmod +x "$supercronic" && \
|
62
|
-
mv "$supercronic" "/usr/local/bin/${supercronic}" && \
|
63
|
-
ln -s "/usr/local/bin/${supercronic}" /usr/local/bin/supercronic
|
64
|
-
|
65
|
-
USER puppet
|
66
|
-
WORKDIR /home/puppet
|
67
|
-
|
68
|
-
COPY docker/r10k/Dockerfile /
|
data/docker/r10k/adduser.sh
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
|
3
|
-
getent_string="$(getent group | grep -e ':999$')"
|
4
|
-
exit_code=$?
|
5
|
-
|
6
|
-
if [ "$exit_code" = '0' ]; then
|
7
|
-
group="$(echo $getent_string | cut -d ':' -f1)"
|
8
|
-
else
|
9
|
-
addgroup -g 999 puppet
|
10
|
-
group='puppet'
|
11
|
-
fi
|
12
|
-
|
13
|
-
adduser -G $group -D -u 999 puppet
|
@@ -1,30 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
|
3
|
-
if [ "${PUPPERWARE_ANALYTICS_ENABLED}" != "true" ]; then
|
4
|
-
# Don't print out any messages here since this is a CLI container
|
5
|
-
exit 0
|
6
|
-
fi
|
7
|
-
|
8
|
-
# See: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters
|
9
|
-
# Tracking ID
|
10
|
-
tid=UA-132486246-5
|
11
|
-
# Application Name
|
12
|
-
an=r10k
|
13
|
-
# Application Version
|
14
|
-
av=$(r10k version | cut -d ' ' -f 2)
|
15
|
-
# Anonymous Client ID
|
16
|
-
_file=/var/tmp/pwclientid
|
17
|
-
cid=$(cat $_file 2>/dev/null || (cat /proc/sys/kernel/random/uuid | tee $_file))
|
18
|
-
# Event Category
|
19
|
-
ec=${PUPPERWARE_ANALYTICS_STREAM:-dev}
|
20
|
-
# Event Action
|
21
|
-
ea=start
|
22
|
-
# Anonymize ip
|
23
|
-
aip=1
|
24
|
-
|
25
|
-
_params="v=1&t=event&tid=${tid}&an=${an}&av=${av}&cid=${cid}&ec=${ec}&ea=${ea}&aip=${aip}"
|
26
|
-
_url="http://www.google-analytics.com/collect?${_params}"
|
27
|
-
|
28
|
-
# Don't print out any messages here since this is a CLI container
|
29
|
-
curl --fail --silent --show-error --output /dev/null \
|
30
|
-
-X POST -H "Content-Length: 0" $_url
|