poise-tls-remote-file 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.kitchen.yml +3 -0
- data/.travis.yml +56 -0
- data/.yardopts +7 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +34 -0
- data/LICENSE +201 -0
- data/README.md +82 -0
- data/Rakefile +17 -0
- data/chef/attributes/default.rb +24 -0
- data/lib/poise_tls_remote_file.rb +21 -0
- data/lib/poise_tls_remote_file/cheftie.rb +17 -0
- data/lib/poise_tls_remote_file/resources.rb +26 -0
- data/lib/poise_tls_remote_file/resources/poise_tls_remote_file.rb +148 -0
- data/lib/poise_tls_remote_file/version.rb +20 -0
- data/poise-tls-remote-file.gemspec +41 -0
- data/test/cookbook/files/ca.crt +33 -0
- data/test/cookbook/files/ca.key +51 -0
- data/test/cookbook/files/client.crt +29 -0
- data/test/cookbook/files/client.csr +27 -0
- data/test/cookbook/files/client.key +51 -0
- data/test/cookbook/files/client.pem +80 -0
- data/test/cookbook/files/server.crt +30 -0
- data/test/cookbook/files/server.csr +27 -0
- data/test/cookbook/files/server.key +51 -0
- data/test/cookbook/metadata.rb +19 -0
- data/test/cookbook/recipes/default.rb +96 -0
- data/test/gemfiles/chef-12.10.gemfile +23 -0
- data/test/gemfiles/chef-12.11.gemfile +23 -0
- data/test/gemfiles/chef-12.12.gemfile +22 -0
- data/test/gemfiles/chef-12.13.gemfile +22 -0
- data/test/gemfiles/chef-12.14.gemfile +19 -0
- data/test/gemfiles/chef-12.15.gemfile +19 -0
- data/test/gemfiles/chef-12.16.gemfile +19 -0
- data/test/gemfiles/chef-12.17.gemfile +19 -0
- data/test/gemfiles/chef-12.18.gemfile +19 -0
- data/test/gemfiles/chef-12.19.gemfile +19 -0
- data/test/gemfiles/chef-12.5.gemfile +23 -0
- data/test/gemfiles/chef-12.6.gemfile +23 -0
- data/test/gemfiles/chef-12.7.gemfile +23 -0
- data/test/gemfiles/chef-12.8.gemfile +23 -0
- data/test/gemfiles/chef-12.9.gemfile +23 -0
- data/test/gemfiles/chef-12.gemfile +19 -0
- data/test/gemfiles/chef-13.0.gemfile +19 -0
- data/test/gemfiles/chef-13.gemfile +19 -0
- data/test/gemfiles/master.gemfile +24 -0
- data/test/integration/default/serverspec/default_spec.rb +30 -0
- data/test/spec/resources/poise_tls_remote_file_spec.rb +330 -0
- data/test/spec/spec_helper.rb +19 -0
- metadata +192 -0
@@ -0,0 +1,80 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIE/jCCAuYCAQEwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQVUxEzARBgNV
|
3
|
+
BAgTClNvbWUtU3RhdGUxITAfBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0
|
4
|
+
ZDAeFw0xNzA0MTQwNjIwNDRaFw0xODA0MTQwNjIwNDRaMEUxCzAJBgNVBAYTAkFV
|
5
|
+
MRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBXaWRnaXRz
|
6
|
+
IFB0eSBMdGQwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDb6efFQ9C4
|
7
|
+
PVyd30Ddu/97sdHbE8w/8tqIpCY05Wj5nsitL+MkoxKQ24awsaqMY6mW66AN3+ju
|
8
|
+
XMTbZWibkZM4UtOr801mJHv3o0bviRndll2+E1VNT8MpKsf6rmEX43Me81cG9jc8
|
9
|
+
YI2JcbkIUd4gnH+K9nehuoZs5tHy617DOSp2a/8+/xRUGfzQiT7fcpd2FpHBSV1C
|
10
|
+
Xgk2rT4a2uCOeE4T7fxpyVzxQlAgiAQ/Ah/OldI5/Pi/3HG3aZFjfAymM2QUfdEp
|
11
|
+
K2PdRPM3dpzgRxhSCX1+T4n44Xju+URPDCFJdYU0GXki1YfSF9IR3AKD2/RPfZfg
|
12
|
+
oS4i+mCuxn7/KvhiTsQNTr1uSYuzbFw/nmYHnfdLOkGAL5lYfq1tNo6A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EIJ5XKKB/obVXty
|
43
|
+
nBi6A6UzD9SoF5dsMNTU7bCjmfR2JUL1mzUPm0nzAKuTMJ44ujPtT4REbUEQFiWd
|
44
|
+
QHMOKar5fxnuI2bRZkmgzGqI1kFNR5hsOKBkafYKUtYvgF1VpyjLCyJustGWBrWy
|
45
|
+
B/D9TAD+nZ6kj5Py+7gQU8HvEFoDUpHQ5j0CggEBAJnJgAjeD4VWpKe73Hbvs297
|
46
|
+
vLWf7LrBSYzInIF08B7i4Zrk9paxGrYfMQvNFgjHne3tQ0Wt747obp91zIpc6mEF
|
47
|
+
pxkq+gAJNdnr1HZF0goX396bvUSSSrkHhzECUFaBk6GkatOStSG3P6qfY5b9GUNj
|
48
|
+
q6Y3TehyKWn15NJuAXCCcW3iQP6eRPpb8SE+0GUfhNl3jImCsTBAfJf/0RzXy47s
|
49
|
+
paNbbb+V1ebmBHVwkNTDN7eZYhgEUhVd2EsxUaOa+Ow59SL6rLVBSK2NC8ttjR9v
|
50
|
+
sMhZt11Wrp4bbHh80a+Mw8SPoLMhCCIJzmFjwFoY8pspjK1ql6HTltHakloxY7o=
|
51
|
+
-----END RSA PRIVATE KEY-----
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2017, Noah Kantrowitz
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
name 'poise-tls-remote-file_test'
|
18
|
+
depends 'poise-tls-remote-file'
|
19
|
+
depends 'poise-service'
|
@@ -0,0 +1,96 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2017, Noah Kantrowitz
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
package 'nginx'
|
18
|
+
|
19
|
+
directory '/test'
|
20
|
+
|
21
|
+
cookbook_file '/test/ca.crt'
|
22
|
+
|
23
|
+
cookbook_file '/test/server.key'
|
24
|
+
|
25
|
+
cookbook_file '/test/server.crt'
|
26
|
+
|
27
|
+
cookbook_file '/test/client.key'
|
28
|
+
|
29
|
+
cookbook_file '/test/client.crt'
|
30
|
+
|
31
|
+
cookbook_file '/test/client.pem'
|
32
|
+
|
33
|
+
file '/test/target' do
|
34
|
+
content "Hello world\n"
|
35
|
+
end
|
36
|
+
|
37
|
+
file '/test/nginx.conf' do
|
38
|
+
content <<-EOH
|
39
|
+
daemon off;
|
40
|
+
master_process off;
|
41
|
+
worker_processes auto;
|
42
|
+
|
43
|
+
events { }
|
44
|
+
|
45
|
+
error_log /test/error.log;
|
46
|
+
|
47
|
+
http {
|
48
|
+
server {
|
49
|
+
listen 80;
|
50
|
+
server_name localhost;
|
51
|
+
|
52
|
+
location / {
|
53
|
+
root /test;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
server {
|
58
|
+
listen 443;
|
59
|
+
ssl on;
|
60
|
+
server_name localhost;
|
61
|
+
|
62
|
+
ssl_certificate /test/server.crt;
|
63
|
+
ssl_certificate_key /test/server.key;
|
64
|
+
ssl_client_certificate /test/client.crt;
|
65
|
+
ssl_verify_client on;
|
66
|
+
|
67
|
+
location / {
|
68
|
+
root /test;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
EOH
|
73
|
+
end
|
74
|
+
|
75
|
+
poise_service 'nginx' do
|
76
|
+
command 'nginx -c /test/nginx.conf'
|
77
|
+
provider :dummy
|
78
|
+
end
|
79
|
+
|
80
|
+
tls_remote_file '/output' do
|
81
|
+
source 'https://localhost/target'
|
82
|
+
client_cert '/test/client.crt'
|
83
|
+
client_key '/test/client.key'
|
84
|
+
ca '/test/ca.crt'
|
85
|
+
end
|
86
|
+
|
87
|
+
tls_remote_file '/output2' do
|
88
|
+
source 'https://localhost/target'
|
89
|
+
client_cert '/test/client.pem'
|
90
|
+
ca '/test/ca.crt'
|
91
|
+
end
|
92
|
+
|
93
|
+
# Make sure I didn't break normal remote_file.
|
94
|
+
remote_file '/output3' do
|
95
|
+
source 'http://localhost/target'
|
96
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2017, Noah Kantrowitz
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
18
|
+
|
19
|
+
gem 'chef', '~> 12.10.24'
|
20
|
+
gem 'rack', '< 2'
|
21
|
+
gem 'foodcritic', '< 8'
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
23
|
+
gem 'chefspec', '< 6'
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2017, Noah Kantrowitz
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
18
|
+
|
19
|
+
gem 'chef', '~> 12.11.18'
|
20
|
+
gem 'rack', '< 2'
|
21
|
+
gem 'foodcritic', '< 8'
|
22
|
+
gem 'fauxhai', '<= 3.9.0'
|
23
|
+
gem 'chefspec', '< 6'
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2017, Noah Kantrowitz
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
18
|
+
|
19
|
+
gem 'chef', '~> 12.12.15'
|
20
|
+
gem 'foodcritic', '< 8'
|
21
|
+
gem 'fauxhai', '<= 3.9.0'
|
22
|
+
gem 'chefspec', '< 6'
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2017, Noah Kantrowitz
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
18
|
+
|
19
|
+
gem 'chef', '~> 12.13.37'
|
20
|
+
gem 'foodcritic', '< 8'
|
21
|
+
gem 'fauxhai', '<= 3.9.0'
|
22
|
+
gem 'chefspec', '< 6'
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2017, Noah Kantrowitz
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
18
|
+
|
19
|
+
gem 'chef', '~> 12.14.89'
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2017, Noah Kantrowitz
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)
|
18
|
+
|
19
|
+
gem 'chef', '~> 12.15.19'
|