GithubHelp home page GithubHelp logo

dynamic overwrite? about puppet-bind HOT 3 OPEN

thias avatar thias commented on July 21, 2024
dynamic overwrite?

from puppet-bind.

Comments (3)

qs5779 avatar qs5779 commented on July 21, 2024 1

I add my dynamic zones via an include directive and manage their initial zone file outside the module where I can specify "replace => no"

from puppet-bind.

gameforce avatar gameforce commented on July 21, 2024

@qs5779 this is what I was trying to do but I'm a bit new to this could you give an example that I can use?

from puppet-bind.

qs5779 avatar qs5779 commented on July 21, 2024

the excerpt below is from my setup with file names, ip addresses, hostnames and domain names changed for example

$varnameddynfiles = [
'12.168.192.ip4.ddns.rdns',
'6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.2.ip6.ddns.rdns',
'my.sub.domain.com.ddns.zone',
'mydomain.ddns.zone'
]

$varnameddynfiles.each | $fn | {
file { "/var/named/dynamic/${fn}":
ensure => present,
group => 'named',
mode => '0640',
replace => 'no',
source => "puppet:///modules/profile/var/named/dynamic/${fn}"
}
}

$views = {
'a_local_resolver' => {
match-clients => [ '!key inside', '!key outside', 'localhost' ],
recursion => 'yes',
includes => [ '/var/named/my.view.localhost.zones', '/etc/named.rfc1912.zones' ]
},
'b_inside' => {
match-clients => [ 'key inside', 'my_locnets' ],
recursion => 'yes',
includes => [ '/var/named/my.view.inside.zones', '/etc/named.rfc1912.zones' ]
},
'c_outside' => {
match-clients => [ 'any' ],
includes => [ '/var/named/my.view.outside.zones' ]
}
}

in the above configuration my local view is the master for my dynamic zones and inside and outside are slaves

i have four dynamic zones two regular and two reverse, the private reverse zone is not in the outside view, and one of the regular zones is not in the outside view.

in this configuration the 4 base files are only used for the initial server setup as replace is "no", and after the server starts they are updated dynamically.

on occasions when i need to update ( add or delete ) a static entry i have to update the dynamic files and static files.

someday i hope to generate the originals and verify / update the dynamic files from a database, but that will only happen if I get around to it

from puppet-bind.

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.