summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-03-04 15:37:26 +0100
committervarac <varacanero@zeromail.org>2013-03-04 15:37:26 +0100
commit736de323efa5f4771330679aa4aa6bf7e16be202 (patch)
treeae0e4bb75c927249cad1c8593aee5ae5caed03f6
parentf0c9b1f3749898ec37c5eeeb62d78ad3e61089cb (diff)
added gpgme class, with debian support
-rw-r--r--manifests/gpgme.pp6
-rw-r--r--manifests/gpgme/base.pp3
-rw-r--r--manifests/gpgme/debian.pp5
3 files changed, 14 insertions, 0 deletions
diff --git a/manifests/gpgme.pp b/manifests/gpgme.pp
new file mode 100644
index 0000000..66034bc
--- /dev/null
+++ b/manifests/gpgme.pp
@@ -0,0 +1,6 @@
+class gpg::gpgme {
+ case $::operatingsystem {
+ debian: { include gpg::gpgme::debian }
+ default: { include gpg::gpgme::base }
+ }
+}
diff --git a/manifests/gpgme/base.pp b/manifests/gpgme/base.pp
new file mode 100644
index 0000000..536f043
--- /dev/null
+++ b/manifests/gpgme/base.pp
@@ -0,0 +1,3 @@
+class gpg::gpgme::base {
+ package{'gpgme': ensure => installed }
+}
diff --git a/manifests/gpgme/debian.pp b/manifests/gpgme/debian.pp
new file mode 100644
index 0000000..d5a5487
--- /dev/null
+++ b/manifests/gpgme/debian.pp
@@ -0,0 +1,5 @@
+class gpg::gpgme::debian inherits gpg::gpgme::base {
+ Package['gpgme'] {
+ name => 'libgpgme11'
+ }
+}