Skip to content

Commit 9e39af1

Browse files
authored
Merge pull request #139 from bastelfreak/debian9
Add support for Debian 9, drop debian 8
2 parents 309afef + 7e209e5 commit 9e39af1

File tree

7 files changed

+20
-26
lines changed

7 files changed

+20
-26
lines changed

.sync.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.travis.yml:
33
docker_sets:
44
- set: docker/centos-7
5+
- set: docker/debian-9
56
secure: "l2HEhssQyDQGrdBkGS8f/gQ4FA5vVLM0JegyAVaaIXpRrJYgRiDAvC+u81HS//+J0v9cr4jo74ncl1HGU0QJZURJX/L8DJqUVXzSZpe9HmfrQpV1RDUSNMqzaIq5Z268Ou9n1Jkeg58WJyIaks9PQhXoWRRSnaCyDHrbGM8XcAU="

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ matrix:
3131
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/centos-7 CHECK=beaker
3232
services: docker
3333
sudo: required
34+
- rvm: 2.4.3
35+
bundler_args: --without development release
36+
dist: trusty
37+
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/debian-9 CHECK=beaker
38+
services: docker
39+
sudo: required
3440
branches:
3541
only:
3642
- master

manifests/params.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
$repo = true
5656
$server_package = 'glusterfs-server'
5757
$client_package = 'glusterfs-client'
58-
$service_name = 'glusterfs-server'
58+
$service_name = 'glusterd'
5959
}
6060
'Archlinux': {
6161
$repo = false

manifests/repo/apt.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050

5151
# Key location is different for some releases
5252
$repo_key_source = $release ? {
53-
'3.8' => "https://download.gluster.org/pub/gluster/glusterfs/${release}/LATEST/rsa.pub",
54-
default => "https://download.gluster.org/pub/gluster/glusterfs/${release}/rsa.pub",
55-
}
53+
'3.8' => "https://download.gluster.org/pub/gluster/glusterfs/${release}/LATEST/rsa.pub",
54+
default => "https://download.gluster.org/pub/gluster/glusterfs/${release}/rsa.pub",
55+
}
5656

5757
# basic sanity check
5858
if $version == 'LATEST' {

metadata.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
{
2424
"operatingsystem": "Debian",
2525
"operatingsystemrelease": [
26-
"8",
2726
"9"
2827
]
2928
},

spec/classes/service_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
when 'Redhat'
1515
is_expected.to create_service('glusterd')
1616
when 'Debian'
17-
is_expected.to create_service('glusterfs-server')
17+
is_expected.to create_service('glusterd')
1818
when 'Archlinux'
1919
is_expected.to create_service('glusterd')
2020
end

spec/spec_helper_acceptance.rb

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
1-
require 'puppet'
21
require 'beaker-rspec'
3-
require 'yaml'
2+
require 'beaker/puppet_install_helper'
3+
require 'beaker/module_install_helper'
44

5-
install_puppet_agent_on hosts, {}
5+
run_puppet_install_helper unless ENV['BEAKER_provision'] == 'no'
6+
install_module
7+
install_module_dependencies
68

79
RSpec.configure do |c|
8-
# Project root
9-
module_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
10-
module_name = module_root.split('-').last
11-
1210
# Readable test descriptions
1311
c.formatter = :documentation
14-
15-
c.before :suite do
16-
# Install module and dependencies
17-
puppet_module_install(source: module_root, module_name: module_name)
18-
19-
modules_fixtures = YAML.load_file(module_root + '/.fixtures.yml')
20-
modules = modules_fixtures['fixtures']['repositories']
21-
22-
hosts.each do |host|
23-
modules.each do |_name, mod_url|
24-
mod_name = mod_url.split('/').last.sub('.git', '')
25-
on host, puppet('module', 'install', mod_name), acceptable_exit_codes: [0, 1]
26-
end
12+
hosts.each do |host|
13+
if host[:platform] =~ %r{el-7-x86_64} && host[:hypervisor] =~ %r{docker}
14+
on(host, "sed -i '/nodocs/d' /etc/yum.conf")
2715
end
2816
end
2917
end

0 commit comments

Comments
 (0)