File tree Expand file tree Collapse file tree 3 files changed +55
-0
lines changed
spec/classes/profile/hathitrust/solr6 Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments