Giter Club home page Giter Club logo

Comments (5)

 avatar commented on September 3, 2024

Which version of ajjahn-dns are you using?

from puppet-dns.

 avatar commented on September 3, 2024

Also, please include your Profile::Nameserver class, so we can see how you're invoking dns::server::options.

from puppet-dns.

vandelin586 avatar vandelin586 commented on September 3, 2024

version 2.1.0

class profile::nameserver(
Hash $options,
Hash $zones,
Hash $a_records,
Hash $cname_records,
) {
class { '::dns::server': }

Build records

create_resources('dns::server::options', $options)
create_resources('dns::zone', $zones)
create_resources('dns::record::a', $a_records)
create_resources('dns::record::cname', $cname_records)
}

from puppet-dns.

vandelin586 avatar vandelin586 commented on September 3, 2024

inside nameserver.yaml
profile::nameserver::options:
/etc/bind/named.conf.options: <-- this was set to /etc/named > I correct this to Debian path but this is not a long term solution, how can I get it to choose based on OSfamily?

Its not the module , it was how I am calling dns::server::options

from puppet-dns.

 avatar commented on September 3, 2024

You can't change it based on OSfamily entirely within Hiera - you need puppet logic.

What you can do is move the options "up" a level and feed it in properly in the profile:

profile::nameserver::options:
    forwarders:
        - 8.8.8.8
        - 8.8.4.4

class profile::nameserver(
    Hash $options,
    Hash $zones,
    Hash $a_records,
    Hash $cname_records,
) {
    class { '::dns::server': }
    # Build records
    include dns::server::params
    create_resources('dns::server::options', {
            "${dns::server::params::cfg_dir}/named.conf.options" => $options
        })
    create_resources('dns::zone', $zones)
    create_resources('dns::record::a', $a_records)
    create_resources('dns::record::cname', $cname_records)
}

from puppet-dns.

Related Issues (20)

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.