Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #24 from castiron/bugfix/inconsistent-service-name
Browse files Browse the repository at this point in the history
Fix inconsistent service name
  • Loading branch information
jacobbednarz authored Dec 14, 2017
2 parents 858a354 + 1ded17c commit d341482
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
) {
require homebrew

if ! $service_name {
$service = "${tld}.dnsmasq"
}
$service = 'dev.dnsmasq'

file { [$configdir, $logdir, $datadir]:
ensure => directory,
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/dnsmasq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

context 'given a different tld' do
let(:tld) { "vagrant" }
let(:service_name) { "#{tld}.dnsmasq" }
let(:service_name) { "dev.dnsmasq" }
let(:params) {{
'host' => "127.0.0.1",
'tld' => tld,
Expand All @@ -84,7 +84,7 @@
:require => "File[#{configdir}]",
}).with_content(%r{\naddress=/vagrant/127.0.0.1\nlisten-address=127.0.0.1\n})

should contain_file('/Library/LaunchDaemons/vagrant.dnsmasq.plist').with({
should contain_file('/Library/LaunchDaemons/dev.dnsmasq.plist').with({
:group => 'wheel',
:notify => "Service[#{service_name}]",
:owner => 'root',
Expand Down

0 comments on commit d341482

Please sign in to comment.