Coder Social home page Coder Social logo

saltstack-formulas / chrony-formula Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mraymond77/chrony-formula

8.0 33.0 43.0 301 KB

Salt Stack formula to manage chrony

Home Page: http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

SaltStack 15.21% Ruby 29.62% JavaScript 19.71% Shell 5.97% Jinja 29.49%
saltstack chrony

chrony-formula's Introduction

chrony-formula

Travis CI Build Status Semantic Release

Formula to set up and configure chrony

Table of Contents

General notes

See the full SaltStack Formulas installation and usage instructions.

If you are interested in writing or contributing to formulas, please pay attention to the Writing Formula Section.

If you want to use this formula, please pay attention to the FORMULA file and/or git tag, which contains the currently released version. This formula is versioned according to Semantic Versioning.

See Formula Versioning Section for more details.

Contributing to this repo

Commit message formatting is significant!!

Please see How to contribute for more details.

Available states

chrony

Meta-state (This is a state that includes other states).

This installs the chrony package, manages the chrony configuration file and then starts the associated chrony service.

chrony.package

This state will install the chrony package only.

chrony.config

This state will configure the chrony service and has a dependency on chrony.install via include list.

chrony.service

This state will start the chrony service and has a dependency on chrony.config via include list.

chrony.clean

Meta-state (This is a state that includes other states).

this state will undo everything performed in the chrony meta-state in reverse order, i.e. stops the service, removes the configuration file and then uninstalls the package.

chrony.service.clean

This state will stop the chrony service and disable it at boot time.

chrony.config.clean

This state will remove the configuration of the chrony service and has a dependency on chrony.service.clean via include list.

chrony.package.clean

This state will remove the chrony package and has a depency on chrony.config.clean via include list.

chrony-formula's People

Contributors

aboe76 avatar apatard avatar baby-gnu avatar bmwiedemann avatar dafyddj avatar ixs avatar kjkeane avatar kumpa avatar mgomersbach avatar mraymond77 avatar myii avatar noelmcloughlin avatar omltorg avatar rossengeorgiev avatar semantic-release-bot avatar sschols avatar tampakrap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chrony-formula's Issues

Remove extra config from pillar.example

Comment on Pull request #5 from @aboe76

"can you please update the pillar.example. and remove extra config part.."

I verified #5 against pillar.example below because defaults.sls now has good defaults instead.

pillar.example

chrony:
  config:

@aboe76 Should pillar.example look like this? If yes I'll raise PR now.

[FEATURE] License

Quite simply, the project lacks a license. It would be great to have a clear license assigned.
@mraymond77 appears to be the original creator and has no license publicly assigned in the original repo.

TemplateNotFound due to slspath problem

Formula failed on Centos7 due to problem with #8 because slspath+ cannot be rendered. Probably we need slspath + instead (i.e. white spaces).

    Data failed to compile:
----------
    Rendering SLS 'base:chrony.init' failed: Jinja error: chrony/init/map.jinja
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/salt/utils/templates.py", line 413, in render_jinja_tmpl
    output = template.render(**decoded_context)
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "<template>", line 1, in top-level template code
  File "/usr/lib/python2.7/site-packages/salt/utils/jinja.py", line 145, in get_source
    raise TemplateNotFound(template)
TemplateNotFound: chrony/init/map.jinja

; line 1

---
{% from slspath+"/map.jinja" import chrony with context %}    <======================

server and pool options should be set separate.

It would be nice to be able to set different options per server:

server ntp.time.nl iburst prefer
server ntp0.nl.net iburst
server ntp1.nl.net iburst
server ntp2.nl.net iburst

or

server ntp.time.nl iburst prefer
pool nl.pool.ntp.org iburst maxsources 3

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.