Restart Astute service when configuration file changes
Notify service 'astute' about changed configuration file /etc/astute/astuted.conf. Change-Id: Icd4094d52380465bded37a6bfb1d229ecb90068a Closes-bug: 1539577
This commit is contained in:
parent
8ff80c0b38
commit
d54c39db46
@ -31,35 +31,35 @@ class nailgun::astute(
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644'
|
||||
}
|
||||
} ~> Service <| title == 'astute' |>
|
||||
|
||||
file { '/usr/bin/astuted':
|
||||
content => template('nailgun/astuted.erb'),
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => 0755,
|
||||
}
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
} ~> Service <| title == 'astute' |>
|
||||
|
||||
file {"/etc/astute":
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => 0755,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
}
|
||||
|
||||
file {"/etc/astute/astuted.conf":
|
||||
content => template("nailgun/astuted.conf.erb"),
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => 0644,
|
||||
require => File["/etc/astute"],
|
||||
}
|
||||
content => template('nailgun/astuted.conf.erb'),
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
require => File['/etc/astute'],
|
||||
} ~> Service <| title == 'astute' |>
|
||||
|
||||
file {"/var/log/astute":
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => 0755,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -75,6 +75,15 @@ describe manifest do
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
it {
|
||||
should contain_file('/etc/astute/astuted.conf').with({
|
||||
:mode => '0644',
|
||||
:owner => 'root',
|
||||
:group => 'root',
|
||||
:require => 'File[/etc/astute]'
|
||||
}).that_notifies('Service[astute]')
|
||||
}
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user