-
Notifications
You must be signed in to change notification settings - Fork 9
/
.octocatalog-diff.cfg.rb
40 lines (30 loc) · 1.07 KB
/
.octocatalog-diff.cfg.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This is a configuration file for octocatalog-diff (https://github.com/github/octocatalog-diff).
module OctocatalogDiff
class Config
def self.config
settings = {}
settings[:hiera_config] = 'test_data/hiera.yaml'
settings[:hiera_path] = ''
settings[:environment] = 'staging'
settings[:bootstrap_script] = 'test_data/bootstrap.sh'
# provided manually
# settings[:puppetdb_url] = 'https://puppetdb.yourcompany.com:8081'
settings[:puppetdb_ssl_ca] = '/etc/ssl/certs/ca-certificates.crt'
# TODO: install once puppet-terminus-puppetdb migrates to testing
settings[:storeconfigs] = false
puppet_may_be_in = %w(
/opt/puppetlabs/puppet/bin/puppet
/usr/bin/puppet
)
puppet_may_be_in.each do |path|
next unless File.executable?(path)
settings[:puppet_binary] = path
break
end
settings[:from_env] = 'origin/staging'
settings[:validate_references] = %w(before notify require subscribe)
settings[:basedir] = Dir.pwd
settings
end
end
end