forked from voxpupuli/puppet-cassandra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Integration with github_changelog_generator * Release 2.5.0 * Bugfix-397: Spec tests not working. (voxpupuli#398) * voxpupuli#395 Adding Red Hat OS (voxpupuli#396) * voxpupuli#395 Implement apache repo for Red Hat * voxpupuli#395 Adding Red Hat OS Adding Red Hat OS for the Apache repo * voxpupuli#395 Add release to the URL * Adding gpg key to yum * Cassandra 3.X and Debian 7 clash over GLIBC version. (voxpupuli#399) * Implement apache_repo for RedHat (voxpupuli#400) Fixes voxpupuli#395. * [blacksmith] Bump version to 2.6.0 * Update to the changelog for 2.6.0. * Corrected CHANGELOG and added stijnvdb to CONTRIBUTERS.
- Loading branch information
Showing
16 changed files
with
169 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,3 @@ script: | |
- "bundle exec rake acceptance" | ||
notifications: | ||
email: false | ||
matrix: | ||
fast_finish: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
--- | ||
CONFIG: | ||
--- | ||
CONFIG: | ||
log_level: notice | ||
type: foss | ||
HOSTS: | ||
debian7: | ||
docker_image_commands: | ||
HOSTS: | ||
debian7: | ||
docker_image_commands: | ||
- "apt-get install -y wget" | ||
hypervisor: docker | ||
image: "debian:7" | ||
platform: debian-7-amd64 | ||
roles: | ||
roles: | ||
- cassandra2 | ||
- cassandra3 | ||
- firewall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
require 'spec_helper' | ||
describe 'cassandra::apache_repo' do | ||
let(:pre_condition) do | ||
[ | ||
'class apt () {}', | ||
'class apt::update () {}', | ||
'define apt::key ($id, $source) {}', | ||
'define apt::source ($location, $comment, $release, $include) {}' | ||
] | ||
end | ||
|
||
context 'On a RedHat OS with defaults for all parameters' do | ||
let :facts do | ||
{ | ||
osfamily: 'RedHat' | ||
} | ||
end | ||
|
||
let :params do | ||
{ | ||
release: '311x' | ||
} | ||
end | ||
|
||
it do | ||
should have_resource_count(1) | ||
|
||
should contain_class('cassandra::apache_repo').only_with( | ||
'descr' => 'Repo for Apache Cassandra', | ||
'key_id' => 'A26E528B271F19B9E5D8E19EA278B781FE4B2BDA', | ||
'key_url' => 'https://www.apache.org/dist/cassandra/KEYS', | ||
'release' => '311x' | ||
) | ||
|
||
should contain_yumrepo('cassandra_apache').with( | ||
ensure: 'present', | ||
descr: 'Repo for Apache Cassandra', | ||
baseurl: 'http://www.apache.org/dist/cassandra/redhat/311x', | ||
enabled: 1, | ||
gpgcheck: 1, | ||
gpgkey: 'https://www.apache.org/dist/cassandra/KEYS' | ||
) | ||
end | ||
end | ||
|
||
context 'On a Debian OS with defaults for all parameters' do | ||
let :facts do | ||
{ | ||
osfamily: 'Debian', | ||
lsbdistid: 'Ubuntu', | ||
lsbdistrelease: '14.04' | ||
} | ||
end | ||
|
||
it do | ||
should have_resource_count(3) | ||
should contain_class('apt') | ||
should contain_class('apt::update') | ||
|
||
should contain_apt__key('apache.cassandra').with( | ||
id: 'A26E528B271F19B9E5D8E19EA278B781FE4B2BDA', | ||
source: 'https://www.apache.org/dist/cassandra/KEYS' | ||
) | ||
|
||
should contain_apt__source('cassandra.sources').with( | ||
location: 'http://www.apache.org/dist/cassandra/debian', | ||
comment: 'Repo for Apache Cassandra', | ||
release: 'main', | ||
include: { 'src' => false } | ||
).that_notifies('Exec[update-apache-cassandra-repo]') | ||
|
||
should contain_exec('update-apache-cassandra-repo').with( | ||
refreshonly: true, | ||
command: '/bin/true' | ||
) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters