Giter Club home page Giter Club logo

Comments (7)

solarkennedy avatar solarkennedy commented on July 29, 2024

I think we (by default) leave /etc/named.conf alone, I think most distros include more from there?
What distro are you on?

from puppet-dns.

chriscowley avatar chriscowley commented on July 29, 2024

Centos 6 - it does not include /etc/named/ by default. Is there a way I can force your module to purge that file, or do I need to modify it myself (started) and submit a PR?

from puppet-dns.

solarkennedy avatar solarkennedy commented on July 29, 2024
file { '/etc/named.conf': ensure => absent }

But no, currently the module does not manage that file.

If you think this module should manage that file, then PR please.

But per params.pp:
https://github.com/ajjahn/puppet-dns/blob/master/manifests/server/params.pp#L17

It looks like on RedHat distros we do manage it?

from puppet-dns.

chriscowley avatar chriscowley commented on July 29, 2024

I saw the entry in params.pp, but it was most certainly leaving the main conf file alone. Its not just me having a special moment (which did happen only yesterday), one of my colleagues has confirmed it.

I've got everything working in our environment, I'm just cleaning it all up make it acceptable for a PR.

Edit: more specifically, it was controling the file, but there was no entry for contents of that file. I have not checked on Debian, but on RHEL it does not include anything in the /etc/named/ folder.

from puppet-dns.

 avatar commented on July 29, 2024

The dns::server::config module references the config file:

  file { $cfg_file:
    ensure  => present,
    owner   => $owner,
    group   => $group,
    mode    => '0644',
    require => [
      File[$cfg_dir],
      Class['dns::server::install']
    ],
    notify  => Class['dns::server::service'],
  }

Unfortunately, because of this, it also means we can't fix the real named.conf file elsewhere in puppet because it's already defined here. The RedHat version of named.conf is automatically set up to be a local-caching-only server, which obviously won't work for a real dns server. Is there any progress on the named.conf PR?

from puppet-dns.

ppouliot avatar ppouliot commented on July 29, 2024

Has this been fixed yet. looks like named.conf.options doesn't get created when used on RH based systems (RH, Centos, Fedora, ScientificLinux).

from puppet-dns.

solarkennedy avatar solarkennedy commented on July 29, 2024

I believe this is fixed thanks to #102

include "<%= @cfg_dir %>/named.conf.options";

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.