Skip to content

Latest commit

 

History

History
233 lines (128 loc) · 6.69 KB

REFERENCE.md

File metadata and controls

233 lines (128 loc) · 6.69 KB

Reference

Table of Contents

Classes

Classes

haveged

Manage HAVEGEd

== Sample Usage:

class { 'haveged': write_wakeup_threshold => 1024, }

Parameters

The following parameters are available in the haveged class:

buffer_size

Data type: Optional[Variant[String,Integer]]

The size of the collection buffer in KB

Default value: undef

data_cache_size

Data type: Optional[Variant[String,Integer]]

The data cache size in KB

Default value: undef

instruction_cache_size

Data type: Optional[Variant[String,Integer]]

The instruction cache size in KB. Default is 16 or as determined by cpuid

Default value: undef

write_wakeup_threshold

Data type: Variant[String,Integer]

The haveged daemon generates more data if the number of entropy bits falls below this value

Default value: 1024

service_name

Data type: String[1]

The name of the service to manage

Default value: 'haveged'

service_ensure

Data type: Variant[Boolean,String[1]]

Whether the service should be running

Default value: 'running'

service_enable

Data type: Boolean

Whether the service should be enabled to start at boot time

Default value: true

package_name

Data type: String[1]

The name of the package to manage

Default value: 'haveged'

package_ensure

Data type: Variant[Boolean,Simplib::PackageEnsure]

Ensure parameter passed onto Package resources. Default: 'present'

Default value: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' })

haveged::config

Manage the HAVEGEd configuration file

Parameters

The following parameters are available in the haveged::config class:

buffer_size

Data type: Optional[Variant[Pattern['^[0-9]+$'],Integer]]

The size of the collection buffer in KB

Default value: defined('$haveged::buffer_size') ? { true => getvar('haveged::buffer_size'), default => undef

data_cache_size

Data type: Optional[Variant[Pattern['^[0-9]+$'],Integer]]

The data cache size in KB

Default value: defined('$haveged::data_cache_size') ? { true => getvar('haveged::data_cache_size'), default => undef

instruction_cache_size

Data type: Optional[Variant[Pattern['^[0-9]+$'],Integer]]

The instruction cache size in KB

Default value: defined('$haveged::instruction_cache_size') ? { true => getvar('haveged::instruction_cache_size'), default => undef

write_wakeup_threshold

Data type: Optional[Variant[Pattern['^[0-9]+$'],Integer]]

The haveged daemon generates more data if the number of entropy bits falls below this value

Default value: defined('$haveged::write_wakeup_threshold') ? { true => getvar('haveged::write_wakeup_threshold'), default => undef

haveged::package

Manage the haveged package

Parameters

The following parameters are available in the haveged::package class:

package_name

Data type: String[1]

The name of the package to manage

Default value: defined('$haveged::package_name') ? { true => getvar('haveged::package_name'), default => 'haveged'

package_ensure

Data type: Simplib::PackageEnsure

Ensure parameter passed onto Package resources

Default value: defined('$haveged::_package_ensure') ? { true => getvar('haveged::_package_ensure'), default => 'present'

haveged::service

Manage the HAVEGEd service

Parameters

The following parameters are available in the haveged::service class:

service_name

Data type: String[1]

The name of the service to manage

Default value: defined('$haveged::service_name') ? { true => getvar('haveged::service_name'), default => 'haveged'

service_ensure

Data type: String[1]

Whether the service should be running

Default value: defined('$haveged::_service_ensure') ? { true => getvar('haveged::_service_ensure'), default => 'running'

service_enable

Data type: Boolean

Whether the service should be enabled to start at boot time

Default value: defined('$haveged::_service_enable') ? { true => getvar('haveged::_service_enable'), default => true

force_if_rngd_running

Data type: Boolean

Will force haveged to start even though RNGD is already running

  • While this should not harm your system in most cases, it is also adding an unnecessary process running on the system

Default value: false