Giter Club home page Giter Club logo

puppet-dns's Introduction

Puppet Forge Build Status

DNS module for Puppet

Installs and manages an ISC BIND DNS server with basic zones, primarily for The Foreman.

Usage

Include the top level dns class to fully configure the service.

include dns

A key is set up to allow dynamic DNS updates, stored in rndc.key. This is used by Foreman's smart proxy to add and remove records on the fly.

Zones can be created with the dns::zone resource:

dns::zone { 'example.com': }

Keys can be created with the dns::key resource:

dns::key {'dns-key':}

Slaves can also be configured by setting allow_transfer in the master's zone and setting zonetype => 'slave' in the slave's zone.

Logging can be added with the dns::logging_categories and dns::logging_channels defined types. The following Hiera example shows all the available options:

dns::logging_categories:
  unmatched:
    channels:
      - 'test_file'
      - 'test_stderr'
      - 'test_syslog'
      - 'test_null'
dns::logging_channels:
  test_file:
    file_path: '/var/log/named/test.log'
    file_versions: 3
    file_size: '5m'
    log_type: 'file'
    print_category: 'yes'
    print_severity: 'yes'
    print_time: 'yes'
    severity: 'dynamic'
  test_null:
    log_type: 'null'
    print_category: 'yes'
    print_severity: 'yes'
    print_time: 'yes'
    severity: 'dynamic'
  test_stderr:
    log_type: 'stderr'
    print_category: 'yes'
    print_severity: 'yes'
    print_time: 'yes'
    severity: 'dynamic'
  test_syslog:
    log_type: 'syslog'
    print_category: 'yes'
    print_severity: 'yes'
    print_time: 'yes'
    severity: 'dynamic'
    syslog_facility: 'auth'

isc-bind Software Collections usage

If you plan to use the isc-bind SCL packages (https://copr.fedorainfracloud.org/coprs/isc/bind/) the string 'dns::globals::scl' must be set, which also directly identifies the scl environment that is used.

This can be accomplished by using hiera

dns::globals::scl: 'isc-bind'
``

or class instantiation.
```puppet
class { 'dns::globals':
  scl => 'isc-bind'
}

Configuration for bind > 9.16

masterfile format for secondaries

If bind > 9.16 is used, the masterfile_format parameter of a zone should be set to 'text' as this puppet module does not issue named-compilezone on a zonefile.

Credits

Based on zleslie-dns, with a lot of the guts ripped out. Thanks to zleslie for the original work

Contributing

  • Fork the project
  • Commit and push until you are happy with your contribution
  • Send a pull request with a description of your changes

See the CONTRIBUTING.md file for much more information.

More info

See https://theforeman.org or at #theforeman irc channel on freenode

Copyright (c) 2010-2016 Foreman developers and Zach Leslie

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

puppet-dns's People

Contributors

ekohl avatar mmoll avatar domcleal avatar antaflos avatar ehelms avatar lzap avatar wbclark avatar inecas avatar bastelfreak avatar gregsutcliffe avatar coreone avatar marcdeop avatar treydock avatar smortex avatar ikonia avatar agx avatar karelyatin avatar benjamin-robertson avatar andybrucenet avatar wclarke1 avatar ladynamedlaura avatar zyronix avatar sathieu avatar ablionge avatar roidelapluie avatar jkrauska avatar fvoges avatar evgeni avatar rtprio avatar flyingstar16 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.