Skip to content

Commit

Permalink
Merge branch 'release/0.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
ssm committed Dec 18, 2015
2 parents e118bbd + 7e3c3ec commit c4da0b5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2015-12-18 Release 0.1.3
- bugfix: using multiple pem-files failed. Tests added.

2015-12-18 Release 0.1.2
- relax too-strict validation of strings containing keys and certificates

Expand Down
2 changes: 1 addition & 1 deletion manifests/domain.pp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
# Add a line to the hitch config file
concat::fragment { "hitch::domain ${title}":
target => $config_file,
content => "pem-file = \"${pem_file}\"",
content => "pem-file = \"${pem_file}\"\n",
}

# Create the pem file, with (optional) ca certificate chain, a
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssm-hitch",
"version": "0.1.2",
"version": "0.1.3",
"author": "ssm",
"summary": "Install and configure Hitch TLS proxy",
"license": "Apache-2.0",
Expand Down
4 changes: 4 additions & 0 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ class { 'hitch': }
key_source => '/tmp/example.org_key.pem',
cert_source => '/tmp/example.org_cert.pem',
}
hitch::domain { 'example.com':
key_source => '/tmp/example.com_key.pem',
cert_source => '/tmp/example.com_cert.pem',
}
EOS

# Run it twice and test for idempotency
Expand Down
4 changes: 3 additions & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
hosts.each do |host|
on host, puppet('module', 'install', 'puppetlabs-stdlib'), { :acceptable_exit_codes => [0,1] }
on host, puppet('module', 'install', 'puppetlabs-concat'), { :acceptable_exit_codes => [0,1] }
on host, 'openssl req -newkey rsa:2048 -sha256 -keyout /tmp/example.org_key.pem -nodes -x509 -days 365 -out /tmp/example.org_cert.pem -subj "/CN=example.org"'
['example.com', 'example.org'].each do |domain|
on host, 'openssl req -newkey rsa:2048 -sha256 -keyout /tmp/%s_key.pem -nodes -x509 -days 365 -out /tmp/%s_cert.pem -subj "/CN=%s"' % [ domain, domain, domain ]
end
on host, 'ls -l /tmp'
end
end
Expand Down

0 comments on commit c4da0b5

Please sign in to comment.