## confdroid_ntp::params.pp # Module name: confdroid_ntp # Author: 12ww1160 (12ww1160@confdroid.com) # @summary Class contains all parameters for the confdroid_ntp module. # @param [Array] cy_reqpackages List of required packages to install # for the confdroid_ntp module. # @param [String] cy_pkg_ensure Ensure state of the required packages. # @param [String] cy_server_fqdn FQDN of the NTP server to configure. # If the fqdn of the host matches this value, a time server will be # configured, else a client. # @param [Array] cy_conf_servers List of NTP servers to point to as time source ############################################################################### class confdroid_ntp::params ( # installation Array $cy_reqpackages = ['chrony'], String $cy_pkg_ensure = 'present', # configuration String $cy_server_fqdn = 'ntp.example.com', Array $cy_conf_servers = ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org'], ) { # facts $fqdn = $facts['networking']['fqdn'] $domain = $facts['networking']['domain'] $os_name = $facts['os']['name'] $os_release = $facts['os']['release']['major'] # dirs # files $cy_conf_file = '/etc/chrony.conf' $cy_conf_erb = 'confdroid_ntp/chrony.conf.erb' # service $cy_service = 'chronyd' # includes must be last include confdroid_ntp::main::config }