Skip to content

Commit 1b694b9

Browse files
committed
add role::hathitrust::solr::catalog
1 parent 0830c15 commit 1b694b9

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# nebula::profile::hathitrust::solr::catalog
2+
#
3+
# HathiTrust solr catalog profile
4+
#
5+
# @example
6+
# include nebula::profile::hathitrust::solr6::catalog
7+
class nebula::profile::hathitrust::solr6::catalog (
8+
String $port = '9033',
9+
String $solr_home = '/var/lib/solr',
10+
){
11+
class { 'nebula::profile::hathitrust::solr6':
12+
port => $port,
13+
solr_home => $solr_home,
14+
}
15+
16+
# solr nfs mounts
17+
nebula::nfs_mount { "/htsolr/catalog":
18+
tag => "smartconnect",
19+
private_network => true,
20+
monitored => true,
21+
before => Service["solr"],
22+
remote_target => "nas-${::datacenter}.sc:/ifs/htsolr/catalog";
23+
}
24+
25+
# magic symlinks?
26+
27+
# more magic symlinks?
28+
29+
# catalog release script
30+
31+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# nebula::role::hathitrust::solr::catalog
2+
#
3+
# HathiTrust solr catalog server
4+
#
5+
# @example
6+
# include nebula::role::hathitrust::solr::catalog
7+
class nebula::role::hathitrust::solr::catalog {
8+
include nebula::profile::hathitrust::solr6::catalog
9+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# frozen_string_literal: true
2+
require 'spec_helper'
3+
4+
describe 'nebula::profile::hathitrust::solr6::catalog' do
5+
on_supported_os.each do |os, os_facts|
6+
context "on #{os}" do
7+
let(:facts) { os_facts }
8+
let(:hiera_config) { 'spec/fixtures/hiera/hathitrust_config.yaml' }
9+
10+
it { is_expected.to compile }
11+
it { is_expected.to contain_package('solr') }
12+
it { is_expected.to contain_file('/var/lib/solr/solr.in.sh').with_content(/SOLR_PORT=9033/) }
13+
end
14+
end
15+
end

0 commit comments

Comments
 (0)