Make linter happy
This commit is contained in:
parent
43e7717e58
commit
22282d2c28
1 changed files with 42 additions and 41 deletions
|
@ -1,48 +1,49 @@
|
|||
# Documentation to come, most params should be self-explainatory
|
||||
#
|
||||
class soc::vuln_dashboard(
|
||||
String $allowed_origins = $facts['networking']['fqdn'],
|
||||
String $allowed_hosts = $facts['networking']['fqdn'],
|
||||
String $docker_tag = 'latest',
|
||||
String $db_datadir = '/opt/vuln-dashboard/dbdata',
|
||||
String $pocs_storage_dir = '/opt/vuln-dashboard/pocsdata',
|
||||
String $sso_service_name = 'dashboard-dev',
|
||||
String $admin_contact = 'cert@cert.sunet.se',
|
||||
String $docker_image = 'platform.sunet.se/verglasz/vuln-management/dashboard-dev',
|
||||
String $sso_proxy_network= 'sso',
|
||||
String $allowed_origins = $facts['networking']['fqdn'],
|
||||
String $allowed_hosts = $facts['networking']['fqdn'],
|
||||
String $docker_tag = 'latest',
|
||||
String $db_datadir = '/opt/vuln-dashboard/dbdata',
|
||||
String $pocs_storage_dir = '/opt/vuln-dashboard/pocsdata',
|
||||
String $sso_service_name = 'dashboard-dev',
|
||||
String $admin_contact = 'cert@cert.sunet.se',
|
||||
String $docker_image = 'platform.sunet.se/verglasz/vuln-management/dashboard-dev',
|
||||
String $sso_proxy_network = 'sso',
|
||||
) {
|
||||
|
||||
$db_name=lookup('vuln-dashboard.dn_name', undef, undef, 'vuln_dashboard')
|
||||
$db_user=lookup('vuln-dashboard.db_user', undef, undef, 'dashboard_app')
|
||||
$db_pass=lookup('vuln-dashboard.db_pass', undef, undef, 'password')
|
||||
$db_port=lookup('vuln-dashbaord.db_port', undef, undef, '5432')
|
||||
$db_host=lookup('vuln-dashboard.db_host', undef, undef, 'postgres')
|
||||
$censys_api_secret=lookup('vuln-dashboard.censys_api_secret', undef, undef, 'null')
|
||||
$censys_api_id=lookup('vuln-dashboard.censys.api_id', undef, undef, 'null')
|
||||
$db_name=lookup('vuln-dashboard.dn_name', undef, undef, 'vuln_dashboard')
|
||||
$db_user=lookup('vuln-dashboard.db_user', undef, undef, 'dashboard_app')
|
||||
$db_pass=lookup('vuln-dashboard.db_pass', undef, undef, 'password')
|
||||
$db_port=lookup('vuln-dashbaord.db_port', undef, undef, '5432')
|
||||
$db_host=lookup('vuln-dashboard.db_host', undef, undef, 'postgres')
|
||||
$censys_api_secret=lookup('vuln-dashboard.censys_api_secret', undef, undef, 'null')
|
||||
$censys_api_id=lookup('vuln-dashboard.censys.api_id', undef, undef, 'null')
|
||||
|
||||
$app_config_file='/opt/vuln-dashboard/app-config.yaml'
|
||||
$app_config_file='/opt/vuln-dashboard/app-config.yaml'
|
||||
|
||||
file {
|
||||
'/opt/vuln-dashboard':
|
||||
ensure => directory,
|
||||
;
|
||||
$db_datadir:
|
||||
ensure => directory,
|
||||
;
|
||||
$pocs_storage_dir:
|
||||
ensure => directory,
|
||||
;
|
||||
$app_config_file:
|
||||
ensure => file,
|
||||
mode => '0644',
|
||||
content => template('soc/vuln-dashboard/app-config.yaml.erb'),
|
||||
;
|
||||
|
||||
}
|
||||
|
||||
sunet::docker_compose { 'vuln-dashboard':
|
||||
service_name => 'vuln-dashboard',
|
||||
description => 'SOC vuln dashboard',
|
||||
compose_dir => '/opt/vuln-dashboard',
|
||||
content => template('soc/vuln-dashboard/docker-compose.yml.erb'),
|
||||
}
|
||||
file {
|
||||
'/opt/vuln-dashboard':
|
||||
ensure => directory,
|
||||
;
|
||||
$db_datadir:
|
||||
ensure => directory,
|
||||
;
|
||||
$pocs_storage_dir:
|
||||
ensure => directory,
|
||||
;
|
||||
$app_config_file:
|
||||
ensure => file,
|
||||
mode => '0644',
|
||||
content => template('soc/vuln-dashboard/app-config.yaml.erb'),
|
||||
;
|
||||
}
|
||||
|
||||
sunet::docker_compose { 'vuln-dashboard':
|
||||
service_name => 'vuln-dashboard',
|
||||
description => 'SOC vuln dashboard',
|
||||
compose_dir => '/opt/vuln-dashboard',
|
||||
content => template('soc/vuln-dashboard/docker-compose.yml.erb'),
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue