Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9343872
puppetdb.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
puppetdb.pp
View Options
# PRIVATE CLASS - do not use directly
class
puppetdb
::
server
::
puppetdb
(
$certificate_whitelist_file
=
$puppetdb::params::certificate_whitelist_file,
$certificate_whitelist
=
$puppetdb::params::certificate_whitelist,
$disable_update_checking
=
$puppetdb::params::disable_update_checking,
$confdir
=
$puppetdb::params::confdir,
$puppetdb_user
=
$puppetdb::params::puppetdb_user,
$puppetdb_group
=
$puppetdb::params::puppetdb_group,
)
inherits
puppetdb
::
params
{
$puppetdb_ini
=
"${confdir}/puppetdb.ini"
file
{
$puppetdb_ini:
ensure
=>
file
,
owner
=>
$puppetdb_user,
group
=>
$puppetdb_group,
mode
=>
'0600'
,
}
# Set the defaults
Ini_setting
{
path
=>
$puppetdb_ini,
ensure
=>
present
,
section
=>
'puppetdb'
,
require
=>
File
[
$puppetdb_ini],
}
$certificate_whitelist_setting_ensure
=
empty
(
$certificate_whitelist)
?
{
true
=>
'absent'
,
default
=>
'present'
,
}
# accept connections only from puppet master
ini_setting
{
'puppetdb-connections-from-master-only'
:
ensure
=>
$certificate_whitelist_setting_ensure,
section
=>
'puppetdb'
,
setting
=>
'certificate-whitelist'
,
value
=>
$certificate_whitelist_file,
}
file
{
$certificate_whitelist_file:
ensure
=>
$certificate_whitelist_setting_ensure,
content
=>
template
(
'puppetdb/certificate-whitelist.erb'
),
mode
=>
'0644'
,
owner
=>
0
,
group
=>
0
,
}
if
$disable_update_checking
{
ini_setting
{
'puppetdb_disable_update_checking'
:
setting
=>
'disable-update-checking'
,
value
=>
$disable_update_checking,
}
}
else
{
ini_setting
{
'puppetdb_disable_update_checking'
:
ensure
=>
'absent'
,
setting
=>
'disable-update-checking'
,
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 4, 1:55 PM (2 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3283093
Attached To
rSPPDB PuppetDB configuration
Event Timeline
Log In to Comment