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
ebcd1808
Commit
ebcd1808
authored
Jun 08, 2012
by
mh
Browse files
refactor things for >2.7
parent
e563b9aa
Changes
4
Hide whitespace changes
Inline
Side-by-side
manifests/base.pp
View file @
ebcd1808
class
imapproxy::base
{
package
{
up
-
imapproxy
:
ensure
=>
present
,
}
package
{
up
-
imapproxy
:
ensure
=>
present
,
}
file
{
'/etc/imapproxy.conf'
:
source
=>
[
"puppet:///modules/site
-
imapproxy/
${fqdn}
/imapproxy.conf"
,
"puppet:///modules/site
-
imapproxy/imapproxy.conf"
,
"puppet:///modules/imapproxy/imapproxy.conf"
],
require
=>
Package
[
up
-
imapproxy
],
notify
=>
Service
[
imapproxy
],
owner
=>
root
,
group
=>
0
,
mode
=>
0644
;
}
file
{
'/etc/imapproxy.conf'
:
source
=>
[
"puppet:///modules/site
_
imapproxy/
${
::
fqdn}
/imapproxy.conf"
,
"puppet:///modules/site
_
imapproxy/imapproxy.conf"
,
"puppet:///modules/imapproxy/imapproxy.conf"
],
require
=>
Package
[
up
-
imapproxy
],
notify
=>
Service
[
imapproxy
],
owner
=>
root
,
group
=>
0
,
mode
=>
0644
;
}
service
{
'imapproxy'
:
ensure
=>
running
,
enable
=>
true
,
}
service
{
'imapproxy'
:
ensure
=>
running
,
enable
=>
true
,
}
}
manifests/disable.pp
View file @
ebcd1808
class
imapproxy::disable
inherits
imapproxy
{
case
$operatingsystem
{
default
:
{
include
imapproxy::disable::base
}
}
case
$
::
operatingsystem
{
default
:
{
include
imapproxy::disable::base
}
}
}
manifests/gentoo.pp
View file @
ebcd1808
class
imapproxy::gentoo
inherits
imapproxy::base
{
Package
[
up
-
imapproxy
]{
category
=>
'net-mail'
,
}
Package
[
up
-
imapproxy
]{
category
=>
'net-mail'
,
}
}
manifests/init.pp
View file @
ebcd1808
...
...
@@ -4,12 +4,12 @@
#
class
imapproxy
{
case
$operatingsystem
{
gentoo
:
{
include
imapproxy::gentoo
}
default
:
{
include
imapproxy::base
}
}
case
$
::
operatingsystem
{
gentoo
:
{
include
imapproxy::gentoo
}
default
:
{
include
imapproxy::base
}
}
if
$
use_shorewall
{
include
shorewall::rules::out::imap
}
if
hiera
(
'
use_shorewall
'
,
false
)
{
include
shorewall::rules::out::imap
}
}
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