Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

OMSA use Dell community source on Debian

  • Loading branch information...
commit e7e46b35cbbe43dce51fc367071bdac02300f5ae 1 parent e579a79
@mremy mremy authored
Showing with 108 additions and 14 deletions.
  1. +83 −3 manifests/openmanage/debian.pp
  2. +25 −11 manifests/params.pp
View
86 manifests/openmanage/debian.pp
@@ -4,6 +4,7 @@
# Install openmanage tools on Debian
#
class dell::openmanage::debian {
+
apt::key {'22D16719':
ensure => present,
content => '-----BEGIN PGP PUBLIC KEY BLOCK-----
@@ -38,18 +39,97 @@
-----END PGP PUBLIC KEY BLOCK-----',
}
+ apt::key { '34D8786F':
+ ensure => present,
+ content => '-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1.4.11 (GNU/Linux)
+
+mQINBE9RLYYBEADEAmJvn2y182B6ZUr+u9I29f2ue87p6HQreVvPbTjiXG4z2/k0
+l/Ov0DLImXFckaeVSSrqjFnEGUd3DiRr9pPb1FqxOseHRZv5IgjCTKZyj9Jvu6bx
+U9WL8u4+GIsFzrgS5G44g1g5eD4Li4sV46pNBTp8d7QEF4e2zg9xk2mcZKaT+STl
+O0Q2WKI7qN8PAoGd1SfyW4XDsyfaMrJKmIJTgUxe9sHGj+UmTf86ZIKYh4pRzUQC
+WBOxMd4sPgqVfwwykg/y2CQjrorZcnUNdWucZkeXR0+UCR6WbDtmGfvN5H3htTfm
+Nl84Rwzvk4NT/By4bHy0nnX+WojeKuygCZrxfpSqJWOKhQeH+YHKm1oVqg95jvCl
+vBYTtDNkpJDbt4eBAaVhuEPwjCBsfff/bxGCrzocoKlh0+hgWDrr2S9ePdrwv+rv
+2cgYfUcXEHltD5Ryz3u5LpiC5zDzNYGFfV092xbpG/B9YJz5GGj8VKMslRhYpUjA
+IpBDlYhOJ+0uVAAKPeeZGBuFx0A1y/9iutERinPx8B9jYjO9iETzhKSHCWEov/yp
+X6k17T8IHfVj4TSwL6xTIYFGtYXIzhInB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I
+OEwV4+xckAeKGUBIHOpyQq1fn5bz8IituSF3xSxdT2qfMGsoXmvfo2l8T9QdmPyd
+b4ZGYhv24GFQZoyMAATLbfPmKvXJAqomSbp0RUjeRCom7dbD1FfLRbtpRD73zHar
+BhYYZNLDMls3IIQTFuRvNeJ7XfGwhkSE4rtY91J93eM77xNr4sXeYG+RQx4y5Hz9
+9Q/gLas2celP6Zp8Y4OECdveX3BA0ytI8L02wkoJ8ixZnpGskMl4A0UYI4w4jZ/z
+dqdpc9wPhkPj9j+eF2UInzWOavuCXNmQz1WkLP/qlR8DchJtUKlgZq9ThshK4gTE
+SNnmxzdpR6pYJGbEDdFyZFe5xHRWSlrC3WTbzg==
+=WBHf
+-----END PGP PUBLIC KEY BLOCK-----',
+ }
+
$sources_list_content = $::lsbdistcodename ? {
- /lenny|squeeze/ => "deb ftp://ftp.sara.nl/pub/sara-omsa dell6 sara\n",
- default => "deb ftp://ftp.sara.nl/pub/sara-omsa dell sara\n",
+ /lenny/ => "deb ftp://ftp.sara.nl/pub/sara-omsa dell6 sara\n",
+ default => "deb ${::dell::params::omsa_url_base}${::dell::params::omsa_version}/\n",
+ }
+
+ $omsa_pkg_name = $::lsbdistcodename ? {
+ /lenny/ => 'dellomsa',
+ default => [ 'srvadmin-base', 'srvadmin-storageservices' ],
}
apt::sources_list {'dell':
content => $sources_list_content,
}
- package {'dellomsa':
+ package { $omsa_pkg_name:
ensure => present,
require => [Apt::Key['22D16719'],Exec['apt-get_update']],
before => Service['dataeng'],
}
+
}
View
36 manifests/params.pp
@@ -6,19 +6,33 @@
#
class dell::params {
- $omsa_url_base = $::dell_omsa_url_base ? {
- '' => 'http://linux.dell.com/repo/hardware/',
- default => $::dell_omsa_url_base,
- }
+ case $::osfamily {
- $omsa_url_args_indep = $::dell_omsa_url_args_indep ? {
- '' => 'osname=el$releasever&basearch=$basearch&native=1&dellsysidpluginver=$dellsysidpluginver',
- default => $::dell_omsa_url_args_indep,
- }
+ 'RedHat': {
+ $omsa_url_base = $::dell_omsa_url_base ? {
+ '' => 'http://linux.dell.com/repo/hardware/',
+ default => $::dell_omsa_url_base,
+ }
+
+ $omsa_url_args_indep = $::dell_omsa_url_args_indep ? {
+ '' => 'osname=el$releasever&basearch=$basearch&native=1&dellsysidpluginver=$dellsysidpluginver',
+ default => $::dell_omsa_url_args_indep,
+ }
+
+ $omsa_url_args_specific = $::dell_omsa_url_args_specific ? {
+ '' => 'osname=el$releasever&basearch=$basearch&native=1&sys_ven_id=$sys_ven_id&sys_dev_id=$sys_dev_id&dellsysidpluginver=$dellsysidpluginver',
+ default => $::dell_omsa_url_args_specific,
+ }
+ }
+
+ 'Debian': {
+ $omsa_url_base = $::dell_omsa_url_base ? {
+ '' => 'http://linux.dell.com/repo/community/deb/',
+ default => $::dell_omsa_url_base,
+ }
+ }
- $omsa_url_args_specific = $::dell_omsa_url_args_specific ? {
- '' => 'osname=el$releasever&basearch=$basearch&native=1&sys_ven_id=$sys_ven_id&sys_dev_id=$sys_dev_id&dellsysidpluginver=$dellsysidpluginver',
- default => $::dell_omsa_url_args_specific,
+ default: { fail("Unsupported OS family: ${::osfamily}") }
}
$omsa_version = $::dell_omsa_version ? {

0 comments on commit e7e46b3

Please sign in to comment.
Something went wrong with that request. Please try again.