Skip to content

Commit

Permalink
fix #2 add scenario server-pgsql
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Mar 15, 2021
1 parent c4b376a commit f4eb6fa
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ DATAROOTDIR = DATADIR = ENV['DATAROOTDIR'] || "#{PREFIX}/share"
MANDIR = ENV['MANDIR'] || "#{DATAROOTDIR}/man"
PKGDIR = ENV['PKGDIR'] || File.expand_path('pkg')

SCENARIOS = ['server','worker','agent'].freeze
SCENARIOS = ['server','server-pgsql','worker','agent'].freeze

exporter_dirs = ENV['PATH'].split(':').push('/usr/bin', ENV['KAFO_EXPORTER'])
exporter = exporter_dirs.find { |dir| File.executable? "#{dir}/kafo-export-params" } or
Expand Down
23 changes: 23 additions & 0 deletions config/server-pgsql-answers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Format:
# <classname>: false - don't include this class
# <classname>: true - include and use the defaults
# <classname>:
# <param>: <value> - include and override the default(s)
#
# See params.pp in each class for what options are available

---
icinga::repos: true
install: true
install::server:
global_zones:
- global-templates
- linux-commands
- windows-commands
install::web:
backend: true
create_backend_database: true
frontend: true
create_database: true
backend_db_type: pgsql
db_type: pgsql
34 changes: 34 additions & 0 deletions config/server-pgsql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
:name: Server-PostgreSQL
:description: ''
:enabled: true
:log_dir: "./_build/"
:store_dir: ''
:log_name: server-pgsql.log
:log_level: debug
:no_prefix: false
:mapping: {}
:answer_file: "./config/server-pgsql-answers.yaml"
:installer_dir: "."
:module_dirs: "./_build/modules/"
:colors: true
:color_of_background: :dark
:hook_dirs: []
:custom: {}
:facts: {}
:low_priority_modules:
- icinga::repos
- install
- install::server
- install::web
:verbose: true
:verbose_log_level: notice
:skip_puppet_version_check: false
:parser_cache_path: "./_build/parser_cache/sserver-pgsql.yaml"
:ignore_undocumented: true
:order:
- icinga::repos
- install::server
- install
- install::web
:hiera_config: "./config/icinga-hiera.yaml"

0 comments on commit f4eb6fa

Please sign in to comment.