diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-08-04 19:56:02 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-08-04 19:56:02 -0300 |
commit | 2a5feff1c6b3cd266bf8e8d6687f67f3cb9811dc (patch) | |
tree | f211acc50463a91feefc005b2611b9d70d8c2670 /manifests | |
parent | 1f6acd780995fda8b7e1f5f1469c6db54ff8d57a (diff) | |
download | puppet-mail-2a5feff1c6b3cd266bf8e8d6687f67f3cb9811dc.tar.gz puppet-mail-2a5feff1c6b3cd266bf8e8d6687f67f3cb9811dc.tar.bz2 |
Adding gpg-mailgate support
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/gpg_mailgate.pp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/manifests/gpg_mailgate.pp b/manifests/gpg_mailgate.pp new file mode 100644 index 0000000..f00bb62 --- /dev/null +++ b/manifests/gpg_mailgate.pp @@ -0,0 +1,41 @@ +class gpg_mailgate { + group { "gpg_mailgate": + ensure => present, + allowdupe => false, + } + + user { "gpg_mailgate": + ensure => present, + allowdupe => false, + gid => 'gpg_mailgate', + require => Group['gpg_mailgate'], + home => '/var/lib/gpg_mailgate', + } + + vcsrepo { "/var/lib/gpg_mailgate": + ensure => present, + provider => git, + source => 'git://github.com/ajgon/gpg-mailgate', + revision => '078381c2ddf05f0a5701f00bffa99e178ab658c9', + owner => 'gpg_mailgate', + group => 'gpg_mailgate', + require => [ User['gpg_mailgate'], Group['gpg_mailgate'] ], + } + + file { '/usr/local/bin/gpg-mailgate.py': + ensure => '/usr/local/bin/gpg-mailgate.py', + owner => root, + group => root, + require => Vcsrepo['/var/lib/gpg_mailgate'], + } + + file { '/etc/gpg-mailgate.conf': + ensure => present, + owner => gpg_mailgate, + group => gpg_mailgate, + mode => 0600, + require => Vcsrepo['/var/lib/gpg_mailgate'], + source => [ "puppet:///modules/site_mail/gpg_mailgate/gpg-mailgate.conf", + "puppet:///modules/mail/gpg_mailgate/gpg-mailgate.conf" ], + } +} |