source: src/puppetcode/environments/test/modules/gnuboat_hostapd/manifests/dnsmasq_config.pp@ 95db5cc

0.5 app-cordova debian/bullseye debian/jessie
Last change on this file since 95db5cc was 3f77ad0, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago

Fixed dnsmsq dns resolution of local host, caused by insufficiant permissions on /etc/hosts

  • Property mode set to 100644
File size: 658 bytes
Line 
1class gnuboat_hostapd::dnsmasq_config
2(
3 String $hostname = 'gnu',
4 String $domain = 'boat',
5 String $dhcp_range = '192.168.254.2,192.168.254.254,12h',
6)
7inherits gnuboat_hostapd
8{
9 file{'/etc/hosts':
10 ensure => present,
11 owner => 'root',
12 group => 'root',
13 mode => '0644',
14 content => epp('gnuboat_hostapd/hosts.epp',
15 {
16 'hostip' => $hostip,
17 'hostname' => $hostname,
18 'domain' => $domain,
19 }
20 ),
21 }
22
23
24 file{'/etc/dnsmasq.conf':
25 ensure => present,
26 owner => 'root',
27 group => 'root',
28 mode => '0600',
29 content => epp('gnuboat_hostapd/dnsmasq.conf.epp',
30 {
31 'hostip' => $hostip,
32 'dhcp_range' => $dhcp_range,
33 }
34 ),
35 }
36}
Note: See TracBrowser for help on using the repository browser.