Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8393776
init.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
11 KB
Subscribers
None
init.pp
View Options
# All in one class for setting up a PuppetDB instance. See README.md for more
# details.
class
puppetdb
(
$listen_address
=
$puppetdb::params::listen_address,
$listen_port
=
$puppetdb::params::listen_port,
$disable_cleartext
=
$puppetdb::params::disable_cleartext,
$open_listen_port
=
$puppetdb::params::open_listen_port,
$ssl_listen_address
=
$puppetdb::params::ssl_listen_address,
$ssl_listen_port
=
$puppetdb::params::ssl_listen_port,
$disable_ssl
=
$puppetdb::params::disable_ssl,
$open_ssl_listen_port
=
$puppetdb::params::open_ssl_listen_port,
$ssl_dir
=
$puppetdb::params::ssl_dir,
$ssl_set_cert_paths
=
$puppetdb::params::ssl_set_cert_paths,
$ssl_cert_path
=
$puppetdb::params::ssl_cert_path,
$ssl_key_path
=
$puppetdb::params::ssl_key_path,
$ssl_ca_cert_path
=
$puppetdb::params::ssl_ca_cert_path,
$ssl_deploy_certs
=
$puppetdb::params::ssl_deploy_certs,
$ssl_key
=
$puppetdb::params::ssl_key,
$ssl_cert
=
$puppetdb::params::ssl_cert,
$ssl_ca_cert
=
$puppetdb::params::ssl_ca_cert,
$ssl_protocols
=
$puppetdb::params::ssl_protocols,
$cipher_suites
=
$puppetdb::params::cipher_suites,
$migrate
=
$puppetdb::params::migrate,
$manage_dbserver
=
$puppetdb::params::manage_dbserver,
$manage_database
=
$puppetdb::params::manage_database,
$manage_package_repo
=
$puppetdb::params::manage_pg_repo,
$postgres_version
=
$puppetdb::params::postgres_version,
$database
=
$puppetdb::params::database,
$database_host
=
$puppetdb::params::database_host,
$database_port
=
$puppetdb::params::database_port,
$database_username
=
$puppetdb::params::database_username,
$database_password
=
$puppetdb::params::database_password,
$database_name
=
$puppetdb::params::database_name,
$manage_db_password
=
$puppetdb::params::manage_db_password,
$jdbc_ssl_properties
=
$puppetdb::params::jdbc_ssl_properties,
$database_listen_address
=
$puppetdb::params::postgres_listen_addresses,
$database_validate
=
$puppetdb::params::database_validate,
$database_embedded_path
=
$puppetdb::params::database_embedded_path,
$node_ttl
=
$puppetdb::params::node_ttl,
$node_purge_ttl
=
$puppetdb::params::node_purge_ttl,
$report_ttl
=
$puppetdb::params::report_ttl,
Optional
[
Array
]
$facts_blacklist
=
$puppetdb::params::facts_blacklist,
$gc_interval
=
$puppetdb::params::gc_interval,
$node_purge_gc_batch_limit
=
$puppetdb::params::node_purge_gc_batch_limit,
$log_slow_statements
=
$puppetdb::params::log_slow_statements,
$conn_max_age
=
$puppetdb::params::conn_max_age,
$conn_keep_alive
=
$puppetdb::params::conn_keep_alive,
$conn_lifetime
=
$puppetdb::params::conn_lifetime,
$puppetdb_package
=
$puppetdb::params::puppetdb_package,
$puppetdb_service
=
$puppetdb::params::puppetdb_service,
$puppetdb_service_status
=
$puppetdb::params::puppetdb_service_status,
$puppetdb_user
=
$puppetdb::params::puppetdb_user,
$puppetdb_group
=
$puppetdb::params::puppetdb_group,
$read_database
=
$puppetdb::params::read_database,
$read_database_host
=
$puppetdb::params::read_database_host,
$read_database_port
=
$puppetdb::params::read_database_port,
$read_database_username
=
$puppetdb::params::read_database_username,
$read_database_password
=
$puppetdb::params::read_database_password,
$read_database_name
=
$puppetdb::params::read_database_name,
$manage_read_db_password
=
$puppetdb::params::manage_read_db_password,
$read_database_jdbc_ssl_properties
=
$puppetdb::params::read_database_jdbc_ssl_properties,
$read_database_validate
=
$puppetdb::params::read_database_validate,
$read_log_slow_statements
=
$puppetdb::params::read_log_slow_statements,
$read_conn_max_age
=
$puppetdb::params::read_conn_max_age,
$read_conn_keep_alive
=
$puppetdb::params::read_conn_keep_alive,
$read_conn_lifetime
=
$puppetdb::params::read_conn_lifetime,
$confdir
=
$puppetdb::params::confdir,
$vardir
=
$puppetdb::params::vardir,
$manage_firewall
=
$puppetdb::params::manage_firewall,
$java_args
=
$puppetdb::params::java_args,
$merge_default_java_args
=
$puppetdb::params::merge_default_java_args,
$max_threads
=
$puppetdb::params::max_threads,
$command_threads
=
$puppetdb::params::command_threads,
$concurrent_writes
=
$puppetdb::params::concurrent_writes,
$store_usage
=
$puppetdb::params::store_usage,
$temp_usage
=
$puppetdb::params::temp_usage,
$disable_update_checking
=
$puppetdb::params::disable_update_checking,
$certificate_whitelist_file
=
$puppetdb::params::certificate_whitelist_file,
$certificate_whitelist
=
$puppetdb::params::certificate_whitelist,
$database_max_pool_size
=
$puppetdb::params::database_max_pool_size,
$read_database_max_pool_size
=
$puppetdb::params::read_database_max_pool_size,
Boolean
$automatic_dlo_cleanup
=
$puppetdb::params::automatic_dlo_cleanup,
String
[
1
]
$cleanup_timer_interval
=
$puppetdb::params::cleanup_timer_interval,
Integer
[
1
]
$dlo_max_age
=
$puppetdb::params::dlo_max_age,
Optional
[
Stdlib
::
Absolutepath
]
$java_bin
=
$puppetdb::params::java_bin,
)
inherits
puppetdb
::
params
{
class
{
'::puppetdb::server'
:
listen_address
=>
$listen_address,
listen_port
=>
$listen_port,
disable_cleartext
=>
$disable_cleartext,
open_listen_port
=>
$open_listen_port,
ssl_listen_address
=>
$ssl_listen_address,
ssl_listen_port
=>
$ssl_listen_port,
disable_ssl
=>
$disable_ssl,
open_ssl_listen_port
=>
$open_ssl_listen_port,
ssl_dir
=>
$ssl_dir,
ssl_set_cert_paths
=>
$ssl_set_cert_paths,
ssl_cert_path
=>
$ssl_cert_path,
ssl_key_path
=>
$ssl_key_path,
ssl_ca_cert_path
=>
$ssl_ca_cert_path,
ssl_deploy_certs
=>
$ssl_deploy_certs,
ssl_key
=>
$ssl_key,
ssl_cert
=>
$ssl_cert,
ssl_ca_cert
=>
$ssl_ca_cert,
ssl_protocols
=>
$ssl_protocols,
cipher_suites
=>
$cipher_suites,
migrate
=>
$migrate,
database
=>
$database,
database_host
=>
$database_host,
database_port
=>
$database_port,
database_username
=>
$database_username,
database_password
=>
$database_password,
database_name
=>
$database_name,
manage_db_password
=>
$manage_db_password,
jdbc_ssl_properties
=>
$jdbc_ssl_properties,
database_validate
=>
$database_validate,
database_embedded_path
=>
$database_embedded_path,
node_ttl
=>
$node_ttl,
node_purge_ttl
=>
$node_purge_ttl,
report_ttl
=>
$report_ttl,
facts_blacklist
=>
$facts_blacklist,
gc_interval
=>
$gc_interval,
node_purge_gc_batch_limit
=>
$node_purge_gc_batch_limit,
log_slow_statements
=>
$log_slow_statements,
conn_max_age
=>
$conn_max_age,
conn_keep_alive
=>
$conn_keep_alive,
conn_lifetime
=>
$conn_lifetime,
puppetdb_package
=>
$puppetdb_package,
puppetdb_service
=>
$puppetdb_service,
puppetdb_service_status
=>
$puppetdb_service_status,
confdir
=>
$confdir,
vardir
=>
$vardir,
java_args
=>
$java_args,
merge_default_java_args
=>
$merge_default_java_args,
max_threads
=>
$max_threads,
read_database
=>
$read_database,
read_database_host
=>
$read_database_host,
read_database_port
=>
$read_database_port,
read_database_username
=>
$read_database_username,
read_database_password
=>
$read_database_password,
read_database_name
=>
$read_database_name,
manage_read_db_password
=>
$manage_read_db_password,
read_database_jdbc_ssl_properties
=>
$read_database_jdbc_ssl_properties,
read_database_validate
=>
$read_database_validate,
read_log_slow_statements
=>
$read_log_slow_statements,
read_conn_max_age
=>
$read_conn_max_age,
read_conn_keep_alive
=>
$read_conn_keep_alive,
read_conn_lifetime
=>
$read_conn_lifetime,
puppetdb_user
=>
$puppetdb_user,
puppetdb_group
=>
$puppetdb_group,
manage_firewall
=>
$manage_firewall,
command_threads
=>
$command_threads,
concurrent_writes
=>
$concurrent_writes,
store_usage
=>
$store_usage,
temp_usage
=>
$temp_usage,
disable_update_checking
=>
$disable_update_checking,
certificate_whitelist_file
=>
$certificate_whitelist_file,
certificate_whitelist
=>
$certificate_whitelist,
database_max_pool_size
=>
$database_max_pool_size,
read_database_max_pool_size
=>
$read_database_max_pool_size,
automatic_dlo_cleanup
=>
$automatic_dlo_cleanup,
cleanup_timer_interval
=>
$cleanup_timer_interval,
dlo_max_age
=>
$dlo_max_age,
java_bin
=>
$java_bin,
}
if
(
$database
==
'postgres'
)
{
$database_before
=
str2bool
(
$database_validate)
?
{
false
=>
Class
[
'::puppetdb::server'
],
default
=>
[
Class
[
'::puppetdb::server'
],
Class
[
'::puppetdb::server::validate_db'
]],
}
class
{
'::puppetdb::database::postgresql'
:
listen_addresses
=>
$database_listen_address,
database_name
=>
$database_name,
database_username
=>
$database_username,
database_password
=>
$database_password,
database_port
=>
$database_port,
manage_server
=>
$manage_dbserver,
manage_database
=>
$manage_database,
manage_package_repo
=>
$manage_package_repo,
postgres_version
=>
$postgres_version,
before
=>
$database_before
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 4, 7:17 PM (2 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3274750
Attached To
rSPPDB PuppetDB configuration
Event Timeline
Log In to Comment