r10k 3.14.1 → 5.0.1
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 +4 -4
- data/.github/dependabot.yml +17 -0
- data/.github/workflows/docker.yml +9 -4
- data/.github/workflows/release.yml +3 -2
- data/.github/workflows/rspec_tests.yml +8 -10
- data/CHANGELOG.mkd +100 -0
- data/CODEOWNERS +1 -2
- data/Gemfile +2 -2
- data/README.mkd +18 -19
- data/doc/common-patterns.mkd +1 -2
- data/doc/dynamic-environments/configuration.mkd +91 -12
- data/doc/dynamic-environments/usage.mkd +4 -0
- data/doc/dynamic-environments/workflow-guide.mkd +3 -3
- data/doc/faq.mkd +1 -1
- data/doc/puppetfile.mkd +9 -3
- data/integration/Gemfile +3 -4
- data/integration/Rakefile +58 -23
- 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 +1 -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 +2 -5
- 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 +2 -5
- 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 +1 -4
- data/integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module_static.rb +1 -4
- data/integration/tests/user_scenario/basic_workflow/multi_source_custom_forge_git_module.rb +1 -4
- data/integration/tests/user_scenario/basic_workflow/negative/neg_bad_forge_module.rb +0 -3
- data/integration/tests/user_scenario/basic_workflow/negative/neg_bad_git_module.rb +1 -1
- data/integration/tests/user_scenario/basic_workflow/negative/neg_bad_git_module_ref.rb +1 -1
- 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 +1 -4
- 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 +1 -4
- 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/with_modules.rb +24 -1
- data/lib/r10k/environment.rb +0 -1
- data/lib/r10k/git/rugged/bare_repository.rb +5 -4
- data/lib/r10k/git/rugged/thin_repository.rb +7 -0
- data/lib/r10k/git/rugged/working_repository.rb +13 -7
- data/lib/r10k/git/shellgit/thin_repository.rb +5 -1
- data/lib/r10k/git/shellgit/working_repository.rb +5 -4
- data/lib/r10k/git/stateful_repository.rb +4 -4
- data/lib/r10k/module/base.rb +3 -3
- data/lib/r10k/module/git.rb +19 -5
- data/lib/r10k/module_loader/puppetfile/dsl.rb +4 -0
- data/lib/r10k/module_loader/puppetfile.rb +22 -14
- data/lib/r10k/puppetfile.rb +1 -1
- data/lib/r10k/settings/container.rb +1 -0
- data/lib/r10k/settings.rb +6 -7
- data/lib/r10k/tarball.rb +1 -1
- data/lib/r10k/version.rb +1 -1
- data/locales/r10k.pot +34 -82
- data/r10k.gemspec +8 -18
- metadata +40 -213
- data/.github/workflows/stale.yml +0 -21
- data/.travis.yml +0 -42
- data/docker/.gitignore +0 -1
- data/docker/.rspec +0 -4
- data/docker/Gemfile +0 -11
- data/docker/Makefile +0 -92
- 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/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 -159
- 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 -75
- 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,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r10k
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.1
|
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: 2025-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored2
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: cri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.15.10
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.15.10
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -70,92 +70,82 @@ dependencies:
|
|
70
70
|
name: puppet_forge
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 2.3.0
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
73
|
+
- - ">="
|
81
74
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
83
|
-
-
|
84
|
-
name: gettext-setup
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
75
|
+
version: 4.1.0
|
76
|
+
- - "<"
|
88
77
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
78
|
+
version: '7'
|
90
79
|
type: :runtime
|
91
80
|
prerelease: false
|
92
81
|
version_requirements: !ruby/object:Gem::Requirement
|
93
82
|
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
|
-
- - "~>"
|
83
|
+
- - ">="
|
102
84
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
104
|
-
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
85
|
+
version: 4.1.0
|
86
|
+
- - "<"
|
109
87
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
88
|
+
version: '7'
|
111
89
|
- !ruby/object:Gem::Dependency
|
112
|
-
name: gettext
|
90
|
+
name: gettext-setup
|
113
91
|
requirement: !ruby/object:Gem::Requirement
|
114
92
|
requirements:
|
115
93
|
- - ">="
|
116
94
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
95
|
+
version: '0.24'
|
118
96
|
- - "<"
|
119
97
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
98
|
+
version: '2.0'
|
121
99
|
type: :runtime
|
122
100
|
prerelease: false
|
123
101
|
version_requirements: !ruby/object:Gem::Requirement
|
124
102
|
requirements:
|
125
103
|
- - ">="
|
126
104
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
105
|
+
version: '0.24'
|
128
106
|
- - "<"
|
129
107
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
108
|
+
version: '2.0'
|
131
109
|
- !ruby/object:Gem::Dependency
|
132
110
|
name: jwt
|
133
111
|
requirement: !ruby/object:Gem::Requirement
|
134
112
|
requirements:
|
135
|
-
- - "
|
113
|
+
- - ">="
|
136
114
|
- !ruby/object:Gem::Version
|
137
115
|
version: 2.2.3
|
116
|
+
- - "<"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '3'
|
138
119
|
type: :runtime
|
139
120
|
prerelease: false
|
140
121
|
version_requirements: !ruby/object:Gem::Requirement
|
141
122
|
requirements:
|
142
|
-
- - "
|
123
|
+
- - ">="
|
143
124
|
- !ruby/object:Gem::Version
|
144
125
|
version: 2.2.3
|
126
|
+
- - "<"
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '3'
|
145
129
|
- !ruby/object:Gem::Dependency
|
146
130
|
name: minitar
|
147
131
|
requirement: !ruby/object:Gem::Requirement
|
148
132
|
requirements:
|
149
|
-
- - "
|
133
|
+
- - ">="
|
150
134
|
- !ruby/object:Gem::Version
|
151
135
|
version: '0.9'
|
136
|
+
- - "<"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '2'
|
152
139
|
type: :runtime
|
153
140
|
prerelease: false
|
154
141
|
version_requirements: !ruby/object:Gem::Requirement
|
155
142
|
requirements:
|
156
|
-
- - "
|
143
|
+
- - ">="
|
157
144
|
- !ruby/object:Gem::Version
|
158
145
|
version: '0.9'
|
146
|
+
- - "<"
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '2'
|
159
149
|
- !ruby/object:Gem::Dependency
|
160
150
|
name: rspec
|
161
151
|
requirement: !ruby/object:Gem::Requirement
|
@@ -209,13 +199,12 @@ extensions: []
|
|
209
199
|
extra_rdoc_files: []
|
210
200
|
files:
|
211
201
|
- ".gitattributes"
|
202
|
+
- ".github/dependabot.yml"
|
212
203
|
- ".github/pull_request_template.md"
|
213
204
|
- ".github/workflows/docker.yml"
|
214
205
|
- ".github/workflows/release.yml"
|
215
206
|
- ".github/workflows/rspec_tests.yml"
|
216
|
-
- ".github/workflows/stale.yml"
|
217
207
|
- ".gitignore"
|
218
|
-
- ".travis.yml"
|
219
208
|
- CHANGELOG.mkd
|
220
209
|
- CODEOWNERS
|
221
210
|
- CONTRIBUTING.mkd
|
@@ -239,19 +228,6 @@ files:
|
|
239
228
|
- doc/git/providers.mkd
|
240
229
|
- doc/puppetfile.mkd
|
241
230
|
- doc/updating-your-puppetfile.mkd
|
242
|
-
- docker/.gitignore
|
243
|
-
- docker/.rspec
|
244
|
-
- docker/Gemfile
|
245
|
-
- docker/Makefile
|
246
|
-
- docker/README.md
|
247
|
-
- docker/docker-compose.yml
|
248
|
-
- docker/r10k/Dockerfile
|
249
|
-
- docker/r10k/adduser.sh
|
250
|
-
- docker/r10k/docker-entrypoint.d/10-analytics.sh
|
251
|
-
- docker/r10k/docker-entrypoint.sh
|
252
|
-
- docker/r10k/release.Dockerfile
|
253
|
-
- docker/spec/dockerfile_spec.rb
|
254
|
-
- docker/spec/fixtures/Puppetfile
|
255
231
|
- integration/Gemfile
|
256
232
|
- integration/README.mkd
|
257
233
|
- integration/Rakefile
|
@@ -278,13 +254,11 @@ files:
|
|
278
254
|
- integration/tests/Puppetfile/HTTP_PROXY_affects_git_source.rb
|
279
255
|
- integration/tests/README.mkd
|
280
256
|
- integration/tests/basic_functionality/basic_deployment.rb
|
281
|
-
- integration/tests/basic_functionality/install_pe_only_module_with_puppetfile.rb
|
282
257
|
- integration/tests/basic_functionality/negative/neg_deploy_with_invalid_r10k_yaml.rb
|
283
258
|
- integration/tests/basic_functionality/negative/neg_deploy_with_missing_r10k_yaml.rb
|
284
259
|
- integration/tests/basic_functionality/negative/neg_invalid_git_provider.rb
|
285
260
|
- integration/tests/basic_functionality/negative/negative_bad_proxy.rb
|
286
261
|
- integration/tests/basic_functionality/proxy_specified_in_configuration.rb
|
287
|
-
- integration/tests/basic_functionality/proxy_with_pe_only_module.rb
|
288
262
|
- integration/tests/basic_functionality/proxy_with_puppetfile.rb
|
289
263
|
- integration/tests/basic_functionality/rugged_git_provider_with_ssh.rb
|
290
264
|
- integration/tests/basic_functionality/rugged_git_provider_without_ssh.rb
|
@@ -303,8 +277,7 @@ files:
|
|
303
277
|
- integration/tests/i18n/deploy_module_with_unicode_in_file_name.rb
|
304
278
|
- integration/tests/purging/content_not_purged_at_root.rb
|
305
279
|
- integration/tests/purging/default_purging.rb
|
306
|
-
- integration/tests/purging/
|
307
|
-
- integration/tests/purging/invalid_whitelist_types.rb
|
280
|
+
- integration/tests/purging/does_not_purge_files_on_allowlist.rb
|
308
281
|
- integration/tests/user_scenario/basic_workflow/multi_env_1000_branches.rb
|
309
282
|
- integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module.rb
|
310
283
|
- integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module_static.rb
|
@@ -322,7 +295,6 @@ files:
|
|
322
295
|
- integration/tests/user_scenario/basic_workflow/negative/neg_inaccessible_forge.rb
|
323
296
|
- integration/tests/user_scenario/basic_workflow/negative/neg_invalid_env_name.rb
|
324
297
|
- integration/tests/user_scenario/basic_workflow/negative/neg_invalid_puppet_file.rb
|
325
|
-
- integration/tests/user_scenario/basic_workflow/negative/neg_module_specified_at_deleted_release.rb
|
326
298
|
- integration/tests/user_scenario/basic_workflow/negative/neg_read_only.rb
|
327
299
|
- integration/tests/user_scenario/basic_workflow/negative/neg_specify_deleted_forge_module.rb
|
328
300
|
- integration/tests/user_scenario/basic_workflow/single_env_10000_files.rb
|
@@ -331,7 +303,6 @@ files:
|
|
331
303
|
- integration/tests/user_scenario/basic_workflow/single_env_custom_module.rb
|
332
304
|
- integration/tests/user_scenario/basic_workflow/single_env_large_files.rb
|
333
305
|
- integration/tests/user_scenario/basic_workflow/single_env_module_already_installed.rb
|
334
|
-
- integration/tests/user_scenario/basic_workflow/single_env_module_last_release_deleted.rb
|
335
306
|
- integration/tests/user_scenario/basic_workflow/single_env_non-existent_base_dir.rb
|
336
307
|
- integration/tests/user_scenario/basic_workflow/single_env_purge_unmanaged_modules.rb
|
337
308
|
- integration/tests/user_scenario/basic_workflow/single_env_switch_forge_git_module.rb
|
@@ -366,7 +337,6 @@ files:
|
|
366
337
|
- lib/r10k/deployment.rb
|
367
338
|
- lib/r10k/deployment/config.rb
|
368
339
|
- lib/r10k/environment.rb
|
369
|
-
- lib/r10k/environment/bare.rb
|
370
340
|
- lib/r10k/environment/base.rb
|
371
341
|
- lib/r10k/environment/git.rb
|
372
342
|
- lib/r10k/environment/name.rb
|
@@ -462,149 +432,6 @@ files:
|
|
462
432
|
- locales/r10k.pot
|
463
433
|
- r10k.gemspec
|
464
434
|
- r10k.yaml.example
|
465
|
-
- spec/fixtures/empty/.empty
|
466
|
-
- spec/fixtures/integration/git/puppet-boolean-bare.tar
|
467
|
-
- spec/fixtures/module/forge/bad_module/metadata.json
|
468
|
-
- spec/fixtures/module/forge/eight_hundred/Modulefile
|
469
|
-
- spec/fixtures/module/forge/eight_hundred/metadata.json
|
470
|
-
- spec/fixtures/tarball/tarball.tar.gz
|
471
|
-
- spec/fixtures/unit/action/r10k.yaml
|
472
|
-
- spec/fixtures/unit/action/r10k_cachedir.yaml
|
473
|
-
- spec/fixtures/unit/action/r10k_creds.yaml
|
474
|
-
- spec/fixtures/unit/action/r10k_forge_auth.yaml
|
475
|
-
- spec/fixtures/unit/action/r10k_forge_auth_no_url.yaml
|
476
|
-
- spec/fixtures/unit/action/r10k_generate_types.yaml
|
477
|
-
- spec/fixtures/unit/action/r10k_logging.yaml
|
478
|
-
- spec/fixtures/unit/action/r10k_puppet_path.yaml
|
479
|
-
- spec/fixtures/unit/puppetfile/argument-error/Puppetfile
|
480
|
-
- spec/fixtures/unit/puppetfile/default-branch-override/Puppetfile
|
481
|
-
- spec/fixtures/unit/puppetfile/duplicate-module-error/Puppetfile
|
482
|
-
- spec/fixtures/unit/puppetfile/forge-override/Puppetfile
|
483
|
-
- spec/fixtures/unit/puppetfile/invalid-syntax/Puppetfile
|
484
|
-
- spec/fixtures/unit/puppetfile/load-error/Puppetfile
|
485
|
-
- spec/fixtures/unit/puppetfile/name-error/Puppetfile
|
486
|
-
- spec/fixtures/unit/puppetfile/valid-forge-with-version/Puppetfile
|
487
|
-
- spec/fixtures/unit/puppetfile/valid-forge-without-version/Puppetfile
|
488
|
-
- spec/fixtures/unit/puppetfile/various-modules/Puppetfile
|
489
|
-
- spec/fixtures/unit/puppetfile/various-modules/Puppetfile.new
|
490
|
-
- spec/fixtures/unit/util/purgeable/managed_one/expected_1
|
491
|
-
- spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/managed_symlink_file
|
492
|
-
- spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_allowlisted_2/ignored_1
|
493
|
-
- spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_expected_1
|
494
|
-
- spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_unmanaged_1
|
495
|
-
- spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/unmanaged_symlink_dir
|
496
|
-
- spec/fixtures/unit/util/purgeable/managed_one/managed_symlink_dir
|
497
|
-
- spec/fixtures/unit/util/purgeable/managed_one/unmanaged_1
|
498
|
-
- spec/fixtures/unit/util/purgeable/managed_one/unmanaged_symlink_file
|
499
|
-
- spec/fixtures/unit/util/purgeable/managed_two/.hidden/unmanaged_3
|
500
|
-
- spec/fixtures/unit/util/purgeable/managed_two/expected_2
|
501
|
-
- spec/fixtures/unit/util/purgeable/managed_two/unmanaged_2
|
502
|
-
- spec/fixtures/unit/util/subprocess/runner/no-execute.sh
|
503
|
-
- spec/integration/git/rugged/bare_repository_spec.rb
|
504
|
-
- spec/integration/git/rugged/cache_spec.rb
|
505
|
-
- spec/integration/git/rugged/thin_repository_spec.rb
|
506
|
-
- spec/integration/git/rugged/working_repository_spec.rb
|
507
|
-
- spec/integration/git/shellgit/bare_repository_spec.rb
|
508
|
-
- spec/integration/git/shellgit/thin_repository_spec.rb
|
509
|
-
- spec/integration/git/shellgit/working_repository_spec.rb
|
510
|
-
- spec/integration/git/stateful_repository_spec.rb
|
511
|
-
- spec/integration/util/purageable_spec.rb
|
512
|
-
- spec/matchers/exit_with.rb
|
513
|
-
- spec/matchers/match_realpath.rb
|
514
|
-
- spec/r10k-mocks.rb
|
515
|
-
- spec/r10k-mocks/mock_config.rb
|
516
|
-
- spec/r10k-mocks/mock_env.rb
|
517
|
-
- spec/r10k-mocks/mock_source.rb
|
518
|
-
- spec/shared-contexts/git-fixtures.rb
|
519
|
-
- spec/shared-contexts/tarball.rb
|
520
|
-
- spec/shared-examples/deploy-actions.rb
|
521
|
-
- spec/shared-examples/git-repository.rb
|
522
|
-
- spec/shared-examples/git/bare_repository.rb
|
523
|
-
- spec/shared-examples/git/thin_repository.rb
|
524
|
-
- spec/shared-examples/git/working_repository.rb
|
525
|
-
- spec/shared-examples/puppetfile-action.rb
|
526
|
-
- spec/shared-examples/settings/ancestry.rb
|
527
|
-
- spec/shared-examples/subprocess-runner.rb
|
528
|
-
- spec/spec_helper.rb
|
529
|
-
- spec/unit/action/cri_runner_spec.rb
|
530
|
-
- spec/unit/action/deploy/deploy_helpers_spec.rb
|
531
|
-
- spec/unit/action/deploy/display_spec.rb
|
532
|
-
- spec/unit/action/deploy/environment_spec.rb
|
533
|
-
- spec/unit/action/deploy/module_spec.rb
|
534
|
-
- spec/unit/action/puppetfile/check_spec.rb
|
535
|
-
- spec/unit/action/puppetfile/cri_runner_spec.rb
|
536
|
-
- spec/unit/action/puppetfile/install_spec.rb
|
537
|
-
- spec/unit/action/puppetfile/purge_spec.rb
|
538
|
-
- spec/unit/action/runner_spec.rb
|
539
|
-
- spec/unit/action/visitor_spec.rb
|
540
|
-
- spec/unit/cli_spec.rb
|
541
|
-
- spec/unit/deployment/config_spec.rb
|
542
|
-
- spec/unit/deployment_spec.rb
|
543
|
-
- spec/unit/environment/bare_spec.rb
|
544
|
-
- spec/unit/environment/base_spec.rb
|
545
|
-
- spec/unit/environment/git_spec.rb
|
546
|
-
- spec/unit/environment/name_spec.rb
|
547
|
-
- spec/unit/environment/plain_spec.rb
|
548
|
-
- spec/unit/environment/svn_spec.rb
|
549
|
-
- spec/unit/environment/tarball_spec.rb
|
550
|
-
- spec/unit/environment/with_modules_spec.rb
|
551
|
-
- spec/unit/errors/formatting_spec.rb
|
552
|
-
- spec/unit/feature_spec.rb
|
553
|
-
- spec/unit/forge/module_release_spec.rb
|
554
|
-
- spec/unit/git/alternates_spec.rb
|
555
|
-
- spec/unit/git/cache_spec.rb
|
556
|
-
- spec/unit/git/rugged/cache_spec.rb
|
557
|
-
- spec/unit/git/rugged/credentials_spec.rb
|
558
|
-
- spec/unit/git/shellgit/cache_spec.rb
|
559
|
-
- spec/unit/git/stateful_repository_spec.rb
|
560
|
-
- spec/unit/git_spec.rb
|
561
|
-
- spec/unit/initializers_spec.rb
|
562
|
-
- spec/unit/instance_cache_spec.rb
|
563
|
-
- spec/unit/keyed_factory_spec.rb
|
564
|
-
- spec/unit/logging/terminaloutputter_spec.rb
|
565
|
-
- spec/unit/logging_spec.rb
|
566
|
-
- spec/unit/module/base_spec.rb
|
567
|
-
- spec/unit/module/forge_spec.rb
|
568
|
-
- spec/unit/module/git_spec.rb
|
569
|
-
- spec/unit/module/metadata_file_spec.rb
|
570
|
-
- spec/unit/module/svn_spec.rb
|
571
|
-
- spec/unit/module/tarball_spec.rb
|
572
|
-
- spec/unit/module_loader/puppetfile_spec.rb
|
573
|
-
- spec/unit/module_spec.rb
|
574
|
-
- spec/unit/puppetfile_spec.rb
|
575
|
-
- spec/unit/settings/collection_spec.rb
|
576
|
-
- spec/unit/settings/container_spec.rb
|
577
|
-
- spec/unit/settings/definition_spec.rb
|
578
|
-
- spec/unit/settings/enum_definition_spec.rb
|
579
|
-
- spec/unit/settings/inheritance_spec.rb
|
580
|
-
- spec/unit/settings/list_spec.rb
|
581
|
-
- spec/unit/settings/loader_spec.rb
|
582
|
-
- spec/unit/settings/uri_definition_spec.rb
|
583
|
-
- spec/unit/settings_spec.rb
|
584
|
-
- spec/unit/source/base_spec.rb
|
585
|
-
- spec/unit/source/exec_spec.rb
|
586
|
-
- spec/unit/source/git_spec.rb
|
587
|
-
- spec/unit/source/hash_spec.rb
|
588
|
-
- spec/unit/source/svn_spec.rb
|
589
|
-
- spec/unit/source/yaml_spec.rb
|
590
|
-
- spec/unit/source_spec.rb
|
591
|
-
- spec/unit/svn/remote_spec.rb
|
592
|
-
- spec/unit/svn/working_dir_spec.rb
|
593
|
-
- spec/unit/tarball_spec.rb
|
594
|
-
- spec/unit/util/attempt_spec.rb
|
595
|
-
- spec/unit/util/cacheable_spec.rb
|
596
|
-
- spec/unit/util/commands_spec.rb
|
597
|
-
- spec/unit/util/downloader_spec.rb
|
598
|
-
- spec/unit/util/exec_env_spec.rb
|
599
|
-
- spec/unit/util/purgeable_spec.rb
|
600
|
-
- spec/unit/util/setopts_spec.rb
|
601
|
-
- spec/unit/util/subprocess/result_spec.rb
|
602
|
-
- spec/unit/util/subprocess/runner/posix_spec.rb
|
603
|
-
- spec/unit/util/subprocess/runner/pump_spec.rb
|
604
|
-
- spec/unit/util/subprocess/runner/windows_spec.rb
|
605
|
-
- spec/unit/util/subprocess/subprocess_error_spec.rb
|
606
|
-
- spec/unit/util/subprocess_spec.rb
|
607
|
-
- spec/unit/util/symbolize_keys_spec.rb
|
608
435
|
homepage: https://github.com/puppetlabs/r10k
|
609
436
|
licenses:
|
610
437
|
- Apache-2.0
|
@@ -617,7 +444,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
617
444
|
requirements:
|
618
445
|
- - ">="
|
619
446
|
- !ruby/object:Gem::Version
|
620
|
-
version:
|
447
|
+
version: 3.1.0
|
621
448
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
622
449
|
requirements:
|
623
450
|
- - ">="
|
data/.github/workflows/stale.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
name: Mark stale issues
|
2
|
-
|
3
|
-
on:
|
4
|
-
schedule:
|
5
|
-
- cron: "30 1 * * *"
|
6
|
-
|
7
|
-
jobs:
|
8
|
-
stale:
|
9
|
-
runs-on: ubuntu-latest
|
10
|
-
steps:
|
11
|
-
- uses: actions/stale@v3
|
12
|
-
with:
|
13
|
-
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
14
|
-
days-before-stale: 60
|
15
|
-
days-before-close: 7
|
16
|
-
stale-issue-message: 'This issue has been marked stale because it has had no activity for 60 days. The Puppet Team is actively prioritizing existing bugs and new features, if this issue is still important to you please comment and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.'
|
17
|
-
stale-issue-label: 'stale'
|
18
|
-
exempt-issue-labels: 'community interest'
|
19
|
-
stale-pr-message: "This PR has been marked stale because it has had no activity for 60 days. If you are still interested in getting this merged, please comment and we'll try to move it forward. Otherwise, it will be closed in 7 days."
|
20
|
-
stale-pr-label: 'stale'
|
21
|
-
exempt-pr-labels: 'community interest'
|
data/.travis.yml
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: ruby
|
3
|
-
bundler_args: "--without system"
|
4
|
-
script: "bundle exec rspec --color --format documentation spec"
|
5
|
-
notifications:
|
6
|
-
email: false
|
7
|
-
sudo: false
|
8
|
-
jdk:
|
9
|
-
- openjdk11
|
10
|
-
before_install: gem install bundler -v '< 2' --no-document
|
11
|
-
matrix:
|
12
|
-
include:
|
13
|
-
- stage: r10k tests
|
14
|
-
rvm: 2.3.0
|
15
|
-
- stage: r10k container tests
|
16
|
-
dist: focal
|
17
|
-
language: ruby
|
18
|
-
services:
|
19
|
-
- docker
|
20
|
-
rvm: 2.6.6
|
21
|
-
env:
|
22
|
-
- DOCKER_COMPOSE_VERSION=1.28.6
|
23
|
-
- DOCKER_BUILDX_VERSION=0.5.1
|
24
|
-
# necessary to prevent overwhelming TravisCI build output limits
|
25
|
-
- DOCKER_BUILD_FLAGS="--progress plain"
|
26
|
-
before_install:
|
27
|
-
- sudo rm /usr/local/bin/docker-compose
|
28
|
-
- curl --location https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname --kernel-name`-`uname --machine` > docker-compose
|
29
|
-
- chmod +x docker-compose
|
30
|
-
- sudo mv docker-compose /usr/local/bin
|
31
|
-
- mkdir -vp ~/.docker/cli-plugins
|
32
|
-
- curl --location https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-amd64 > ~/.docker/cli-plugins/docker-buildx
|
33
|
-
- chmod +x ~/.docker/cli-plugins/docker-buildx
|
34
|
-
- docker buildx create --name travis_builder --use
|
35
|
-
script:
|
36
|
-
- set -e
|
37
|
-
- cd docker
|
38
|
-
- make lint
|
39
|
-
- make build
|
40
|
-
- make test
|
41
|
-
after_script:
|
42
|
-
- docker buildx rm travis_builder
|
data/docker/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
TEST-rspec.xml
|
data/docker/.rspec
DELETED
data/docker/Gemfile
DELETED
data/docker/Makefile
DELETED
@@ -1,92 +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
|
-
export BUNDLE_PATH = $(PWD)/.bundle/gems
|
11
|
-
export BUNDLE_BIN = $(PWD)/.bundle/bin
|
12
|
-
export GEMFILE = $(PWD)/Gemfile
|
13
|
-
export DOCKER_BUILDKIT ?= 1
|
14
|
-
|
15
|
-
ifeq ($(IS_RELEASE),true)
|
16
|
-
VERSION ?= $(shell echo $(git_describe) | sed 's/-.*//')
|
17
|
-
PUBLISHED_VERSION ?= $(shell curl --silent 'https://rubygems.org/api/v1/gems/r10k.json' | jq '."version"' | tr -d '"')
|
18
|
-
CONTAINER_EXISTS = $(shell DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect $(NAMESPACE)/r10k:$(VERSION) > /dev/null 2>&1; echo $$?)
|
19
|
-
ifeq ($(CONTAINER_EXISTS),0)
|
20
|
-
SKIP_BUILD ?= true
|
21
|
-
else ifneq ($(VERSION),$(PUBLISHED_VERSION))
|
22
|
-
SKIP_BUILD ?= true
|
23
|
-
endif
|
24
|
-
|
25
|
-
LATEST_VERSION ?= latest
|
26
|
-
dockerfile := release.Dockerfile
|
27
|
-
dockerfile_context := r10k
|
28
|
-
else
|
29
|
-
VERSION ?= edge
|
30
|
-
IS_LATEST := false
|
31
|
-
dockerfile := Dockerfile
|
32
|
-
dockerfile_context := $(PWD)/..
|
33
|
-
endif
|
34
|
-
|
35
|
-
prep:
|
36
|
-
@git fetch --unshallow 2> /dev/null ||:
|
37
|
-
@git fetch origin 'refs/tags/*:refs/tags/*'
|
38
|
-
ifeq ($(SKIP_BUILD),true)
|
39
|
-
@echo "SKIP_BUILD is true, exiting with 1"
|
40
|
-
@exit 1
|
41
|
-
endif
|
42
|
-
|
43
|
-
lint:
|
44
|
-
ifeq ($(hadolint_available),0)
|
45
|
-
@$(hadolint_command) r10k/$(dockerfile)
|
46
|
-
else
|
47
|
-
@docker pull $(hadolint_container)
|
48
|
-
@docker run --rm -v $(PWD)/r10k/$(dockerfile):/Dockerfile -i $(hadolint_container) $(hadolint_command) Dockerfile
|
49
|
-
endif
|
50
|
-
|
51
|
-
build: prep
|
52
|
-
docker pull alpine:$(alpine_version)
|
53
|
-
docker buildx build \
|
54
|
-
${DOCKER_BUILD_FLAGS} \
|
55
|
-
--load \
|
56
|
-
--build-arg alpine_version=$(alpine_version) \
|
57
|
-
--build-arg vcs_ref=$(vcs_ref) \
|
58
|
-
--build-arg build_date=$(build_date) \
|
59
|
-
--build-arg version=$(VERSION) \
|
60
|
-
--build-arg pupperware_analytics_stream=$(PUPPERWARE_ANALYTICS_STREAM) \
|
61
|
-
--file r10k/$(dockerfile) \
|
62
|
-
--tag $(NAMESPACE)/r10k:$(VERSION) $(dockerfile_context)
|
63
|
-
ifeq ($(IS_LATEST),true)
|
64
|
-
@docker tag $(NAMESPACE)/r10k:$(VERSION) puppet/r10k:$(LATEST_VERSION)
|
65
|
-
endif
|
66
|
-
|
67
|
-
test: prep
|
68
|
-
@bundle install --path $$BUNDLE_PATH --gemfile $$GEMFILE --with test
|
69
|
-
@bundle update
|
70
|
-
@PUPPET_TEST_DOCKER_IMAGE=$(NAMESPACE)/r10k:$(VERSION) \
|
71
|
-
bundle exec --gemfile $$GEMFILE \
|
72
|
-
rspec spec
|
73
|
-
|
74
|
-
push-image: prep
|
75
|
-
@docker push $(NAMESPACE)/r10k:$(VERSION)
|
76
|
-
ifeq ($(IS_LATEST),true)
|
77
|
-
@docker push $(NAMESPACE)/r10k:$(LATEST_VERSION)
|
78
|
-
endif
|
79
|
-
|
80
|
-
push-readme:
|
81
|
-
@docker pull sheogorath/readme-to-dockerhub
|
82
|
-
@docker run --rm \
|
83
|
-
-v $(PWD)/README.md:/data/README.md \
|
84
|
-
-e DOCKERHUB_USERNAME="$(DOCKERHUB_USERNAME)" \
|
85
|
-
-e DOCKERHUB_PASSWORD="$(DOCKERHUB_PASSWORD)" \
|
86
|
-
-e DOCKERHUB_REPO_PREFIX=puppet \
|
87
|
-
-e DOCKERHUB_REPO_NAME=r10k \
|
88
|
-
sheogorath/readme-to-dockerhub
|
89
|
-
|
90
|
-
publish: push-image push-readme
|
91
|
-
|
92
|
-
.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
|