added gpgme class, with debian support
authorvarac <varacanero@zeromail.org>
Mon, 4 Mar 2013 14:37:26 +0000 (15:37 +0100)
committervarac <varacanero@zeromail.org>
Mon, 4 Mar 2013 14:37:26 +0000 (15:37 +0100)
manifests/gpgme.pp [new file with mode: 0644]
manifests/gpgme/base.pp [new file with mode: 0644]
manifests/gpgme/debian.pp [new file with mode: 0644]

diff --git a/manifests/gpgme.pp b/manifests/gpgme.pp
new file mode 100644 (file)
index 0000000..66034bc
--- /dev/null
@@ -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 (file)
index 0000000..536f043
--- /dev/null
@@ -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 (file)
index 0000000..d5a5487
--- /dev/null
@@ -0,0 +1,5 @@
+class gpg::gpgme::debian inherits gpg::gpgme::base {
+  Package['gpgme'] {
+    name => 'libgpgme11'
+  }
+}