Permalink
Browse files

Basic package installation for now

  • Loading branch information...
1 parent 8c2a961 commit 7d90a36f54a27f7533e1ac59db649220a82f5262 @rodjek committed Oct 25, 2010
Showing with 23 additions and 3 deletions.
  1. +11 −3 README.md
  2. 0 manifests/init.pp
  3. +12 −0 manifests/uptrack.pp
View
@@ -1,8 +1,16 @@
puppet-ksplice
==============
- ksplice { $fqdn:
+Installs and configures (Ksplice Uptrack)[http://www.ksplice.com/uptrack/].
+This module assumes that you already have the package available via APT.
+Most people have their own APT module that handles repository setup or are
+using some sort of package caching proxy like approx.
+
+Usage
+-----
+
+ ksplice::uptrack { $fqdn:
access_key => "<access key>",
- proxy => "",
- autoinstall => "",
+ ensure => "(present|absent)", (default: present)
}
+
View
No changes.
View
@@ -0,0 +1,12 @@
+define ksplice::uptrack($access_key, $ensure="present") {
+ exec { "Set Ksplice Uptrack access key":
+ path => "/usr/bin:/bin",
+ command => "echo 'uptrack uptrack/accesskey string ${access_key}' | debconf-set-selections",
+ unless => "debconf-show uptrack | grep 'uptrack/accesskey: ${access_key}'"
+ }
+
+ package { "uptrack":
+ ensure => $ensure,
+ require => Exec["Set Ksplice Uptrack access key"],
+ }
+}

0 comments on commit 7d90a36

Please sign in to comment.