Giter VIP home page Giter VIP logo

ansible-role-chrony's Introduction

Build Status

Ansible Role: chrony

| A role that installs chrony and configures it.

Motivation

chrony is a daemon which implements the Network Time Protocol (NTP).

Installation

Install from Ansible Galaxy

ansible-galaxy install while_true_do.chrony

Install from Github

git clone https://github.com/while-true-do/ansible-role-chrony.git while_true_do.chrony

Requirements

Used Modules:

Dependencies

None.

Role Variables

---
# defaults/main.yml

# for a complete set of options please have a look at
# man chrony.conf
# examples:
# "minpoll 6"  -> minimum polling interval
# "maxpoll 10" -> the maximum polling interval
# "iburst"     -> the interval between the first four polls
# options can be combined:
# "minpoll 6 maxpoll 10 iburst"
wtd_chrony_cfg_servers:
 - name: 0.centos.pool.ntp.org
   # options: "iburst"
 - name: 1.centos.pool.ntp.org
 - name: 2.centos.pool.ntp.org
 - name: 3.centos.pool.ntp.org

wtd_chrony_cfg_stratumweight: ""
wtd_chrony_cfg_driftfile: "/var/lib/chrony/drift"
wtd_chrony_cfg_rtcsync: true
wtd_chrony_cfg_makestep: "10 3"

wtd_chrony_cfg_allows: ""

wtd_chrony_cfg_local: false
wtd_chrony_cfg_local_stratum: "10"
wtd_chrony_cfg_local_distance: ""
wtd_chrony_cfg_local_orphan: ""

wtd_chrony_cfg_keyfile: "/etc/chrony.keys"

wtd_chrony_cfg_bindcmdaddresses: [ "127.0.0.1", "::1" ]

wtd_chrony_cfg_noclientlog: true
wtd_chrony_cfg_logchange: "0.5"
wtd_chrony_cfg_logdir: "/var/log/chrony"
# wtd_chrony_cfg_log: "measurements statistics tracking"
wtd_chrony_cfg_log: ""

Example Playbook

Simple Example:

- hosts: servers
  roles:
    - { role: while_true_do.chrony }

Advanced Example:

- hosts: servers
  roles:
    - { role: while_true_do.chrony, wtd_chrony_cfg_servers: [{ name: 0.centos.pool.ntp.org, options: "iburst" }, { name: 1.centos.pool.ntp.org }], wtd_chrony_cfg_logdir: '/var/log/chrony' }

Testing

All tests are located in test directory.

Basic testing:

bash ./tests/test-ansible.sh
bash ./tests/test-spelling.sh
bash ./tests/test-whitespace.sh

Contribute / Bugs

Thank you so much for considering to contribute. Every contribution helps us. We are really happy, when somebody is joining the hard work. Please have a look at the links first.

License

This work is licensed under a BSD License.

Author Information

Site: while-true-do.org

Mail: [email protected]

ansible-role-chrony's People

Contributors

donvipre avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

daktari fabianlee

ansible-role-chrony's Issues

Rework privilege escalation

Type of Report

enhancement

Actual behaviour

role needs to be escalated completely before it will work

Expected behaviour

We should decide for each task if privilege escalation is necessary, or not.

Specifications

Attachments

metadata not up to date

Type of Report

bug

Actual behaviour

README, and some meta files are not up to date

Expected behaviour

let the role meet the standards

remove non working parameters

Type of Report

bug

Actual behaviour

Jan 29 21:07:58 centos7.local chronyd[3145]: commandkey directive is no longer supported
Jan 29 21:07:58 centos7.local chronyd[3145]: generatecommandkey directive is no longer supported

Expected behaviour

remove non working parameters commandkey & generatecommandkey

LICENSE broken

Type of Report

bug

Actual behaviour

LICENSE.md not parsed by github

Expected behaviour

LICENSE.md should be renamed to LICENSE and the three first lines should be removed

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.