Comments (5)
Which version of ajjahn-dns are you using?
from puppet-dns.
Also, please include your Profile::Nameserver
class, so we can see how you're invoking dns::server::options
.
from puppet-dns.
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.
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.
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)
- Incorrect data_dir on Ubuntu HOT 4
- Cannot set allow-update-forwarding
- working_dir not expanding in template
- Cannot set empty forwarders for zone HOT 2
- Add support for max-ncache-ttl and max-cache-ttl options.
- $cfg_dir has no effect with dns::server::options HOT 3
- No support for logging HOT 1
- Host `@` should be treated as empty in PTR record HOT 2
- using views HOT 1
- Split Horizon HOT 4
- static path in named.conf.default-zones
- Some dependencies need to be updated HOT 2
- dnssec_validation ignored when dnssec_enable is false
- Hiera Integration HOT 5
- dosent work on Centos 7 HOT 1
- Concat Issue HOT 5
- Debian 9 compatibility HOT 1
- Concat is a very old version HOT 2
- Broken for Puppet 6.x HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-dns.