6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
pkg
.rspec_system/
Gemfile.lock
vendor
spec/fixtures
.rspec_system
.bundle
.vagrant
.*sw*
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
##2014-06-04 - Release 1.2.4
###Summary

This is a compatibility release. No functional changes to this module were made
in this release, just testing infrastructure changes to extend tests to RHEL7
and Ubuntu 14.04

####Features

####Bugfixes

####Known Bugs
* No known bugs

##2014-03-04 - Supported Release 1.2.3
###Summary

Expand Down
2 changes: 1 addition & 1 deletion Modulefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name 'puppetlabs-java_ks'
version '1.2.3'
version '1.2.4'

author 'puppetlabs'
license 'ASL 2.0'
Expand Down
19 changes: 12 additions & 7 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "puppetlabs-java_ks",
"version": "1.2.3",
"version": "1.2.4",
"source": "https://github.com/puppetlabs/puppetlabs-java_ks",
"author": "Puppet Labs",
"license": "Apache-2.0",
Expand All @@ -11,28 +11,32 @@
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"5",
"6"
"6",
"7"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"5",
"6"
"6",
"7"
]
},
{
"operatingsystem": "OracleLinux",
"operatingsystemrelease": [
"5",
"6"
"6",
"7"
]
},
{
"operatingsystem": "Scientific",
"operatingsystemrelease": [
"5",
"6"
"6",
"7"
]
},
{
Expand All @@ -52,7 +56,8 @@
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"10.04",
"12.04"
"12.04",
"14.04"
]
},
{
Expand Down Expand Up @@ -82,7 +87,7 @@
}
],
"requirements": [
{ "name": "pe", "version_requirement": "3.2.x" },
{ "name": "pe", "version_requirement": ">= 3.2.0 < 3.4.0" },
{ "name": "puppet", "version_requirement": "3.x" }
],
"dependencies": []
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/keystore_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
pp = <<-EOS
java_ks { 'puppetca:keystore':
ensure => latest,
certificate => '#{default['puppetpath']}/ssl/certs/ca.pem',
certificate => "${settings::ssldir}/certs/ca.pem",
target => '/etc/keystore.ks',
password => 'puppet',
trustcacerts => true,
Expand Down
11 changes: 11 additions & 0 deletions spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
HOSTS:
ubuntu-server-1404-x64:
roles:
- master
platform: ubuntu-14.04-amd64
box : puppetlabs/ubuntu-14.04-64-nocm
box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm
hypervisor : vagrant
CONFIG:
log_level : debug
type: git
20 changes: 10 additions & 10 deletions spec/acceptance/private_key_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
pp = <<-EOS
java_ks { 'broker.example.com:/etc/private_key.ks':
ensure => latest,
certificate => "#{confdir}/ssl/certs/#{hostname}.pem",
private_key => "#{confdir}/ssl/private_keys/#{hostname}.pem",
certificate => "${settings::ssldir}/certs/#{hostname}.pem",
private_key => "${settings::ssldir}/private_keys/#{hostname}.pem",
password => 'puppet',
path => #{resource_path},
}
Expand All @@ -42,22 +42,22 @@
it 'puts a key in a module' do
pp = <<-EOS
file { [
'#{modulepath}/keys',
'#{modulepath}/keys/files',
"#{modulepath}/keys",
"#{modulepath}/keys/files",
]:
ensure => directory,
}
file { '#{modulepath}/keys/files/ca.pem':
file { "#{modulepath}/keys/files/ca.pem":
ensure => file,
source => '#{confdir}/ssl/certs/ca.pem',
source => "${settings::ssldir}/certs/ca.pem",
}
file { '#{modulepath}/keys/files/certificate.pem':
file { "#{modulepath}/keys/files/certificate.pem":
ensure => file,
source => '#{confdir}/ssl/certs/#{hostname}.pem',
source => "${settings::ssldir}/certs/#{hostname}.pem",
}
file { '#{modulepath}/keys/files/private_key.pem':
file { "#{modulepath}/keys/files/private_key.pem":
ensure => file,
source => '#{confdir}/ssl/private_keys/#{hostname}.pem',
source => "${settings::ssldir}/private_keys/#{hostname}.pem",
}
EOS

Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/truststore_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
pp = <<-EOS
java_ks { 'puppetca:truststore':
ensure => latest,
certificate => '#{default['puppetpath']}/ssl/certs/ca.pem',
certificate => "${settings::ssldir}/certs/ca.pem",
target => '/etc/truststore.ts',
password => 'puppet',
trustcacerts => true,
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/unsupported_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
pp = <<-EOS
java_ks { 'puppetca:keystore':
ensure => latest,
certificate => '#{default['puppetpath']}/ssl/certs/ca.pem',
certificate => "${settings::ssldir}/certs/ca.pem",
target => '/etc/keystore.ks',
password => 'puppet',
trustcacerts => true,
Expand Down
25 changes: 9 additions & 16 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,15 @@

UNSUPPORTED_PLATFORMS = []

unless ENV['RS_PROVISION'] == 'no'
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
if hosts.first.is_pe?
install_pe
else
install_puppet
end
hosts.each do |host|
if host['platform'] =~ /debian/
on host, 'echo \'export PATH=/var/lib/gems/1.8/bin/:${PATH}\' >> ~/.bashrc'
end
if host.is_pe?
install_pe
else
# Install Puppet
install_package host, 'rubygems'
on host, 'gem install puppet --no-ri --no-rdoc'
on host, "mkdir -p #{host['distmoduledir']}"
# Create certs for keystore tests.
on host, 'puppet master --no-daemonize --verbose &'
#on host, 'killall -9 puppet'
end
on host, 'puppet master'
on hosts, "mkdir -p #{host['distmoduledir']}"
end
end

Expand All @@ -34,7 +27,7 @@
# Install module and dependencies
puppet_module_install(:source => proj_root, :module_name => 'java_ks')
hosts.each do |host|
on host, puppet('module','install','puppetlabs-java')
shell('puppet module install puppetlabs-java')
end
end
end
28 changes: 0 additions & 28 deletions spec/system_helper_acceptance.rb

This file was deleted.