Compare commits

...

1 Commits

Author SHA1 Message Date
ad7db1c78f
style(syntax): resolve linting errors+warnings
Resolve all rubocop, salt-lint and yamllint complaints.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-02-17 21:58:13 +01:00
24 changed files with 45 additions and 66 deletions

View File

@ -25,8 +25,7 @@ nsd:
# nsd.conf.d/90-generated-zones will be created and managed. # nsd.conf.d/90-generated-zones will be created and managed.
zones: zones:
example.test: example.test:
# Just for testing purpuses multi-master-check: 'no'
multi-master-check: no
"168.192.in-addr.arpa": {} "168.192.in-addr.arpa": {}
# NSD's include-pattern directive may be a better way to share configuration # NSD's include-pattern directive may be a better way to share configuration
# across zones than using YAML anchors. # across zones than using YAML anchors.

View File

@ -22,38 +22,38 @@ control 'nsd.service.running' do
end end
describe command('nslookup -port=53530 ns1.example.test 127.0.0.1') do describe command('nslookup -port=53530 ns1.example.test 127.0.0.1') do
its('stdout') { should match "192.168.0.1" } its('stdout') { should match '192.168.0.1' }
end end
describe command('nslookup -port=53530 ns2.example.test 127.0.0.1') do describe command('nslookup -port=53530 ns2.example.test 127.0.0.1') do
its('stdout') { should match "192.168.0.2" } its('stdout') { should match '192.168.0.2' }
end end
describe command('nslookup -port=53530 example.test 127.0.0.1') do describe command('nslookup -port=53530 example.test 127.0.0.1') do
its('stdout') { should match "192.168.0.10" } its('stdout') { should match '192.168.0.10' }
end end
describe command('nslookup -port=53530 www.example.test 127.0.0.1') do describe command('nslookup -port=53530 www.example.test 127.0.0.1') do
its('stdout') { should match "192.168.0.10" } its('stdout') { should match '192.168.0.10' }
end end
describe command('nslookup -port=53530 mail.example.test 127.0.0.1') do describe command('nslookup -port=53530 mail.example.test 127.0.0.1') do
its('stdout') { should match "192.168.0.11" } its('stdout') { should match '192.168.0.11' }
end end
describe command('nslookup -port=53530 192.168.0.1 127.0.0.1') do describe command('nslookup -port=53530 192.168.0.1 127.0.0.1') do
its('stdout') { should match "ns1.example.test" } its('stdout') { should match 'ns1.example.test' }
end end
describe command('nslookup -port=53530 192.168.0.2 127.0.0.1') do describe command('nslookup -port=53530 192.168.0.2 127.0.0.1') do
its('stdout') { should match "ns2.example.test" } its('stdout') { should match 'ns2.example.test' }
end end
describe command('nslookup -port=53530 192.168.0.10 127.0.0.1') do describe command('nslookup -port=53530 192.168.0.10 127.0.0.1') do
its('stdout') { should match "example.test" } its('stdout') { should match 'example.test' }
end end
describe command('nslookup -port=53530 192.168.0.11 127.0.0.1') do describe command('nslookup -port=53530 192.168.0.11 127.0.0.1') do
its('stdout') { should match "mail.example.test" } its('stdout') { should match 'mail.example.test' }
end end
end end

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"

View File

@ -47,4 +47,3 @@ values:
example.test: example.test:
multi-master-check: false multi-master-check: false
zones_dir: "/etc/nsd/zones" zones_dir: "/etc/nsd/zones"