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
5fd1e26a
Commit
5fd1e26a
authored
Oct 03, 2009
by
mh
Browse files
refactor stuff into different files
parent
dd346ec9
Changes
4
Hide whitespace changes
Inline
Side-by-side
manifests/base.pp
0 → 100644
View file @
5fd1e26a
class
imapproxy::base
{
package
{
up
-
imapproxy
:
ensure
=>
present
,
}
file
{
'/etc/imapproxy.conf'
:
source
=>
[
"puppet://
$server
/files/imapproxy/
${fqdn}
/imapproxy.conf"
,
"puppet://
$server
/files/imapproxy/imapproxy.conf"
,
"puppet://
$server
/imapproxy/imapproxy.conf"
],
require
=>
Package
[
up
-
imapproxy
],
notify
=>
Service
[
imapproxy
],
owner
=>
root
,
group
=>
0
,
mode
=>
0644
;
}
service
{
'imapproxy'
:
ensure
=>
running
,
enable
=>
true
,
}
}
manifests/gentoo.pp
0 → 100644
View file @
5fd1e26a
class
imapproxy::gentoo
inherits
imapproxy::base
{
Package
[
up
-
imapproxy
]{
category
=>
'net-mail'
,
}
}
manifests/init.pp
View file @
5fd1e26a
...
...
@@ -3,42 +3,13 @@
# GPLv3
#
# modules_dir { "imapproxy": }
class
imapproxy
{
case
$operatingsystem
{
gentoo
:
{
include
imapproxy::gentoo
}
default
:
{
include
imapproxy::base
}
}
# if $selinux {
# include imapproxy::selinux
# }
}
class
imapproxy::base
{
package
{
up
-
imapproxy
:
ensure
=>
present
,
}
file
{
'/etc/imapproxy.conf'
:
source
=>
[
"puppet://
$server
/files/imapproxy/
${fqdn}
/imapproxy.conf"
,
"puppet://
$server
/files/imapproxy/imapproxy.conf"
,
"puppet://
$server
/imapproxy/imapproxy.conf"
],
require
=>
Package
[
up
-
imapproxy
],
notify
=>
Service
[
imapproxy
],
owner
=>
root
,
group
=>
0
,
mode
=>
0644
;
}
service
{
'imapproxy'
:
ensure
=>
running
,
enable
=>
true
,
}
}
class
imapproxy::gentoo
inherits
imapproxy::base
{
Package
[
up
-
imapproxy
]{
category
=>
'net-mail'
,
if
$use_shorewall
{
include
shorewall::imap::client
}
}
manifests/selinux.pp
deleted
100644 → 0
View file @
dd346ec9
# manifests/selinux.pp
class
imapproxy::selinux
{
case
$operatingsystem
{
gentoo
:
{
include
imapproxy::selinux::gentoo
}
}
}
class
imapproxy::selinux::gentoo
{
selinux::module
{
"squid_immerda"
:}
}
Write
Preview
Supports
Markdown
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