Guest User

Untitled

a guest
Nov 1st, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.59 KB | None | 0 0
  1. class likewise {
  2.  
  3.   $version = "6.0.0.8330"
  4.  
  5.   $env = $hostname ? {
  6.     /^q[ds]-.*/ => "prod",
  7.     default => "default"
  8.   }
  9.  
  10.   file { "/opt/LikewiseOpen-$version-linux-x86_64-rpm.sh":
  11.     owner => "root",
  12.     group => "root",
  13.     mode => "755",
  14.     source => "puppet:///modules/likewise/LikewiseOpen-$version-linux-x86_64-rpm.sh",
  15.     alias => "likewise-source",
  16.     notify => Exec["install-likewise"]
  17.   }
  18.  
  19.   exec { "install-likewise":
  20.     command => "/opt/LikewiseOpen-$version-linux-x86_64-rpm.sh install",
  21.     require => File["likewise-source"],
  22.     refreshonly => true
  23.   }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment