puppet 6.23.0-universal-darwin → 6.24.0-universal-darwin

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet might be problematic. Click here for more details.

Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +5 -5
  3. data/Gemfile.lock +8 -8
  4. data/README.md +4 -4
  5. data/ext/project_data.yaml +1 -0
  6. data/lib/puppet/application/filebucket.rb +1 -0
  7. data/lib/puppet/application/resource.rb +15 -2
  8. data/lib/puppet/application/ssl.rb +1 -0
  9. data/lib/puppet/environments.rb +10 -0
  10. data/lib/puppet/face/help/action.erb +1 -0
  11. data/lib/puppet/face/help/face.erb +1 -0
  12. data/lib/puppet/face/node/clean.rb +11 -0
  13. data/lib/puppet/file_system/file_impl.rb +1 -1
  14. data/lib/puppet/file_system/windows.rb +2 -2
  15. data/lib/puppet/forge.rb +3 -3
  16. data/lib/puppet/functions/empty.rb +8 -0
  17. data/lib/puppet/functions/strftime.rb +1 -0
  18. data/lib/puppet/functions/unwrap.rb +17 -2
  19. data/lib/puppet/indirector/resource/ral.rb +6 -1
  20. data/lib/puppet/interface/documentation.rb +1 -0
  21. data/lib/puppet/module_tool/applications/installer.rb +4 -0
  22. data/lib/puppet/module_tool/errors/shared.rb +17 -0
  23. data/lib/puppet/pops/types/type_mismatch_describer.rb +1 -1
  24. data/lib/puppet/provider/exec/posix.rb +16 -4
  25. data/lib/puppet/provider/package/pip.rb +15 -3
  26. data/lib/puppet/provider/parsedfile.rb +3 -0
  27. data/lib/puppet/settings.rb +30 -7
  28. data/lib/puppet/type/exec.rb +16 -3
  29. data/lib/puppet/type/file/mode.rb +6 -0
  30. data/lib/puppet/type/tidy.rb +1 -1
  31. data/lib/puppet/util/symbolic_file_mode.rb +29 -17
  32. data/lib/puppet/util/windows/sid.rb +3 -1
  33. data/lib/puppet/version.rb +1 -1
  34. data/lib/puppet.rb +3 -3
  35. data/locales/puppet.pot +154 -134
  36. data/man/man5/puppet.conf.5 +2 -2
  37. data/man/man8/puppet-agent.8 +1 -1
  38. data/man/man8/puppet-apply.8 +1 -1
  39. data/man/man8/puppet-catalog.8 +9 -9
  40. data/man/man8/puppet-config.8 +1 -1
  41. data/man/man8/puppet-describe.8 +1 -1
  42. data/man/man8/puppet-device.8 +1 -1
  43. data/man/man8/puppet-doc.8 +1 -1
  44. data/man/man8/puppet-epp.8 +1 -1
  45. data/man/man8/puppet-facts.8 +8 -8
  46. data/man/man8/puppet-filebucket.8 +1 -1
  47. data/man/man8/puppet-generate.8 +1 -1
  48. data/man/man8/puppet-help.8 +1 -1
  49. data/man/man8/puppet-key.8 +7 -7
  50. data/man/man8/puppet-lookup.8 +1 -1
  51. data/man/man8/puppet-man.8 +1 -1
  52. data/man/man8/puppet-module.8 +1 -1
  53. data/man/man8/puppet-node.8 +5 -5
  54. data/man/man8/puppet-parser.8 +1 -1
  55. data/man/man8/puppet-plugin.8 +1 -1
  56. data/man/man8/puppet-report.8 +5 -5
  57. data/man/man8/puppet-resource.8 +1 -1
  58. data/man/man8/puppet-script.8 +1 -1
  59. data/man/man8/puppet-ssl.8 +1 -1
  60. data/man/man8/puppet-status.8 +4 -4
  61. data/man/man8/puppet.8 +2 -2
  62. data/spec/fixtures/ssl/127.0.0.1-key.pem +106 -106
  63. data/spec/fixtures/ssl/127.0.0.1.pem +48 -48
  64. data/spec/fixtures/ssl/bad-basic-constraints.pem +54 -54
  65. data/spec/fixtures/ssl/bad-int-basic-constraints.pem +51 -51
  66. data/spec/fixtures/ssl/ca.pem +52 -52
  67. data/spec/fixtures/ssl/crl.pem +25 -25
  68. data/spec/fixtures/ssl/ec-key.pem +11 -11
  69. data/spec/fixtures/ssl/ec.pem +32 -32
  70. data/spec/fixtures/ssl/encrypted-ec-key.pem +12 -12
  71. data/spec/fixtures/ssl/encrypted-key.pem +107 -107
  72. data/spec/fixtures/ssl/intermediate-agent-crl.pem +25 -25
  73. data/spec/fixtures/ssl/intermediate-agent.pem +54 -54
  74. data/spec/fixtures/ssl/intermediate-crl.pem +28 -28
  75. data/spec/fixtures/ssl/intermediate.pem +51 -51
  76. data/spec/fixtures/ssl/oid-key.pem +117 -0
  77. data/spec/fixtures/ssl/oid.pem +69 -0
  78. data/spec/fixtures/ssl/pluto-key.pem +106 -106
  79. data/spec/fixtures/ssl/pluto.pem +50 -50
  80. data/spec/fixtures/ssl/request-key.pem +106 -106
  81. data/spec/fixtures/ssl/request.pem +45 -45
  82. data/spec/fixtures/ssl/revoked-key.pem +106 -106
  83. data/spec/fixtures/ssl/revoked.pem +49 -49
  84. data/spec/fixtures/ssl/signed-key.pem +106 -106
  85. data/spec/fixtures/ssl/signed.pem +47 -47
  86. data/spec/fixtures/ssl/tampered-cert.pem +49 -49
  87. data/spec/fixtures/ssl/tampered-csr.pem +45 -45
  88. data/spec/fixtures/ssl/trusted_oid_mapping.yaml +5 -0
  89. data/spec/fixtures/ssl/unknown-127.0.0.1-key.pem +106 -106
  90. data/spec/fixtures/ssl/unknown-127.0.0.1.pem +48 -48
  91. data/spec/fixtures/ssl/unknown-ca-key.pem +106 -106
  92. data/spec/fixtures/ssl/unknown-ca.pem +52 -52
  93. data/spec/integration/application/filebucket_spec.rb +11 -0
  94. data/spec/integration/application/module_spec.rb +21 -0
  95. data/spec/integration/application/resource_spec.rb +35 -1
  96. data/spec/integration/application/ssl_spec.rb +20 -0
  97. data/spec/integration/environments/settings_interpolation_spec.rb +0 -4
  98. data/spec/integration/indirector/facts/facter_spec.rb +90 -36
  99. data/spec/integration/type/exec_spec.rb +70 -45
  100. data/spec/lib/puppet/test_ca.rb +5 -0
  101. data/spec/lib/puppet_spec/settings.rb +1 -0
  102. data/spec/unit/environments_spec.rb +35 -0
  103. data/spec/unit/file_system_spec.rb +6 -0
  104. data/spec/unit/functions/assert_type_spec.rb +1 -1
  105. data/spec/unit/functions/empty_spec.rb +10 -0
  106. data/spec/unit/functions/unwrap_spec.rb +8 -0
  107. data/spec/unit/functions4_spec.rb +2 -2
  108. data/spec/unit/indirector/resource/ral_spec.rb +40 -75
  109. data/spec/unit/module_tool/applications/installer_spec.rb +12 -0
  110. data/spec/unit/parser/templatewrapper_spec.rb +12 -2
  111. data/spec/unit/provider/package/pip_spec.rb +37 -0
  112. data/spec/unit/provider/parsedfile_spec.rb +10 -0
  113. data/spec/unit/settings_spec.rb +97 -56
  114. data/spec/unit/type/exec_spec.rb +76 -29
  115. data/spec/unit/type/file/source_spec.rb +4 -4
  116. data/spec/unit/type/tidy_spec.rb +7 -0
  117. data/spec/unit/util/windows/sid_spec.rb +39 -4
  118. data/tasks/generate_cert_fixtures.rake +10 -1
  119. metadata +12 -3
@@ -1,117 +1,117 @@
1
1
  RSA Private-Key: (2048 bit, 2 primes)
2
2
  modulus:
3
- 00:ea:16:4c:26:71:56:ac:35:bb:2b:f6:1b:18:58:
4
- 16:0f:1c:39:3f:4d:02:e4:b2:a7:8b:bd:fe:99:57:
5
- f2:a5:a8:15:01:79:0d:1d:f6:d9:12:db:d5:26:a2:
6
- f6:58:af:4b:2c:aa:46:7a:53:63:9f:1f:1a:9e:1c:
7
- fc:9a:8e:20:c8:c8:c8:db:4d:50:8d:4e:19:83:a1:
8
- 9d:54:49:26:7b:3a:e0:77:1d:7d:88:01:80:46:32:
9
- 70:47:16:08:71:de:12:94:67:fd:71:1f:41:56:93:
10
- 15:91:68:bd:05:3b:67:96:1f:7a:4d:d5:1e:b6:ac:
11
- 41:1f:f0:ce:d3:2d:96:d9:7c:ad:cd:be:b3:32:66:
12
- 18:03:2c:83:98:f1:e8:96:6f:85:0f:e1:1f:93:d0:
13
- f9:09:43:8c:b1:ea:43:26:32:a5:c6:d2:32:75:2d:
14
- ed:72:9d:bf:3a:bb:f3:4e:d0:0c:ac:ba:6b:fd:7f:
15
- 66:d8:12:40:4e:49:e7:d4:ec:70:03:71:37:cb:5e:
16
- cc:d3:4f:f3:d2:cc:e2:39:eb:79:6c:71:e5:d1:0e:
17
- 45:4c:7a:3d:6f:39:e8:16:e7:de:60:eb:01:e7:80:
18
- 4e:42:1d:1c:33:0a:eb:f9:10:2c:5c:ed:0c:58:0b:
19
- 8c:fd:6d:f4:19:49:8a:a2:81:ab:04:b0:cb:7a:61:
20
- 1f:d3
3
+ 00:b4:79:b0:16:e7:9b:22:20:17:4b:36:87:eb:38:
4
+ 03:1f:df:88:00:1b:37:40:5e:1f:1d:89:1f:3e:f4:
5
+ fa:69:90:9c:d8:68:df:c8:71:07:07:4e:01:1d:f0:
6
+ a8:9a:67:94:af:47:f2:b8:60:f5:ca:fb:bb:ac:7c:
7
+ 23:58:59:bc:95:b0:ad:b2:c7:a0:28:e1:4f:1e:c4:
8
+ ef:5f:2b:a3:4e:f2:6a:95:c8:4f:f5:af:bc:fa:36:
9
+ 10:f9:a9:62:7a:04:d5:01:cd:9b:ba:97:32:4c:99:
10
+ e5:88:fc:05:84:34:f5:4a:f2:f1:ec:04:c7:c7:63:
11
+ 28:eb:9e:ee:91:cd:95:8b:60:9e:5f:51:a1:2b:5a:
12
+ cd:02:b2:a7:52:6c:d1:8a:ab:b1:c4:52:cd:10:ce:
13
+ 9e:56:24:6c:63:84:2c:15:6c:c0:62:ea:c2:d9:04:
14
+ 88:e2:e2:0f:ff:ce:87:51:eb:77:50:83:33:1c:c7:
15
+ 88:5b:08:d4:3a:22:2f:13:a6:89:f7:4b:a0:2e:30:
16
+ c1:12:7a:bb:37:1f:aa:87:56:44:2f:5a:63:4b:b2:
17
+ 36:f6:29:5e:b8:67:52:6f:63:2a:ad:3d:c3:a5:45:
18
+ af:97:e9:85:9e:76:1e:51:9c:68:36:58:32:ad:cf:
19
+ 3e:4d:f0:92:e2:ad:d6:f0:e1:5d:af:08:ca:2a:82:
20
+ 0e:a3
21
21
  publicExponent: 65537 (0x10001)
22
22
  privateExponent:
23
- 00:b5:87:11:0a:86:bd:d5:d1:dd:12:1c:49:aa:b9:
24
- 34:72:07:4b:05:a1:ac:ea:b8:f8:60:cf:b7:8e:26:
25
- bb:8e:67:27:d2:fa:92:87:78:13:a2:22:43:cb:30:
26
- 78:a5:11:5a:d4:8a:3f:19:41:6d:71:c9:e7:14:52:
27
- 1a:39:a8:9a:17:da:4c:98:73:fe:51:76:0d:27:1c:
28
- bf:2a:cb:87:41:ec:c8:80:d6:a7:b0:3e:a9:c0:c6:
29
- 00:77:bf:c8:50:b5:0b:e7:76:34:fd:f2:64:f2:c4:
30
- 20:e7:a0:37:64:c5:4a:71:0a:7c:07:bb:8b:93:d1:
31
- 44:b7:86:40:7d:57:4f:31:db:98:22:21:d5:f3:b0:
32
- 57:4e:f6:c9:a4:08:43:3d:d8:ce:59:aa:a7:1f:da:
33
- 93:40:11:cf:8c:14:9d:f3:10:9f:cf:0a:d0:cf:2b:
34
- b6:ea:e5:3c:92:9f:c2:6f:24:86:71:15:61:49:7b:
35
- 77:48:c1:d2:13:67:1a:f7:c0:89:3d:3d:87:cf:6e:
36
- 5c:e4:46:28:fe:33:89:3c:09:fc:50:3c:b7:a9:25:
37
- 3c:f2:a5:a0:e1:e0:9c:d1:4a:3e:11:5b:10:1a:33:
38
- 29:c7:ca:0b:ac:bf:c2:be:90:27:1f:ef:d7:d2:ca:
39
- 5f:37:b3:b3:b9:3a:35:87:be:ca:c3:f7:59:03:f7:
40
- 7e:f1
23
+ 00:9b:ce:8e:a2:47:93:5b:b3:be:c8:75:2c:84:7a:
24
+ 97:df:f5:78:11:37:6d:cc:c9:35:2d:a7:8a:ed:2c:
25
+ 4b:df:c5:34:53:74:be:f5:e9:f6:7a:6c:f2:73:e9:
26
+ a7:75:9d:c4:f4:4a:36:16:cd:c6:85:56:2c:a0:ed:
27
+ 8f:0a:20:76:b9:f8:8d:0c:d2:60:c7:ca:34:27:49:
28
+ 37:aa:bf:1e:be:f2:73:e8:19:c6:46:42:50:f0:e6:
29
+ aa:63:0f:c3:ef:b9:aa:37:63:4d:75:9a:40:97:77:
30
+ 29:7d:c8:ad:ee:84:55:dc:3d:bf:73:d6:70:af:07:
31
+ 41:75:a1:81:2f:29:00:59:11:3e:98:49:12:ec:e9:
32
+ 9d:ca:ca:71:1e:bc:2f:9f:13:9c:5c:01:54:6d:69:
33
+ 6b:85:6f:2a:2f:96:a5:38:37:e3:0c:7d:9f:6c:12:
34
+ a4:13:1b:bf:cb:35:16:88:a6:c6:47:6f:0b:61:22:
35
+ c2:de:00:7a:b1:70:f6:1e:01:99:70:87:1d:23:21:
36
+ 0f:bf:41:59:16:75:40:8e:7c:50:73:bb:ce:17:7c:
37
+ 07:ec:f2:83:12:95:4e:6a:ac:79:89:8f:32:58:61:
38
+ af:55:df:30:1d:3a:d1:f3:fa:ee:74:27:73:62:f8:
39
+ c4:e2:b2:e3:a5:64:e4:6b:4b:86:13:44:00:3d:51:
40
+ 45:d9
41
41
  prime1:
42
- 00:f7:83:23:4b:6f:82:af:b6:7a:0f:1f:1a:05:21:
43
- d1:a1:84:d1:07:24:db:dd:64:9f:16:84:eb:c4:bf:
44
- ec:cf:2f:69:92:21:b8:88:05:24:8c:bc:c1:db:d0:
45
- 38:53:bf:43:dc:5b:5e:42:7b:ad:de:d6:3a:04:9e:
46
- a5:a7:f0:0b:2e:4e:2a:20:6f:95:7d:f0:be:ff:12:
47
- c6:f4:d2:ca:39:e1:a5:c9:34:58:3b:3d:40:c1:88:
48
- 63:c3:cc:87:02:25:70:88:58:df:ec:b6:d6:0c:9e:
49
- 15:2d:57:e1:34:e9:2e:ac:51:cf:c4:83:dd:b6:11:
50
- 44:23:b8:95:50:6c:40:ae:ed
42
+ 00:da:9b:01:67:9b:20:66:3b:69:da:ce:9e:ac:fa:
43
+ 03:84:8e:da:fb:04:8d:9b:f0:ff:c9:55:a4:26:c4:
44
+ b8:e3:1c:47:7d:fb:f5:2e:f6:50:22:75:63:ac:b7:
45
+ 2d:f0:d5:75:0f:04:d5:e6:ee:75:9c:15:9f:e4:5c:
46
+ 76:2c:0b:df:7f:9d:5f:16:3a:8a:82:36:6b:c9:fc:
47
+ 49:e1:83:fe:cf:85:e1:fc:80:60:06:33:b2:e6:54:
48
+ 6c:ba:29:6e:e4:3a:ee:d7:e6:0a:d6:bd:27:5d:40:
49
+ e0:89:97:89:2a:3e:cf:a5:ec:ae:5f:db:df:3e:e8:
50
+ c4:b0:9a:77:96:4d:a1:5e:5d
51
51
  prime2:
52
- 00:f2:1d:4d:7f:ee:9e:a5:0f:c9:73:a5:4d:fe:7c:
53
- 0a:94:8e:c6:77:c8:ec:53:e0:03:f5:65:42:39:40:
54
- 26:02:46:8f:05:3d:b9:ba:f2:29:8a:b4:3c:60:37:
55
- 85:ee:e0:ba:e2:35:69:be:84:95:53:f3:fd:b8:b9:
56
- 5b:51:76:10:2a:f8:b2:54:58:ab:e5:89:18:46:df:
57
- 08:c0:4f:57:56:cc:1c:f2:53:e6:b6:91:c0:bd:9c:
58
- c6:a8:8c:bf:a0:d4:b6:86:37:50:f9:69:78:95:bd:
59
- 83:6f:5e:64:1a:b7:75:31:2c:a2:c5:c9:b7:b7:80:
60
- c4:61:ac:fd:f7:c7:88:71:bf
52
+ 00:d3:58:ea:f8:aa:9b:e0:95:aa:81:27:f4:1a:5e:
53
+ ae:60:bf:0f:37:be:b8:64:78:d4:ce:47:7e:21:82:
54
+ 49:a7:f6:ff:15:62:1c:87:e8:c2:d5:d2:9b:d2:21:
55
+ 87:36:36:66:bc:03:23:8f:5e:09:2b:4f:a2:8a:7f:
56
+ ea:c8:ea:fb:21:54:4a:ba:b8:14:74:59:50:fa:31:
57
+ cf:31:c3:22:32:4a:db:05:b6:3c:f5:9f:6b:cd:3c:
58
+ 6b:1b:48:b0:b5:13:5d:c7:b6:13:4e:09:85:e2:db:
59
+ 38:ac:ee:27:42:d8:49:47:9e:0c:59:95:97:e7:c2:
60
+ 78:0a:65:c9:ee:29:e8:50:ff
61
61
  exponent1:
62
- 3c:63:9c:9a:ed:2c:1f:9f:10:0c:dc:73:c6:c8:c7:
63
- 92:f7:0a:e1:09:57:33:9f:37:49:91:48:cd:0a:5e:
64
- c6:f6:34:75:d9:10:62:ef:8e:49:60:4c:94:4b:2b:
65
- 53:13:99:85:0c:2d:e5:5e:b3:bf:68:d9:63:03:2a:
66
- 3b:dd:4f:7d:0e:c9:2c:7c:cd:26:9b:34:9e:9b:80:
67
- 3b:7f:aa:a3:90:b0:98:74:d3:0a:31:19:b9:9e:83:
68
- 68:e4:60:14:5f:fa:22:ea:3c:48:4f:1b:ce:9c:4b:
69
- 62:72:cc:99:d2:42:f6:fc:47:0b:15:79:64:d0:b5:
70
- a5:59:85:e4:c7:64:c8:c9
62
+ 50:f7:12:19:1e:72:6c:8a:da:d4:e8:ac:0a:62:fb:
63
+ 04:90:a8:78:4a:22:6c:bc:60:f0:5f:e0:d1:5f:11:
64
+ 1f:44:ad:11:f3:4c:c7:1d:01:67:11:d5:5d:f5:e6:
65
+ 75:09:8a:36:8a:d2:f2:9a:25:43:2f:1b:2e:48:34:
66
+ 98:71:b9:50:99:a7:cb:22:d9:84:0a:c5:f7:64:92:
67
+ b4:8c:df:c6:5a:ce:ed:67:5a:a9:51:62:94:3e:76:
68
+ 9a:a8:97:e2:be:15:12:2f:a8:9a:0a:2a:d7:36:1d:
69
+ 33:b8:c5:5b:b9:31:cd:41:90:ff:fd:fe:7c:5d:57:
70
+ e4:15:01:ef:d0:46:d1:1d
71
71
  exponent2:
72
- 00:d5:ba:32:58:d5:cf:6c:0c:94:9c:26:f7:c3:c7:
73
- c2:1b:44:32:45:39:b4:0d:92:ba:4b:dd:38:69:8b:
74
- 8c:42:04:01:6a:f2:03:4b:d9:4b:fc:aa:80:85:bb:
75
- 5d:da:f2:bd:66:c5:19:f4:d9:db:6c:81:fd:9f:1c:
76
- d9:54:fe:f0:e4:ce:27:b6:37:94:7f:0a:d7:c8:70:
77
- 48:ac:63:1d:c9:7c:63:ad:33:8d:7d:eb:0a:87:17:
78
- a7:72:d0:d4:b4:e8:31:bc:27:86:ae:b5:81:82:46:
79
- 0a:89:bc:7c:87:ed:1d:61:ec:72:40:41:82:91:55:
80
- f5:85:f8:0d:35:b7:09:66:c7
72
+ 00:91:f0:d9:b8:c2:df:06:b3:72:dc:e3:00:fd:e0:
73
+ 99:9b:76:f3:84:33:ef:d2:79:59:c1:e3:be:66:57:
74
+ 38:93:82:cc:dc:30:36:b1:66:fa:7b:7a:86:5d:11:
75
+ 07:f4:58:96:92:87:bc:5b:78:bc:ee:2a:7c:7c:15:
76
+ 1e:c4:84:f6:cb:2a:10:bc:64:f6:c2:ed:16:2c:de:
77
+ 8e:4b:b7:8a:7a:9e:14:26:1a:94:77:ac:11:5d:d4:
78
+ b5:c5:4e:69:af:70:63:16:d0:54:fe:53:37:1f:d2:
79
+ ef:8d:02:9b:1b:de:8c:a3:a6:b0:b2:7f:c9:38:a1:
80
+ a2:10:d3:ff:1f:b5:d2:95:73
81
81
  coefficient:
82
- 3d:9b:b0:01:4b:43:c3:bf:50:86:d8:c8:52:d4:4d:
83
- 7a:05:40:2d:20:50:d4:4a:a9:33:a3:b8:d1:fc:6b:
84
- eb:be:c9:df:44:f7:70:51:05:d8:58:d2:a0:d8:e0:
85
- 36:fc:56:43:25:0f:2a:b6:41:a2:25:99:01:8b:d5:
86
- 93:f4:d6:04:ae:4f:40:44:f6:f2:85:a8:9f:35:99:
87
- 63:9d:ef:f9:f5:3e:5d:07:3c:96:23:a6:26:8c:28:
88
- d1:60:cd:13:18:3b:41:e9:30:31:83:50:73:91:ba:
89
- 5a:a3:69:d1:6e:a8:40:f2:72:df:e8:88:73:9c:a7:
90
- ce:e7:9f:11:97:e5:04:6d
82
+ 00:bb:0a:77:ec:98:3c:fe:92:2b:66:06:7a:2a:80:
83
+ a6:41:bb:d8:60:7e:fa:90:41:f3:4d:e4:4e:95:1e:
84
+ 48:19:33:49:9a:24:09:6c:17:98:ce:72:09:ad:96:
85
+ 43:3a:16:6c:16:cd:38:39:13:58:3e:dc:89:98:08:
86
+ 38:d3:e5:d8:c1:34:8c:71:a9:88:a1:79:23:af:ad:
87
+ 94:04:7a:ca:20:82:76:af:84:2a:43:c4:d6:96:b0:
88
+ c8:f7:e6:be:4c:e8:d8:7c:bb:79:7a:c8:d9:32:72:
89
+ 81:63:9f:2c:45:33:e3:6a:6a:42:3d:d6:19:b4:0d:
90
+ 0d:15:1b:44:67:47:ef:b6:2e
91
91
  -----BEGIN RSA PRIVATE KEY-----
92
- MIIEpAIBAAKCAQEA6hZMJnFWrDW7K/YbGFgWDxw5P00C5LKni73+mVfypagVAXkN
93
- HfbZEtvVJqL2WK9LLKpGelNjnx8anhz8mo4gyMjI201QjU4Zg6GdVEkmezrgdx19
94
- iAGARjJwRxYIcd4SlGf9cR9BVpMVkWi9BTtnlh96TdUetqxBH/DO0y2W2Xytzb6z
95
- MmYYAyyDmPHolm+FD+Efk9D5CUOMsepDJjKlxtIydS3tcp2/OrvzTtAMrLpr/X9m
96
- 2BJATknn1OxwA3E3y17M00/z0sziOet5bHHl0Q5FTHo9bznoFufeYOsB54BOQh0c
97
- Mwrr+RAsXO0MWAuM/W30GUmKooGrBLDLemEf0wIDAQABAoIBAQC1hxEKhr3V0d0S
98
- HEmquTRyB0sFoazquPhgz7eOJruOZyfS+pKHeBOiIkPLMHilEVrUij8ZQW1xyecU
99
- Uho5qJoX2kyYc/5Rdg0nHL8qy4dB7MiA1qewPqnAxgB3v8hQtQvndjT98mTyxCDn
100
- oDdkxUpxCnwHu4uT0US3hkB9V08x25giIdXzsFdO9smkCEM92M5Zqqcf2pNAEc+M
101
- FJ3zEJ/PCtDPK7bq5TySn8JvJIZxFWFJe3dIwdITZxr3wIk9PYfPblzkRij+M4k8
102
- CfxQPLepJTzypaDh4JzRSj4RWxAaMynHygusv8K+kCcf79fSyl83s7O5OjWHvsrD
103
- 91kD937xAoGBAPeDI0tvgq+2eg8fGgUh0aGE0Qck291knxaE68S/7M8vaZIhuIgF
104
- JIy8wdvQOFO/Q9xbXkJ7rd7WOgSepafwCy5OKiBvlX3wvv8SxvTSyjnhpck0WDs9
105
- QMGIY8PMhwIlcIhY3+y21gyeFS1X4TTpLqxRz8SD3bYRRCO4lVBsQK7tAoGBAPId
106
- TX/unqUPyXOl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oe8W3i87ip8fBUexIT2yyoQvGT2wu0WLN6O
113
+ S7eKep4UJhqUd6wRXdS1xU5pr3BjFtBU/lM3H9LvjQKbG96Mo6awsn/JOKGiENP/
114
+ H7XSlXMCgYEAuwp37Jg8/pIrZgZ6KoCmQbvYYH76kEHzTeROlR5IGTNJmiQJbBeY
115
+ znIJrZZDOhZsFs04ORNYPtyJmAg40+XYwTSMcamIoXkjr62UBHrKIIJ2r4QqQ8TW
116
+ lrDI9+a+TOjYfLt5esjZMnKBY58sRTPjampCPdYZtA0NFRtEZ0fvti4=
117
117
  -----END RSA PRIVATE KEY-----
@@ -6,30 +6,30 @@ Certificate:
6
6
  Issuer: CN=Unknown CA
7
7
  Validity
8
8
  Not Before: Jan 1 00:00:00 1970 GMT
9
- Not After : Apr 18 18:46:23 2031 GMT
9
+ Not After : Jun 15 01:19:37 2031 GMT
10
10
  Subject: CN=Unknown CA
11
11
  Subject Public Key Info:
12
12
  Public Key Algorithm: rsaEncryption
13
13
  RSA Public-Key: (2048 bit)
14
14
  Modulus:
15
- 00:ea:16:4c:26:71:56:ac:35:bb:2b:f6:1b:18:58:
16
- 16:0f:1c:39:3f:4d:02:e4:b2:a7:8b:bd:fe:99:57:
17
- f2:a5:a8:15:01:79:0d:1d:f6:d9:12:db:d5:26:a2:
18
- f6:58:af:4b:2c:aa:46:7a:53:63:9f:1f:1a:9e:1c:
19
- fc:9a:8e:20:c8:c8:c8:db:4d:50:8d:4e:19:83:a1:
20
- 9d:54:49:26:7b:3a:e0:77:1d:7d:88:01:80:46:32:
21
- 70:47:16:08:71:de:12:94:67:fd:71:1f:41:56:93:
22
- 15:91:68:bd:05:3b:67:96:1f:7a:4d:d5:1e:b6:ac:
23
- 41:1f:f0:ce:d3:2d:96:d9:7c:ad:cd:be:b3:32:66:
24
- 18:03:2c:83:98:f1:e8:96:6f:85:0f:e1:1f:93:d0:
25
- f9:09:43:8c:b1:ea:43:26:32:a5:c6:d2:32:75:2d:
26
- ed:72:9d:bf:3a:bb:f3:4e:d0:0c:ac:ba:6b:fd:7f:
27
- 66:d8:12:40:4e:49:e7:d4:ec:70:03:71:37:cb:5e:
28
- cc:d3:4f:f3:d2:cc:e2:39:eb:79:6c:71:e5:d1:0e:
29
- 45:4c:7a:3d:6f:39:e8:16:e7:de:60:eb:01:e7:80:
30
- 4e:42:1d:1c:33:0a:eb:f9:10:2c:5c:ed:0c:58:0b:
31
- 8c:fd:6d:f4:19:49:8a:a2:81:ab:04:b0:cb:7a:61:
32
- 1f:d3
15
+ 00:b4:79:b0:16:e7:9b:22:20:17:4b:36:87:eb:38:
16
+ 03:1f:df:88:00:1b:37:40:5e:1f:1d:89:1f:3e:f4:
17
+ fa:69:90:9c:d8:68:df:c8:71:07:07:4e:01:1d:f0:
18
+ a8:9a:67:94:af:47:f2:b8:60:f5:ca:fb:bb:ac:7c:
19
+ 23:58:59:bc:95:b0:ad:b2:c7:a0:28:e1:4f:1e:c4:
20
+ ef:5f:2b:a3:4e:f2:6a:95:c8:4f:f5:af:bc:fa:36:
21
+ 10:f9:a9:62:7a:04:d5:01:cd:9b:ba:97:32:4c:99:
22
+ e5:88:fc:05:84:34:f5:4a:f2:f1:ec:04:c7:c7:63:
23
+ 28:eb:9e:ee:91:cd:95:8b:60:9e:5f:51:a1:2b:5a:
24
+ cd:02:b2:a7:52:6c:d1:8a:ab:b1:c4:52:cd:10:ce:
25
+ 9e:56:24:6c:63:84:2c:15:6c:c0:62:ea:c2:d9:04:
26
+ 88:e2:e2:0f:ff:ce:87:51:eb:77:50:83:33:1c:c7:
27
+ 88:5b:08:d4:3a:22:2f:13:a6:89:f7:4b:a0:2e:30:
28
+ c1:12:7a:bb:37:1f:aa:87:56:44:2f:5a:63:4b:b2:
29
+ 36:f6:29:5e:b8:67:52:6f:63:2a:ad:3d:c3:a5:45:
30
+ af:97:e9:85:9e:76:1e:51:9c:68:36:58:32:ad:cf:
31
+ 3e:4d:f0:92:e2:ad:d6:f0:e1:5d:af:08:ca:2a:82:
32
+ 0e:a3
33
33
  Exponent: 65537 (0x10001)
34
34
  X509v3 extensions:
35
35
  X509v3 Basic Constraints: critical
@@ -37,45 +37,45 @@ Certificate:
37
37
  X509v3 Key Usage: critical
38
38
  Certificate Sign, CRL Sign
39
39
  X509v3 Subject Key Identifier:
40
- 16:C5:98:B8:84:0B:0A:43:CB:5A:D2:E0:55:C0:64:AB:89:F8:50:FD
40
+ D0:CD:40:49:88:F6:74:BB:B4:D7:05:37:74:33:B1:C2:27:73:81:CB
41
41
  Netscape Comment:
42
42
  Puppet Server Internal Certificate
43
43
  X509v3 Authority Key Identifier:
44
- keyid:16:C5:98:B8:84:0B:0A:43:CB:5A:D2:E0:55:C0:64:AB:89:F8:50:FD
44
+ keyid:D0:CD:40:49:88:F6:74:BB:B4:D7:05:37:74:33:B1:C2:27:73:81:CB
45
45
 
46
46
  Signature Algorithm: sha256WithRSAEncryption
47
- 7d:0b:a0:2e:d4:fb:6b:29:04:d6:86:4e:89:94:4c:b5:d4:f7:
48
- 79:5a:38:95:51:9a:80:03:82:93:c8:a7:4e:93:4a:4b:41:1a:
49
- 85:f3:46:57:e1:70:50:ad:bb:4e:b9:d6:0c:00:e5:9e:4c:f7:
50
- 26:3b:88:61:27:ad:fa:39:a7:36:e1:62:87:7a:dc:7d:f9:f6:
51
- c1:ee:bc:db:f7:65:a1:b0:2a:06:ae:4b:cb:99:82:f5:8e:38:
52
- 51:ac:c9:92:33:b9:7b:50:8b:c6:72:36:d3:f2:73:7d:58:13:
53
- 00:21:4d:c6:70:9d:eb:70:58:bf:dc:34:94:7e:bc:ef:17:2d:
54
- 9d:00:bd:55:f9:48:11:c0:8f:88:ea:a8:7c:5d:fb:88:fd:8c:
55
- b4:00:1d:61:a7:4b:2a:90:ef:96:c1:28:2a:a0:95:ad:bb:b3:
56
- af:3a:d5:93:1c:54:d7:c5:5b:26:a3:24:87:df:bd:68:74:fa:
57
- e6:07:4e:13:b9:5f:54:19:ae:da:00:8c:ca:d6:ff:b7:94:6b:
58
- 4f:ff:71:ca:2b:7d:ee:7e:32:ff:03:3e:60:a4:30:d4:7d:9c:
59
- ab:97:0e:f7:80:ee:69:c0:28:a8:ec:6b:89:05:38:64:34:e8:
60
- b2:e9:f3:a1:85:e7:3d:e1:64:3c:86:e4:fd:44:4f:3b:2a:f8:
61
- d2:b4:93:22
47
+ 51:79:86:29:27:07:e5:fc:59:83:2d:15:ae:5f:c4:bc:0a:71:
48
+ 2c:71:74:20:14:ce:47:8f:cf:79:03:76:bd:df:c9:e9:7f:12:
49
+ b2:4e:5a:c5:4f:e1:0b:c3:17:44:92:37:af:10:08:75:9a:d9:
50
+ c5:0d:66:e9:24:2b:ec:00:aa:de:2f:ce:df:04:fa:49:d9:bd:
51
+ bd:5e:7b:e4:e7:1e:9e:20:d3:85:70:b4:95:b5:1d:2e:fa:0c:
52
+ b4:47:5a:38:ec:b0:bd:7e:34:5f:4d:9d:1f:81:81:8a:6c:a6:
53
+ 94:fb:f8:41:d6:a3:e4:64:3a:b7:12:4f:9e:4e:60:4a:12:a9:
54
+ d1:87:a5:a8:31:91:16:96:50:73:87:64:46:f1:f2:f9:99:80:
55
+ a2:89:e9:99:57:48:8a:56:08:d7:8d:a9:1d:69:7c:8f:73:e5:
56
+ 53:2d:28:ee:70:d7:f8:fe:41:25:3e:4c:6c:de:31:3f:9e:7d:
57
+ c4:f0:67:e9:fc:a3:02:c7:39:19:f5:6f:59:6a:ca:bb:8c:c8:
58
+ e6:01:43:ad:95:67:3f:c0:d6:35:18:b1:6e:9f:e1:ce:c7:be:
59
+ 35:f0:7b:65:e7:79:82:c3:b6:f7:48:28:98:d0:5c:3c:97:f3:
60
+ 69:b3:5e:c3:a0:c5:82:02:6f:20:d0:1b:cd:43:b0:85:7e:4f:
61
+ 71:b9:f3:8f
62
62
  -----BEGIN CERTIFICATE-----
63
63
  MIIDPTCCAiWgAwIBAgIBADANBgkqhkiG9w0BAQsFADAVMRMwEQYDVQQDDApVbmtu
64
- b3duIENBMB4XDTcwMDEw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T3G5848=
81
81
  -----END CERTIFICATE-----
@@ -126,6 +126,17 @@ describe "puppet filebucket", unless: Puppet::Util::Platform.jruby? do
126
126
  end
127
127
  end
128
128
 
129
+ it "lists the local filebucket even if the environment doesn't exist locally" do
130
+ Puppet[:environment] = 'doesnotexist'
131
+ Puppet::FileSystem.mkpath(Puppet[:clientbucketdir])
132
+
133
+ filebucket.command_line.args = ['backup', '--local', backup_file]
134
+ expect {
135
+ result = filebucket.run
136
+ expect(result).to eq([backup_file])
137
+ }.to output(/Computing checksum on file/).to_stdout
138
+ end
139
+
129
140
  context 'diff', unless: Puppet::Util::Platform.windows? || Puppet::Util::Platform.jruby? do
130
141
  context 'using a remote bucket' do
131
142
  it 'outputs a diff between a local and remote file' do
@@ -65,4 +65,25 @@ describe 'puppet module', unless: Puppet::Util::Platform.jruby? do
65
65
  .and output(%r{Unable to verify the SSL certificate}).to_stderr
66
66
  end
67
67
  end
68
+
69
+ it 'prints the complete URL it tried to connect to' do
70
+ response_proc = -> (req, res) { res.status = 404 }
71
+
72
+ # create a temp cacert bundle
73
+ ssl_file = tmpfile('systemstore')
74
+ File.write(ssl_file, server.ca_cert)
75
+
76
+ Puppet::Util.withenv("SSL_CERT_FILE" => ssl_file) do
77
+ server.start_server(response_proc: response_proc) do |port|
78
+ Puppet[:module_repository] = "https://127.0.0.1:#{port}/bogus_test/puppet"
79
+
80
+ expect {
81
+ app.command_line.args = ['install', 'puppetlabs-bacula']
82
+ app.run
83
+ }.to exit_with(1)
84
+ .and output(%r{Notice: Downloading from https://127.0.0.1:#{port}}).to_stdout
85
+ .and output(%r{https://127.0.0.1:#{port}/bogus_test/puppet/v3/releases}).to_stderr
86
+ end
87
+ end
88
+ end
68
89
  end
@@ -6,7 +6,41 @@ describe "puppet resource", unless: Puppet::Util::Platform.jruby? do
6
6
 
7
7
  let(:resource) { Puppet::Application[:resource] }
8
8
 
9
- describe "when handling file and tidy types" do
9
+ context 'when given an invalid environment' do
10
+ before { Puppet[:environment] = 'badenv' }
11
+
12
+ it 'falls back to the default environment' do
13
+ Puppet[:log_level] = 'debug'
14
+
15
+ expect {
16
+ resource.run
17
+ }.to exit_with(1)
18
+ .and output(/Debug: Specified environment 'badenv' does not exist on the filesystem, defaulting to 'production'/).to_stdout
19
+ .and output(/Error: Could not run: You must specify the type to display/).to_stderr
20
+ end
21
+
22
+ it 'lists resources' do
23
+ resource.command_line.args = ['file', Puppet[:confdir]]
24
+
25
+ expect {
26
+ resource.run
27
+ }.to output(/file { '#{Puppet[:confdir]}':/).to_stdout
28
+ end
29
+
30
+ it 'lists types from the default environment' do
31
+ modulepath = File.join(Puppet[:codedir], 'modules', 'test', 'lib', 'puppet', 'type')
32
+ FileUtils.mkdir_p(modulepath)
33
+ File.write(File.join(modulepath, 'test.rb'), 'Puppet::Type.newtype(:test)')
34
+ resource.command_line.args = ['--types']
35
+
36
+ expect {
37
+ resource.run
38
+ }.to exit_with(0).and output(/test/).to_stdout
39
+ end
40
+ end
41
+
42
+
43
+ context 'when handling file and tidy types' do
10
44
  let!(:dir) { dir_containing('testdir', 'testfile' => 'contents') }
11
45
 
12
46
  it 'does not raise when generating file resources' do
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe "puppet ssl", unless: Puppet::Util::Platform.jruby? do
4
+ context "print" do
5
+ it 'translates custom oids to their long name' do
6
+ basedir = File.expand_path("#{__FILE__}/../../../fixtures/ssl")
7
+ # registering custom oids changes global state, so shell out
8
+ output =
9
+ %x{puppet ssl show \
10
+ --certname oid \
11
+ --localcacert #{basedir}/ca.pem \
12
+ --hostcrl #{basedir}/crl.pem \
13
+ --hostprivkey #{basedir}/oid-key.pem \
14
+ --hostcert #{basedir}/oid.pem \
15
+ --trusted_oid_mapping_file #{basedir}/trusted_oid_mapping.yaml 2>&1
16
+ }
17
+ expect(output).to match(/Long name:/)
18
+ end
19
+ end
20
+ end
@@ -9,10 +9,6 @@ describe "interpolating $environment" do
9
9
  let(:confdir) { Puppet[:confdir] }
10
10
  let(:cmdline_args) { ['--confdir', confdir, '--vardir', Puppet[:vardir], '--hiera_config', Puppet[:hiera_config]] }
11
11
 
12
- before(:each) do
13
- FileUtils.mkdir_p(confdir)
14
- end
15
-
16
12
  shared_examples_for "a setting that does not interpolate $environment" do
17
13
 
18
14
  before(:each) do