Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
immerda
Puppet Modules
imapproxy
Commits
52ce456f
Commit
52ce456f
authored
Nov 17, 2014
by
mh
Browse files
fix the init script so the pidfile is being used
parent
364c4e07
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/base.pp
View file @
52ce456f
# basic configuration
class
imapproxy::base
{
class
imapproxy::base
{
package
{
up
-
imapproxy
:
package
{
'
up-imapproxy
'
:
ensure
=>
present
,
ensure
=>
present
,
}
}
->
exec
{
'fix_imapproxy_init_script'
:
command
=>
' sed -i \'s@killproc @killproc -p /var/run/imapproxy.pid @\' /etc/init.d/imapproxy'
,
file
{
'/etc/imapproxy.conf'
:
onlyif
=>
'grep -q \'killproc /\' /etc/init.d/imapproxy'
,
}
->
file
{
'/etc/imapproxy.conf'
:
source
=>
[
"puppet:///modules/site_imapproxy/
${::fqdn}
/imapproxy.conf"
,
source
=>
[
"puppet:///modules/site_imapproxy/
${::fqdn}
/imapproxy.conf"
,
"puppet:///modules/site_imapproxy/imapproxy.conf"
,
'puppet:///modules/site_imapproxy/imapproxy.conf'
,
"puppet:///modules/imapproxy/imapproxy.conf"
],
'puppet:///modules/imapproxy/imapproxy.conf'
],
require
=>
Package
[
up
-
imapproxy
],
owner
=>
root
,
notify
=>
Service
[
imapproxy
],
group
=>
0
,
owner
=>
root
,
group
=>
0
,
mode
=>
0644
;
mode
=>
'0644'
;
}
}
~>
service
{
'imapproxy'
:
ensure
=>
running
,
service
{
'imapproxy'
:
ensure
=>
running
,
enable
=>
true
,
enable
=>
true
,
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment