Git Product home page Git Product logo

puppet-ntp's Introduction

puppet-ntp

Manage NTP client and server via Puppet

Usage

Client

Using ntp pool mirrors

    class { 'ntp': }

Using custom ntp mirrors

    class { 'ntp':
        server_list => [ 'yourLocalServer1', 'yourLocalServer2', ]
    }

Server

Using ntp pool mirrors

    class { 'ntp':
        server_enabled => true,
    }

Using custom ntp mirrors

    class { 'ntp':
        server_list = [ 'yourLocalServer1', 'yourLocalServer2', ],
        server_enabled => true,
}

If you want some clients with unlimited access, you can set $query_networks in the follwing way:

    class { 'ntp':
        server_list = [ 'yourLocalServer1', 'yourLocalServer2', ],
        server_enabled = true,
        query_networks = [ '192.168.0.0/255.255.255.0', '172.16.0.0/255.255.0.0', ],
    }

Adding options to all servers in server_list

    class { 'ntp':
        server_list = ['a.example.com', 'b.example.com'],
        server_options = 'iburst',
    }

Adding options to one specific server

    class { 'ntp':
        server_list = [
            'a.example.com iburst',
            'b.example.com',
        ],
    }

Other class parameters

  • server_options: string, default: ''
  • interface_ignore: array, default: []
  • interface_listen: array, default: []
  • enable_statistics: true or false, default: false
  • statsdir: string, default: undef
  • ensure: present or absent, default: present
  • autoupgrade: true or false, default: false
  • package: string, default: OS specific. Set package name, if platform is not supported.
  • config_file: string, default: OS specific. Set config_file, if platform is not supported.
  • config_file_replace: true or false, default: true
  • driftfile: string, default: OS specific. Set driftfile, if platform is not supported.
  • service_ensure: running or stopped, default: running
  • service_name: string, default: OS specific. Set service_name, if platform is not supported.
  • service_enable: true or false, default: true
  • service_hasstatus: true or false, default: true
  • service_hasrestart: true or false, default: true

puppet-ntp's People

Contributors

alaureijs avatar avtar avatar lackhove avatar razorsedge avatar saz avatar vjt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.