r10k 3.15.0 → 4.1.0

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.
Files changed (240) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +17 -0
  3. data/.github/workflows/docker.yml +4 -4
  4. data/.github/workflows/release.yml +2 -2
  5. data/.github/workflows/rspec_tests.yml +10 -11
  6. data/.github/workflows/stale.yml +1 -1
  7. data/CHANGELOG.mkd +66 -0
  8. data/CODEOWNERS +1 -2
  9. data/Gemfile +2 -2
  10. data/README.mkd +16 -17
  11. data/doc/common-patterns.mkd +1 -2
  12. data/doc/dynamic-environments/configuration.mkd +78 -2
  13. data/doc/puppetfile.mkd +9 -3
  14. data/integration/Gemfile +1 -1
  15. data/integration/Rakefile +1 -1
  16. data/integration/files/pre-suite/git_config.pp.erb +1 -1
  17. data/integration/pre-suite/00_pe_install.rb +3 -0
  18. data/integration/pre-suite/10_git_config.rb +0 -3
  19. data/integration/tests/Puppetfile/HTTP_PROXY_affects_git_source.rb +5 -4
  20. data/integration/tests/basic_functionality/negative/negative_bad_proxy.rb +1 -1
  21. data/integration/tests/basic_functionality/proxy_specified_in_configuration.rb +2 -2
  22. data/integration/tests/basic_functionality/proxy_with_puppetfile.rb +2 -2
  23. data/integration/tests/basic_functionality/rugged_git_provider_with_ssh.rb +3 -3
  24. data/integration/tests/basic_functionality/rugged_git_provider_without_ssh.rb +3 -3
  25. data/integration/tests/command_line/deploy_env_without_mod_update.rb +0 -3
  26. data/integration/tests/command_line/negative/neg_deploy_env_with_module_update.rb +0 -3
  27. data/integration/tests/git_source/HTTP_proxy_and_git_source.rb +5 -10
  28. data/integration/tests/git_source/git_source_git.rb +1 -4
  29. data/integration/tests/git_source/git_source_repeated_remote.rb +0 -3
  30. data/integration/tests/git_source/git_source_submodule.rb +1 -1
  31. data/integration/tests/git_source/negative/neg_git_unauthorized_ssh.rb +1 -1
  32. data/integration/tests/purging/content_not_purged_at_root.rb +0 -3
  33. data/integration/tests/purging/default_purging.rb +0 -3
  34. data/integration/tests/purging/{does_not_purge_files_on_white_list.rb → does_not_purge_files_on_allowlist.rb} +2 -5
  35. data/integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module.rb +0 -3
  36. data/integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module_static.rb +0 -3
  37. data/integration/tests/user_scenario/basic_workflow/multi_source_custom_forge_git_module.rb +0 -3
  38. data/integration/tests/user_scenario/basic_workflow/negative/neg_bad_forge_module.rb +0 -3
  39. data/integration/tests/user_scenario/basic_workflow/negative/neg_disk_full.rb +1 -1
  40. data/integration/tests/user_scenario/basic_workflow/negative/neg_duplicate_module_names.rb +0 -3
  41. data/integration/tests/user_scenario/basic_workflow/negative/neg_inaccessible_forge.rb +3 -2
  42. data/integration/tests/user_scenario/basic_workflow/negative/neg_specify_deleted_forge_module.rb +1 -5
  43. data/integration/tests/user_scenario/basic_workflow/single_env_10000_files.rb +1 -1
  44. data/integration/tests/user_scenario/basic_workflow/single_env_custom_forge_git_module.rb +0 -3
  45. data/integration/tests/user_scenario/basic_workflow/single_env_custom_forge_module.rb +0 -3
  46. data/integration/tests/user_scenario/basic_workflow/single_env_large_files.rb +1 -1
  47. data/integration/tests/user_scenario/basic_workflow/single_env_module_already_installed.rb +0 -3
  48. data/integration/tests/user_scenario/basic_workflow/single_env_purge_unmanaged_modules.rb +0 -3
  49. data/integration/tests/user_scenario/basic_workflow/single_env_switch_forge_git_module.rb +0 -3
  50. data/integration/tests/user_scenario/basic_workflow/single_env_upgrade_forge_mod_revert_change.rb +0 -3
  51. data/integration/tests/user_scenario/complex_workflow/multi_env_add_change_remove.rb +0 -3
  52. data/lib/r10k/action/deploy/environment.rb +2 -19
  53. data/lib/r10k/action/deploy/module.rb +1 -0
  54. data/lib/r10k/action/puppetfile/check.rb +7 -0
  55. data/lib/r10k/action/puppetfile/install.rb +3 -1
  56. data/lib/r10k/cli/deploy.rb +15 -1
  57. data/lib/r10k/cli/puppetfile.rb +1 -0
  58. data/lib/r10k/content_synchronizer.rb +7 -2
  59. data/lib/r10k/environment.rb +0 -1
  60. data/lib/r10k/git/rugged/bare_repository.rb +4 -3
  61. data/lib/r10k/git/rugged/working_repository.rb +7 -5
  62. data/lib/r10k/git/shellgit/working_repository.rb +3 -3
  63. data/lib/r10k/git/stateful_repository.rb +2 -2
  64. data/lib/r10k/module/base.rb +3 -3
  65. data/lib/r10k/module/git.rb +18 -4
  66. data/lib/r10k/module_loader/puppetfile.rb +14 -9
  67. data/lib/r10k/puppetfile.rb +1 -1
  68. data/lib/r10k/settings.rb +6 -7
  69. data/lib/r10k/version.rb +1 -1
  70. data/locales/r10k.pot +34 -82
  71. data/r10k.gemspec +5 -7
  72. metadata +22 -211
  73. data/docker/.gitignore +0 -1
  74. data/docker/.rspec +0 -4
  75. data/docker/Gemfile +0 -11
  76. data/docker/Makefile +0 -99
  77. data/docker/README.md +0 -28
  78. data/docker/docker-compose.yml +0 -18
  79. data/docker/r10k/Dockerfile +0 -68
  80. data/docker/r10k/adduser.sh +0 -13
  81. data/docker/r10k/docker-entrypoint.d/10-analytics.sh +0 -30
  82. data/docker/r10k/docker-entrypoint.sh +0 -10
  83. data/docker/r10k/release.Dockerfile +0 -55
  84. data/docker/spec/dockerfile_spec.rb +0 -37
  85. data/docker/spec/fixtures/Puppetfile +0 -2
  86. data/integration/tests/basic_functionality/install_pe_only_module_with_puppetfile.rb +0 -83
  87. data/integration/tests/basic_functionality/proxy_with_pe_only_module.rb +0 -128
  88. data/integration/tests/purging/invalid_whitelist_types.rb +0 -63
  89. data/integration/tests/user_scenario/basic_workflow/negative/neg_module_specified_at_deleted_release.rb +0 -49
  90. data/integration/tests/user_scenario/basic_workflow/single_env_module_last_release_deleted.rb +0 -68
  91. data/lib/r10k/environment/bare.rb +0 -13
  92. data/spec/fixtures/empty/.empty +0 -0
  93. data/spec/fixtures/integration/git/puppet-boolean-bare.tar +0 -0
  94. data/spec/fixtures/module/forge/bad_module/metadata.json +0 -1
  95. data/spec/fixtures/module/forge/eight_hundred/Modulefile +0 -8
  96. data/spec/fixtures/module/forge/eight_hundred/metadata.json +0 -19
  97. data/spec/fixtures/tarball/tarball.tar.gz +0 -0
  98. data/spec/fixtures/unit/action/r10k.yaml +0 -5
  99. data/spec/fixtures/unit/action/r10k_cachedir.yaml +0 -2
  100. data/spec/fixtures/unit/action/r10k_creds.yaml +0 -9
  101. data/spec/fixtures/unit/action/r10k_forge_auth.yaml +0 -4
  102. data/spec/fixtures/unit/action/r10k_forge_auth_no_url.yaml +0 -3
  103. data/spec/fixtures/unit/action/r10k_generate_types.yaml +0 -3
  104. data/spec/fixtures/unit/action/r10k_logging.yaml +0 -12
  105. data/spec/fixtures/unit/action/r10k_puppet_path.yaml +0 -3
  106. data/spec/fixtures/unit/puppetfile/argument-error/Puppetfile +0 -1
  107. data/spec/fixtures/unit/puppetfile/default-branch-override/Puppetfile +0 -5
  108. data/spec/fixtures/unit/puppetfile/duplicate-module-error/Puppetfile +0 -10
  109. data/spec/fixtures/unit/puppetfile/forge-override/Puppetfile +0 -8
  110. data/spec/fixtures/unit/puppetfile/invalid-syntax/Puppetfile +0 -1
  111. data/spec/fixtures/unit/puppetfile/load-error/Puppetfile +0 -1
  112. data/spec/fixtures/unit/puppetfile/name-error/Puppetfile +0 -1
  113. data/spec/fixtures/unit/puppetfile/valid-forge-with-version/Puppetfile +0 -1
  114. data/spec/fixtures/unit/puppetfile/valid-forge-without-version/Puppetfile +0 -1
  115. data/spec/fixtures/unit/puppetfile/various-modules/Puppetfile +0 -10
  116. data/spec/fixtures/unit/puppetfile/various-modules/Puppetfile.new +0 -10
  117. data/spec/fixtures/unit/puppetfile/various-modules/modules/apt/.gitkeep +0 -1
  118. data/spec/fixtures/unit/puppetfile/various-modules/modules/baz/.gitkeep +0 -1
  119. data/spec/fixtures/unit/puppetfile/various-modules/modules/buzz/.gitkeep +0 -1
  120. data/spec/fixtures/unit/puppetfile/various-modules/modules/canary/.gitkeep +0 -1
  121. data/spec/fixtures/unit/puppetfile/various-modules/modules/fizz/.gitkeep +0 -1
  122. data/spec/fixtures/unit/puppetfile/various-modules/modules/rpm/.gitkeep +0 -1
  123. data/spec/fixtures/unit/util/purgeable/managed_one/expected_1 +0 -0
  124. data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/managed_symlink_file +0 -1
  125. data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_allowlisted_2/ignored_1 +0 -0
  126. data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_expected_1 +0 -0
  127. data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_unmanaged_1 +0 -0
  128. data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/unmanaged_symlink_dir +0 -1
  129. data/spec/fixtures/unit/util/purgeable/managed_one/managed_symlink_dir +0 -1
  130. data/spec/fixtures/unit/util/purgeable/managed_one/unmanaged_1 +0 -0
  131. data/spec/fixtures/unit/util/purgeable/managed_one/unmanaged_symlink_file +0 -1
  132. data/spec/fixtures/unit/util/purgeable/managed_two/.hidden/unmanaged_3 +0 -0
  133. data/spec/fixtures/unit/util/purgeable/managed_two/expected_2 +0 -0
  134. data/spec/fixtures/unit/util/purgeable/managed_two/unmanaged_2 +0 -0
  135. data/spec/fixtures/unit/util/subprocess/runner/no-execute.sh +0 -3
  136. data/spec/integration/git/rugged/bare_repository_spec.rb +0 -13
  137. data/spec/integration/git/rugged/cache_spec.rb +0 -33
  138. data/spec/integration/git/rugged/thin_repository_spec.rb +0 -14
  139. data/spec/integration/git/rugged/working_repository_spec.rb +0 -48
  140. data/spec/integration/git/shellgit/bare_repository_spec.rb +0 -13
  141. data/spec/integration/git/shellgit/thin_repository_spec.rb +0 -14
  142. data/spec/integration/git/shellgit/working_repository_spec.rb +0 -13
  143. data/spec/integration/git/stateful_repository_spec.rb +0 -175
  144. data/spec/integration/util/purageable_spec.rb +0 -41
  145. data/spec/matchers/exit_with.rb +0 -28
  146. data/spec/matchers/match_realpath.rb +0 -18
  147. data/spec/r10k-mocks/mock_config.rb +0 -33
  148. data/spec/r10k-mocks/mock_env.rb +0 -18
  149. data/spec/r10k-mocks/mock_source.rb +0 -17
  150. data/spec/r10k-mocks.rb +0 -3
  151. data/spec/shared-contexts/git-fixtures.rb +0 -55
  152. data/spec/shared-contexts/tarball.rb +0 -32
  153. data/spec/shared-examples/deploy-actions.rb +0 -69
  154. data/spec/shared-examples/git/bare_repository.rb +0 -132
  155. data/spec/shared-examples/git/thin_repository.rb +0 -26
  156. data/spec/shared-examples/git/working_repository.rb +0 -207
  157. data/spec/shared-examples/git-repository.rb +0 -38
  158. data/spec/shared-examples/puppetfile-action.rb +0 -39
  159. data/spec/shared-examples/settings/ancestry.rb +0 -44
  160. data/spec/shared-examples/subprocess-runner.rb +0 -89
  161. data/spec/spec_helper.rb +0 -41
  162. data/spec/unit/action/cri_runner_spec.rb +0 -72
  163. data/spec/unit/action/deploy/deploy_helpers_spec.rb +0 -38
  164. data/spec/unit/action/deploy/display_spec.rb +0 -61
  165. data/spec/unit/action/deploy/environment_spec.rb +0 -640
  166. data/spec/unit/action/deploy/module_spec.rb +0 -476
  167. data/spec/unit/action/puppetfile/check_spec.rb +0 -53
  168. data/spec/unit/action/puppetfile/cri_runner_spec.rb +0 -47
  169. data/spec/unit/action/puppetfile/install_spec.rb +0 -112
  170. data/spec/unit/action/puppetfile/purge_spec.rb +0 -60
  171. data/spec/unit/action/runner_spec.rb +0 -407
  172. data/spec/unit/action/visitor_spec.rb +0 -39
  173. data/spec/unit/cli_spec.rb +0 -9
  174. data/spec/unit/deployment/config_spec.rb +0 -33
  175. data/spec/unit/deployment_spec.rb +0 -162
  176. data/spec/unit/environment/bare_spec.rb +0 -13
  177. data/spec/unit/environment/base_spec.rb +0 -122
  178. data/spec/unit/environment/git_spec.rb +0 -114
  179. data/spec/unit/environment/name_spec.rb +0 -181
  180. data/spec/unit/environment/plain_spec.rb +0 -8
  181. data/spec/unit/environment/svn_spec.rb +0 -146
  182. data/spec/unit/environment/tarball_spec.rb +0 -45
  183. data/spec/unit/environment/with_modules_spec.rb +0 -122
  184. data/spec/unit/errors/formatting_spec.rb +0 -84
  185. data/spec/unit/feature_spec.rb +0 -50
  186. data/spec/unit/forge/module_release_spec.rb +0 -213
  187. data/spec/unit/git/alternates_spec.rb +0 -116
  188. data/spec/unit/git/cache_spec.rb +0 -66
  189. data/spec/unit/git/rugged/cache_spec.rb +0 -48
  190. data/spec/unit/git/rugged/credentials_spec.rb +0 -215
  191. data/spec/unit/git/shellgit/cache_spec.rb +0 -27
  192. data/spec/unit/git/stateful_repository_spec.rb +0 -45
  193. data/spec/unit/git_spec.rb +0 -102
  194. data/spec/unit/initializers_spec.rb +0 -68
  195. data/spec/unit/instance_cache_spec.rb +0 -78
  196. data/spec/unit/keyed_factory_spec.rb +0 -51
  197. data/spec/unit/logging/terminaloutputter_spec.rb +0 -53
  198. data/spec/unit/logging_spec.rb +0 -68
  199. data/spec/unit/module/base_spec.rb +0 -118
  200. data/spec/unit/module/forge_spec.rb +0 -271
  201. data/spec/unit/module/git_spec.rb +0 -387
  202. data/spec/unit/module/metadata_file_spec.rb +0 -68
  203. data/spec/unit/module/svn_spec.rb +0 -208
  204. data/spec/unit/module/tarball_spec.rb +0 -70
  205. data/spec/unit/module_loader/puppetfile_spec.rb +0 -421
  206. data/spec/unit/module_spec.rb +0 -114
  207. data/spec/unit/puppetfile_spec.rb +0 -304
  208. data/spec/unit/settings/collection_spec.rb +0 -123
  209. data/spec/unit/settings/container_spec.rb +0 -92
  210. data/spec/unit/settings/definition_spec.rb +0 -79
  211. data/spec/unit/settings/enum_definition_spec.rb +0 -20
  212. data/spec/unit/settings/inheritance_spec.rb +0 -38
  213. data/spec/unit/settings/list_spec.rb +0 -88
  214. data/spec/unit/settings/loader_spec.rb +0 -110
  215. data/spec/unit/settings/uri_definition_spec.rb +0 -23
  216. data/spec/unit/settings_spec.rb +0 -303
  217. data/spec/unit/source/base_spec.rb +0 -31
  218. data/spec/unit/source/exec_spec.rb +0 -81
  219. data/spec/unit/source/git_spec.rb +0 -233
  220. data/spec/unit/source/hash_spec.rb +0 -54
  221. data/spec/unit/source/svn_spec.rb +0 -196
  222. data/spec/unit/source/yaml_spec.rb +0 -42
  223. data/spec/unit/source_spec.rb +0 -10
  224. data/spec/unit/svn/remote_spec.rb +0 -21
  225. data/spec/unit/svn/working_dir_spec.rb +0 -56
  226. data/spec/unit/tarball_spec.rb +0 -57
  227. data/spec/unit/util/attempt_spec.rb +0 -82
  228. data/spec/unit/util/cacheable_spec.rb +0 -23
  229. data/spec/unit/util/commands_spec.rb +0 -61
  230. data/spec/unit/util/downloader_spec.rb +0 -98
  231. data/spec/unit/util/exec_env_spec.rb +0 -56
  232. data/spec/unit/util/purgeable_spec.rb +0 -267
  233. data/spec/unit/util/setopts_spec.rb +0 -83
  234. data/spec/unit/util/subprocess/result_spec.rb +0 -36
  235. data/spec/unit/util/subprocess/runner/posix_spec.rb +0 -7
  236. data/spec/unit/util/subprocess/runner/pump_spec.rb +0 -79
  237. data/spec/unit/util/subprocess/runner/windows_spec.rb +0 -7
  238. data/spec/unit/util/subprocess/subprocess_error_spec.rb +0 -26
  239. data/spec/unit/util/subprocess_spec.rb +0 -65
  240. data/spec/unit/util/symbolize_keys_spec.rb +0 -67
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2085c3475000f081d4ff3ff19fd5f009080c9238c5e532449a24f306b2aa107
4
- data.tar.gz: fb38a94d17d20cdd75aba6c5817cad33c77ed408307f32aa54bc4f65dabba022
3
+ metadata.gz: 030acd30658f5b8fdf89d1c18512defc7273e39545066e66bc9cd3cd0c16294d
4
+ data.tar.gz: 1548b9b6d4ce6f136eee88c5504fbcdc781fce4fee5ce847097d8f0a9b18e849
5
5
  SHA512:
6
- metadata.gz: 6de1e925f24ec5edf168c5a4d177030be2d351493ab65274998bbd02b67fa84910d3a28d800bdd03d255e4fb0cceeac1b8d09a615cb181986ee22bd4e155e0fb
7
- data.tar.gz: f4294cd171f9665c70d9573ad082003e5cd272aa42b2f949c41bc6874399c92010e1065140544770807444e8cf60b52d0733add89cfbd0b4839381c918932004
6
+ metadata.gz: be34df44f090809213bb34ca283172c41825f4ccd9b9e50568021d12df30b6c659e87e523e8e2cb1ee8ae0a5acbca806e5e26c8693b3b13adeb00a5912f446d7
7
+ data.tar.gz: 8ce2f367c6f2367f7bfabc89a9f60e69ac983e4a6b1b142de56be5f137d43f592a51297bd1b507b8b33f6acee399a9280f5ad8dd770753e3747a5e7ba02ed6d9
@@ -0,0 +1,17 @@
1
+ version: 2
2
+ updates:
3
+ # raise PRs for gem updates
4
+ - package-ecosystem: bundler
5
+ directory: "/"
6
+ schedule:
7
+ interval: daily
8
+ time: "13:00"
9
+ open-pull-requests-limit: 10
10
+
11
+ # Maintain dependencies for GitHub Actions
12
+ - package-ecosystem: github-actions
13
+ directory: "/"
14
+ schedule:
15
+ interval: daily
16
+ time: "13:00"
17
+ open-pull-requests-limit: 10
@@ -17,7 +17,7 @@ jobs:
17
17
  runs-on: ubuntu-latest
18
18
 
19
19
  steps:
20
- - uses: actions/checkout@master
20
+ - uses: actions/checkout@v3
21
21
  - uses: azure/docker-login@v1
22
22
  with: # This doesn't seem to work unless we point directly to the secrets
23
23
  username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -27,11 +27,11 @@ jobs:
27
27
  with:
28
28
  ruby-version: 2.6.x
29
29
  - run: gem install bundler
30
- - uses: actions/checkout@v2
30
+ - uses: actions/checkout@v3
31
31
  - name: Set up QEMU
32
- uses: docker/setup-qemu-action@v1
32
+ uses: docker/setup-qemu-action@v3
33
33
  - name: Set up Docker Buildx
34
- uses: docker/setup-buildx-action@v1
34
+ uses: docker/setup-buildx-action@v2
35
35
  - name: Build container
36
36
  working-directory: docker
37
37
  run: |
@@ -11,11 +11,11 @@ jobs:
11
11
  release:
12
12
  runs-on: ubuntu-latest
13
13
  steps:
14
- - uses: actions/checkout@v2
14
+ - uses: actions/checkout@v3
15
15
  with:
16
16
  fetch-depth: '0'
17
17
  - name: Bump version and push tag
18
- uses: anothrNick/github-tag-action@1.35.0
18
+ uses: anothrNick/github-tag-action@1.67.0
19
19
  env:
20
20
  GITHUB_TOKEN: ${{ secrets.PUPPET_RELEASE_GH_TOKEN }}
21
21
  DEFAULT_BUMP: patch
@@ -4,6 +4,7 @@ on:
4
4
  pull_request:
5
5
  branches:
6
6
  - main
7
+ - 3.x
7
8
 
8
9
  jobs:
9
10
  rspec_tests:
@@ -11,20 +12,19 @@ jobs:
11
12
  strategy:
12
13
  matrix:
13
14
  cfg:
14
- - {os: ubuntu-18.04, ruby: 2.4}
15
- - {os: ubuntu-18.04, ruby: 2.5}
16
- - {os: ubuntu-18.04, ruby: 2.6}
17
- - {os: ubuntu-18.04, ruby: 2.7}
18
- - {os: ubuntu-18.04, ruby: 3.1}
19
- - {os: ubuntu-18.04, ruby: jruby-9.2.10.0}
20
- - {os: windows-2019, ruby: 2.5}
21
- - {os: windows-2019, ruby: 2.6}
22
- - {os: windows-2019, ruby: 2.7}
15
+ - {os: ubuntu-latest, ruby: 2.6}
16
+ - {os: ubuntu-latest, ruby: 2.7}
17
+ - {os: ubuntu-latest, ruby: 3.1}
18
+ - {os: ubuntu-latest, ruby: 3.2}
19
+ - {os: ubuntu-latest, ruby: jruby-9.3}
20
+ - {os: ubuntu-latest, ruby: jruby-9.4}
21
+ - {os: windows-latest, ruby: 2.6}
22
+ - {os: windows-latest, ruby: 3.2}
23
23
 
24
24
  runs-on: ${{ matrix.cfg.os }}
25
25
  steps:
26
26
  - name: Checkout current PR
27
- uses: actions/checkout@v2
27
+ uses: actions/checkout@v3
28
28
 
29
29
  - name: Install ruby version ${{ matrix.cfg.ruby }}
30
30
  uses: ruby/setup-ruby@v1
@@ -33,7 +33,6 @@ jobs:
33
33
 
34
34
  - name: Install bundler and gems
35
35
  run: |
36
- gem install bundler
37
36
  bundle config set without packaging documentation
38
37
  bundle install --jobs 4 --retry 3
39
38
 
@@ -8,7 +8,7 @@ jobs:
8
8
  stale:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
- - uses: actions/stale@v3
11
+ - uses: actions/stale@v8
12
12
  with:
13
13
  repo-token: ${{ secrets.GITHUB_TOKEN }}
14
14
  days-before-stale: 60
data/CHANGELOG.mkd CHANGED
@@ -4,6 +4,72 @@ CHANGELOG
4
4
  Unreleased
5
5
  ----------
6
6
 
7
+ 4.1.0
8
+ -----
9
+
10
+ - Allow jwt gem >= 2.8
11
+ - r10k::module::git: expose remote as getter [#1379](https://github.com/puppetlabs/r10k/pull/1379)
12
+
13
+ 4.0.2
14
+ -----
15
+
16
+ - Make metadata loading during incremental deploys more robust [PE-34917](https://perforce.atlassian.net/browse/PE-34917)
17
+ - Use the production forge for integration testing
18
+ - (maint) Update beaker-pe to 3 [#1376](https://github.com/puppetlabs/r10k/pull/1376)
19
+ - (maint) Stop puppet service during tests [#1377](https://github.com/puppetlabs/r10k/pull/1377)
20
+
21
+ 4.0.1
22
+ -----
23
+
24
+ - shellgit: Ensure the passed filepath to diff-index is interpreted as filepath [#1367](https://github.com/puppetlabs/r10k/pull/1367)
25
+
26
+ 4.0.0
27
+ -----
28
+ - Drop Ruby 2.3/2.4/2.5 support; use puppet_forge 4.1 or newer [#1336](https://github.com/puppetlabs/r10k/pull/1336)
29
+ - (maint) Add Ruby 3.0 to rspec CI matrix [#1261](https://github.com/puppetlabs/r10k/pull/1261)
30
+ - (RK-368) remove `purge_whitelist` setting [#1277](https://github.com/puppetlabs/r10k/pull/1277)
31
+ - (RK-390) Remove default ref for deploying git modules [#1275](http://github.com/puppetlabs/r10k/pull/1275)
32
+ - (RK-391) Change `exclude_spec` default to true for module spec dir deletion [#1264](https://github.com/puppetlabs/r10k/pull/1261)
33
+ - (RK-383) Remove deprecated `basedir` method from Puppetfile DSL. Users should use `environment_name` instead. [#1254](https://github.com/puppetlabs/r10k/pull/1254)
34
+ - (RK-386) Remove deprecated `bare` environment type. [#1235](https://github.com/puppetlabs/r10k/issues/1235)
35
+
36
+
37
+ 3.16.1
38
+ ------
39
+
40
+ - Make metadata loading during incremental deploys more robust [PE-34917](https://perforce.atlassian.net/browse/PE-34917)
41
+ - Use the production forge for integration testing
42
+
43
+ 3.16.0
44
+ ------
45
+
46
+ - Emit more debug output when modules fail to sync [#1347](https://github.com/puppetlabs/r10k/pull/1347)
47
+ - Update GitHub Actions & introduce dependabot [#1337](https://github.com/puppetlabs/r10k/pull/1337)
48
+ - Update R10K proxy usage to follow newer rugged best practices [PE-35980](https://tickets.puppet.com/browse/PE-35980)
49
+ - Update Acceptance tests to be compatible with Puppet 8 [#1349](https://github.com/puppetlabs/r10k/pull/1349)
50
+
51
+ 3.15.4
52
+ ------
53
+
54
+ - Pin dependencies to maintain support for old Ruby versions [#1329](https://github.com/puppetlabs/r10k/pull/1329)
55
+
56
+ 3.15.3
57
+ ------
58
+
59
+ - Fix dirty working copy debug logging [#1321](https://github.com/puppetlabs/r10k/pull/1321)
60
+ - Allow gettext-setup < 2 for compatibility with Ruby 3.2 and Puppet 8 [#1325](https://github.com/puppetlabs/r10k/pull/1325)
61
+
62
+ 3.15.2
63
+ ------
64
+
65
+ - Implement exclude regex for puppetfile install [#1248](https://github.com/puppetlabs/r10k/issues/1248)
66
+
67
+ 3.15.1
68
+ ------
69
+
70
+ - Add TOC to configuration docs [#1298](https://github.com/puppetlabs/r10k/issues/1298)
71
+ - Remove the spec folder from gemspec [#1316](https://github.com/puppetlabs/r10k/issues/1316)
72
+
7
73
  3.15.0
8
74
  ------
9
75
 
data/CODEOWNERS CHANGED
@@ -1,2 +1 @@
1
- * @puppetlabs/puppetserver-maintainers
2
- /docker/ @puppetlabs/platform-services
1
+ * @puppetlabs/dumpling @puppetlabs/skeletor
data/Gemfile CHANGED
@@ -6,10 +6,10 @@ group :extra do
6
6
  end
7
7
 
8
8
  group :development do
9
- gem 'simplecov', '~> 0.9.1'
9
+ gem 'simplecov', '~> 0.22.0'
10
10
  gem 'ruby-prof', :platforms => :ruby
11
11
  end
12
12
 
13
- if File.exists? "#{__FILE__}.local"
13
+ if File.exist? "#{__FILE__}.local"
14
14
  eval(File.read("#{__FILE__}.local"), binding)
15
15
  end
data/README.mkd CHANGED
@@ -5,6 +5,12 @@ Puppet environment and module deployment
5
5
 
6
6
  [![Build Status](https://travis-ci.org/puppetlabs/r10k.png?branch=master)](https://travis-ci.org/puppetlabs/r10k)
7
7
 
8
+ > R10k is supported and maintained by Puppet, but we consider it to be feature
9
+ > complete and currently have no plans for any new development. We will keep it
10
+ > working within the context of Puppet Enterprise, but we cannot make any other
11
+ > maintenance promises at this time.
12
+
13
+
8
14
  Description
9
15
  -----------
10
16
 
@@ -14,17 +20,21 @@ R10k provides a general purpose toolset for deploying Puppet environments and
14
20
  modules. It implements the [Puppetfile](doc/puppetfile.mkd) format and provides a native
15
21
  implementation of Puppet [environments][workflow].
16
22
 
23
+ You might also consider [g10k](https://github.com/xorpaul/g10k) as a non-ruby
24
+ based alternative.
25
+
26
+
17
27
  Requirements
18
28
  ------------
19
29
 
20
- R10k supports the Ruby versions `>= 2.4.0`. It's tested on Ruby 2.4.0 up to
30
+ R10k supports the Ruby versions `>= 2.6.0`. It's tested on Ruby 2.6.0 up to
21
31
  Ruby 3.1.0 + Jruby.
22
32
 
23
33
  R10k requires additional components, depending on how you plan on managing
24
34
  environments and modules.
25
35
 
26
- - Installing modules from the Puppet Forge requires Puppet 5.0.0+ or later.
27
- Puppet 3 or 4 may work, but is generally not recommended.
36
+ - Installing modules from the Puppet Forge requires Puppet 7.0.0+ or later.
37
+ Puppet 5 and 6 may work, but is generally not recommended.
28
38
  - Git is required for creating environments and modules from Git
29
39
  - SVN is required for creating environments and modules from SVN
30
40
 
@@ -68,7 +78,7 @@ a git repository using Bundler for dependencies:
68
78
 
69
79
  ### Arch Linux
70
80
 
71
- Arch Linux provides a [system package](https://archlinux.org/packages/community/any/r10k/) for r10k.
81
+ Arch Linux provides a [system package](https://archlinux.org/packages/extra/any/r10k/) for r10k.
72
82
  This is built against the [system Ruby](https://archlinux.org/packages/extra/x86_64/ruby/) (which is Ruby 3.0.2 as of 2021-08-03).
73
83
  This package is maintained by [Tim Meusel](https://github.com/bastelfreak).
74
84
 
@@ -110,24 +120,13 @@ To release a new version of the r10k gem, ensure the [changelog](CHANGELOG.mkd)
110
120
 
111
121
  By default, a patch (Z) release will be triggered. To release a new major (X) or minor (Y) version, include `#major` or `#minor` (respectively) in your commit message to trigger the appropriate release.
112
122
 
113
- NOTE: This currently only works for the default branch. If you would like to release from a different branch, please contact the [CODEOWNERS](CODEOWNERS).
114
-
115
123
  Getting help
116
124
  ------------
117
125
 
118
- * IRC: r10k has a dedicated channel, `#r10k`, on Freenode where r10k questions
119
- can be directed. Questions about r10k can frequently be asked in `#puppet` as well.
126
+ * [Puppet Community Slack](https://puppetcommunity.slack.com/)
120
127
  * Mailing lists: [puppet-users](https://groups.google.com/forum/#!forum/puppet-users)
121
128
  * Q&A: [Puppet Ask](https://ask.puppetlabs.com/questions/)
122
129
 
123
- Contributors
124
- ------------
125
-
126
- Please see the CHANGELOG for a listing of the (very awesome) contributors.
127
-
128
130
  ## Maintenance
129
131
 
130
- See [CODEOWNERS](CODEOWNERS) for active repo maintainers.
131
-
132
- Open [issues](https://github.com/puppetlabs/r10k/issues) directly in the r10k repo.
133
-
132
+ See [CODEOWNERS](CODEOWNERS) for current project owners.
@@ -12,8 +12,7 @@ Use a [Control Repo](https://docs.puppet.com/pe/latest/cmgmt_control_repo.html)
12
12
  to store your `Puppetfile`.
13
13
 
14
14
  Hiera data should be in the Control repo OR as a separate source in
15
- `r10k.yaml`. Any `hiera.yaml` in the Control repo will be ignored on a per
16
- environment basis, locating it at `/etc/puppetlabs/puppet/hiera.yaml` is prefered.
15
+ `r10k.yaml`.
17
16
 
18
17
  Each puppet module should be contained in its own independent forge module or
19
18
  repository.
@@ -1,6 +1,70 @@
1
1
  Dynamic Environment Configuration
2
2
  =================================
3
3
 
4
+ <!-- vim-markdown-toc GFM -->
5
+
6
+ * [Config file location](#config-file-location)
7
+ * [Manual configuration](#manual-configuration)
8
+ * [Automatic configuration](#automatic-configuration)
9
+ * [General options](#general-options)
10
+ * [cachedir](#cachedir)
11
+ * [proxy](#proxy)
12
+ * [pool_size](#pool_size)
13
+ * [git](#git)
14
+ * [provider](#provider)
15
+ * [proxy](#proxy-1)
16
+ * [username](#username)
17
+ * [private_key](#private_key)
18
+ * [oauth_token](#oauth_token)
19
+ * [repositories](#repositories)
20
+ * [private_key](#private_key-1)
21
+ * [oauth_token](#oauth_token-1)
22
+ * [proxy](#proxy-2)
23
+ * [forge](#forge)
24
+ * [proxy](#proxy-3)
25
+ * [baseurl](#baseurl)
26
+ * [authorization_token](#authorization_token)
27
+ * [allow_puppetfile_override](#allow_puppetfile_override)
28
+ * [Deployment options](#deployment-options)
29
+ * [postrun](#postrun)
30
+ * [sources](#sources)
31
+ * [deploy](#deploy)
32
+ * [purge\_levels](#purge_levels)
33
+ * [deployment](#deployment)
34
+ * [environment](#environment)
35
+ * [puppetfile](#puppetfile)
36
+ * [purge\_allowlist](#purge_allowlist)
37
+ * [write\_lock](#write_lock)
38
+ * [generate\_types](#generate_types)
39
+ * [puppet\_path](#puppet_path)
40
+ * [puppet\_conf](#puppet_conf)
41
+ * [exclude_spec](#exclude_spec)
42
+ * [Source options](#source-options)
43
+ * [remote](#remote)
44
+ * [basedir](#basedir)
45
+ * [prefix](#prefix)
46
+ * [prefix behaviour](#prefix-behaviour)
47
+ * [strip\_component](#strip_component)
48
+ * [strip\_component behaviour](#strip_component-behaviour)
49
+ * [ignore_branch_prefixes](#ignore_branch_prefixes)
50
+ * [ignore_branch_prefixes behaviour](#ignore_branch_prefixes-behaviour)
51
+ * [filter_command](#filter_command)
52
+ * [Examples](#examples)
53
+ * [Minimal example](#minimal-example)
54
+ * [Separate hiera data](#separate-hiera-data)
55
+ * [Multiple tenancy](#multiple-tenancy)
56
+ * [Multiple tenancy with external hieradata](#multiple-tenancy-with-external-hieradata)
57
+ * [Experimental Features](#experimental-features)
58
+ * [YAML Environment Source](#yaml-environment-source)
59
+ * [YAMLdir Environment Source](#yamldir-environment-source)
60
+ * [Exec environment Source](#exec-environment-source)
61
+ * [Environment Modules](#environment-modules)
62
+ * [Puppetfile module conflicts](#puppetfile-module-conflicts)
63
+ * [Plain Environment Type](#plain-environment-type)
64
+ * [Tarball Environment Type](#tarball-environment-type)
65
+
66
+ <!-- vim-markdown-toc -->
67
+
4
68
  R10k uses a configuration file to determine how dynamic environments should be
5
69
  deployed.
6
70
 
@@ -96,6 +160,18 @@ git:
96
160
  See the [git provider documentation](../git/providers.mkd) for more information
97
161
  regarding Git providers.
98
162
 
163
+ #### default_ref
164
+
165
+ r10k is unable to deploy a git module if no `ref` is specified. A `default_ref` can be
166
+ set in the r10k config that will become the ref a module uses if not otherwise specified. This
167
+ is the lowest priority setting for a module's `ref`. Read the [Puppetfile documentation](../puppetfile.mkd#git)
168
+ for higher priority settings to determine a module's ref.
169
+
170
+ ```yaml
171
+ git:
172
+ default_ref: main
173
+ ```
174
+
99
175
  #### proxy
100
176
 
101
177
  The 'proxy' setting allows you to set or override the global proxy setting specifically
@@ -226,7 +302,7 @@ postrun: ['/usr/bin/curl', '-F', 'deploy=done', 'http://my-app.site/endpoint']
226
302
  The postrun setting can only be set once.
227
303
 
228
304
  Occurrences of the string `$modifiedenvs` in the postrun command will be
229
- replaced with the current environment(s) being deployed.
305
+ replaced with the current environment(s) being deployed, space separated.
230
306
 
231
307
  ### sources
232
308
 
@@ -373,7 +449,7 @@ deploy:
373
449
 
374
450
  #### exclude_spec
375
451
 
376
- During module deployment, r10k's default behavior is to deploy the spec directory. Setting
452
+ During module deployment, r10k's default behavior is to delete the spec directory. Setting
377
453
  `exclude_spec` to true will deploy modules without their spec directory. This behavior
378
454
  can be configured for all modules using the `exclude_spec` setting in the r10k config.
379
455
  It can also be passed as a CLI argument for `deploy environment/module`, overriding the
data/doc/puppetfile.mkd CHANGED
@@ -135,6 +135,12 @@ operations when updating the repo, which can speed up install times. When
135
135
  Module versions can also be specified using `:branch` to track a specific
136
136
  branch reference.
137
137
 
138
+ In r10k 3.x the default branch was hardcoded to `master`; in 4.x that was
139
+ removed. A `default_ref` can be specified in the r10k config to
140
+ to mimic that old behavior, but it is recommended to set the ref on a
141
+ per-module basis in the Puppetfile. Read [here](dynamic-environments/configuration.mkd#default_ref) for more info
142
+ on the `default_ref` setting.
143
+
138
144
  #### Examples
139
145
 
140
146
  ```ruby
@@ -327,15 +333,15 @@ on managing internal and external modules in the same directory.
327
333
 
328
334
  ### Per-Item spec dir deployment
329
335
 
330
- During deployment, r10k's default behavior is to deploy the spec directory. The
336
+ During deployment, r10k's default behavior is to delete the spec directory. The
331
337
  Puppetfile can modify this per module, overriding settings from the default
332
- r10k config. The following example sets the module to not deploy the spec
338
+ r10k config. The following example sets the module to deploy the spec
333
339
  directory.
334
340
 
335
341
  ```
336
342
  mod 'apache',
337
343
  :git => 'git@github.com:puppetlabs/puppetlabs-apache.git',
338
- :exclude_spec => true
344
+ :exclude_spec => false
339
345
  ```
340
346
 
341
347
  ### Per-Item Install Path
data/integration/Gemfile CHANGED
@@ -11,7 +11,7 @@ def location_for(place, fake_version = nil)
11
11
  end
12
12
 
13
13
  gem 'beaker', *location_for(ENV['BEAKER_VERSION'] || '~> 4.5')
14
- gem 'beaker-pe', '~> 2.0'
14
+ gem 'beaker-pe', '~> 3.0'
15
15
  gem 'beaker-answers'
16
16
  gem 'beaker-hostgenerator', *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'] || '~> 1.1')
17
17
  gem 'beaker-abs', *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.4')
data/integration/Rakefile CHANGED
@@ -69,7 +69,7 @@ rototiller_task :beaker_hostgenerator do |t|
69
69
  # This is a hack :(
70
70
  t.add_flag(:name => '', :default => 'centos7-64mdca-64.fa', :override_env => 'TEST_TARGET')
71
71
 
72
- t.add_flag(:name => '--global-config', :default => '{forge_host=forge-aio01-petest.puppetlabs.com}', :override_env => 'BHG_GLOBAL_CONFIG')
72
+ t.add_flag(:name => '--global-config', :default => '{forge_host=forgeapi.puppet.com}', :override_env => 'BHG_GLOBAL_CONFIG')
73
73
  end
74
74
  end
75
75
 
@@ -1,4 +1,4 @@
1
- $git_package = $osfamily ? {
1
+ $git_package = $facts['os']['family'] ? {
2
2
  'Debian' => 'git-core',
3
3
  default => 'git'
4
4
  }
@@ -4,3 +4,6 @@ test_name 'CODEMGMT-20 - C48 - Install Puppet Enterprise'
4
4
 
5
5
  step 'Install PE'
6
6
  install_pe
7
+
8
+ step 'Stop puppet service to avoid running into existing agent runs'
9
+ on(hosts, puppet('resource service puppet ensure=stopped'))
@@ -23,9 +23,6 @@ pe_version = get_puppet_version(master)
23
23
  fail_test('This pre-suite requires PE 3.7 or above!') if pe_version < 3.7
24
24
 
25
25
  #Setup
26
- step 'Stub Forge on Master'
27
- stub_forge_on(master)
28
-
29
26
  step 'Read module path'
30
27
  on(master, puppet('config print basemodulepath')) do |result|
31
28
  (result.stdout.include? ':') ? separator = ':' : separator = ';'
@@ -19,7 +19,7 @@ r10k_config_bak_path = "#{r10k_config_path}.bak"
19
19
 
20
20
  puppetfile =<<-EOS
21
21
  mod 'motd',
22
- :git => 'https://github.com/puppetlabs/puppetlabs-motd'
22
+ :git => 'https://github.com/puppetlabs/puppetlabs-motd', :branch => 'main'
23
23
  EOS
24
24
 
25
25
  proxy_env_value = 'http://ferritsarebest.net:3219'
@@ -36,7 +36,7 @@ sources:
36
36
  CONF
37
37
 
38
38
  teardown do
39
- master.clear_env_var('HTTP_PROXY')
39
+ master.clear_env_var('HTTPS_PROXY')
40
40
 
41
41
  step 'Restore Original "r10k" Config'
42
42
  on(master, "mv #{r10k_config_bak_path} #{r10k_config_path}")
@@ -45,7 +45,7 @@ teardown do
45
45
  clean_up_r10k(master, last_commit, git_environments_path)
46
46
  end
47
47
 
48
- master.add_env_var('HTTP_PROXY', proxy_env_value)
48
+ master.add_env_var('HTTPS_PROXY', proxy_env_value)
49
49
 
50
50
  step 'Backup Current "r10k" Config'
51
51
  on(master, "mv #{r10k_config_path} #{r10k_config_bak_path}")
@@ -64,7 +64,8 @@ git_add_commit_push(master, 'production', 'add Puppetfile', git_environments_pat
64
64
 
65
65
  #test
66
66
  on(master, "#{r10k_fqp} deploy environment -p", :accept_all_exit_codes => true) do |r|
67
- regex = /(Couldn't|Could not) resolve proxy.*ferritsarebest\.net/i
67
+ # Rugged as of 0.28 has a different error message than shellgit
68
+ regex = /((failed to resolve address for)|(Could not resolve proxy:)) ferritsarebest\.net/
68
69
  assert(r.exit_code == 1, 'expected error code was not observed')
69
70
  assert_match(regex, r.stderr, 'The expected error message was not observed' )
70
71
  end
@@ -6,7 +6,7 @@ test_name 'RK-110 - C88671 - Specify a bad proxy to r10k'
6
6
  confine(:to, :platform => ['el', 'sles'])
7
7
 
8
8
  #Init
9
- master_platform = fact_on(master, 'osfamily')
9
+ master_platform = fact_on(master, 'os.family')
10
10
  r10k_fqp = get_r10k_fqp(master)
11
11
 
12
12
  #Verification
@@ -6,7 +6,7 @@ test_name 'RK-110 - C87652 - Specify the proxy in the r10k.yaml'
6
6
  confine(:to, :platform => ['el', 'sles'])
7
7
 
8
8
  #Init
9
- master_platform = fact_on(master, 'osfamily')
9
+ master_platform = fact_on(master, 'os.family')
10
10
  env_path = on(master, puppet('config print environmentpath')).stdout.rstrip
11
11
  r10k_fqp = get_r10k_fqp(master)
12
12
 
@@ -50,7 +50,7 @@ forge:
50
50
  CONF
51
51
 
52
52
  #Verification
53
- squid_log_regex = /CONNECT forgeapi.puppetlabs.com:443/
53
+ squid_log_regex = /CONNECT forgeapi.puppet(labs)?.com:443/
54
54
 
55
55
  #Teardown
56
56
  teardown do
@@ -6,7 +6,7 @@ test_name 'RK-110 - C87651 - Specify a proxy in an environment variable'
6
6
  confine(:to, :platform => ['el', 'sles'])
7
7
 
8
8
  #Init
9
- master_platform = fact_on(master, 'osfamily')
9
+ master_platform = fact_on(master, 'os.family')
10
10
  r10k_fqp = get_r10k_fqp(master)
11
11
 
12
12
  case master_platform
@@ -21,7 +21,7 @@ remove_squid = "#{pkg_manager} remove -y squid"
21
21
  squid_log = "/var/log/squid/access.log"
22
22
 
23
23
  #Verification
24
- squid_log_regex = /CONNECT forgeapi.puppetlabs.com:443/
24
+ squid_log_regex = /CONNECT forgeapi.puppet(labs)?.com:443/
25
25
 
26
26
  #Teardown
27
27
  teardown do
@@ -10,12 +10,12 @@ confine(:to, :platform => ['el', 'ubuntu', 'sles'])
10
10
 
11
11
  if ENV['GIT_PROVIDER'] == 'shellgit'
12
12
  skip_test('Skipping test because removing Git from the system affects other "shellgit" tests.')
13
- elsif fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
13
+ elsif fact_on(master, 'os.family') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
14
14
  skip_test('This version of EL is not supported by this test case!')
15
15
  end
16
16
 
17
17
  #Init
18
- master_platform = fact_on(master, 'osfamily')
18
+ master_platform = fact_on(master, 'os.family')
19
19
  master_certname = on(master, puppet('config', 'print', 'certname')).stdout.rstrip
20
20
  env_path = on(master, puppet('config print environmentpath')).stdout.rstrip
21
21
  r10k_fqp = get_r10k_fqp(master)
@@ -87,7 +87,7 @@ step 'Remove "git" Package from System'
87
87
  if master_platform == 'RedHat'
88
88
  on(master, 'yum remove -y git')
89
89
  elsif master_platform == 'Debian'
90
- if fact_on(master, "operatingsystemmajrelease") == '10.04'
90
+ if fact_on(master, "os.release.major") == '10.04'
91
91
  on(master, 'apt-get remove -y git-core')
92
92
  else
93
93
  on(master, 'apt-get remove -y git')
@@ -8,12 +8,12 @@ confine(:to, :platform => ['el', 'ubuntu', 'sles'])
8
8
 
9
9
  if ENV['GIT_PROVIDER'] == 'shellgit'
10
10
  skip_test('Skipping test because removing Git from the system affects other "shellgit" tests.')
11
- elsif fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
11
+ elsif fact_on(master, 'os.family') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
12
12
  skip_test('This version of EL is not supported by this test case!')
13
13
  end
14
14
 
15
15
  #Init
16
- master_platform = fact_on(master, 'osfamily')
16
+ master_platform = fact_on(master, 'os.family')
17
17
  master_certname = on(master, puppet('config', 'print', 'certname')).stdout.rstrip
18
18
  env_path = on(master, puppet('config print environmentpath')).stdout.rstrip
19
19
  r10k_fqp = get_r10k_fqp(master)
@@ -86,7 +86,7 @@ step 'Remove "git" Package from System'
86
86
  if master_platform == 'RedHat'
87
87
  on(master, 'yum remove -y git')
88
88
  elsif master_platform == 'Debian'
89
- if fact_on(master, "operatingsystemmajrelease") == '10.04'
89
+ if fact_on(master, "os.release.major") == '10.04'
90
90
  on(master, 'apt-get remove -y git-core')
91
91
  else
92
92
  on(master, 'apt-get remove -y git')
@@ -46,9 +46,6 @@ teardown do
46
46
  end
47
47
 
48
48
  #Setup
49
- step 'Stub Forge on Master'
50
- stub_forge_on(master)
51
-
52
49
  step 'Inject New "site.pp" to the "production" Environment'
53
50
  inject_site_pp(master, site_pp_path, site_pp)
54
51
 
@@ -47,9 +47,6 @@ teardown do
47
47
  end
48
48
 
49
49
  #Setup
50
- step 'Stub Forge on Master'
51
- stub_forge_on(master)
52
-
53
50
  step 'Inject New "site.pp" to the "production" Environment'
54
51
  inject_site_pp(master, site_pp_path, site_pp)
55
52