https://bugzilla.novell.com/show_bug.cgi?id=527108
https://bugzilla.novell.com/show_bug.cgi?id=527108#c3
David Greaves changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david@dgreaves.com
--- Comment #3 from David Greaves 2011-09-18 18:37:26 UTC ---
In case this is useful:
class repo{
file { '/etc/zypper-keys':
ensure => directory,
}
}
define repo::key( $keyfile ) {
# Make the File[zypper-keys] visible
include repo
file { $keyfile:
require => File["/etc/zypper-keys"],
path => "/etc/zypper-keys/$keyfile",
source => "puppet:///modules/$caller_module_name/$keyfile",
notify => Exec["Importkey-$keyfile"],
}
exec { "Importkey-$keyfile":
command => "/bin/rpm --import /etc/zypper-keys/$keyfile",
refreshonly => true,
returns => [0, 1], #ok if key was already added
}
}
Usage snippet:
include repo
repo::key { "MeeGo-Tools":
keyfile => "MeeGo-Tools.key",
}
zypprepo { "MeeGo_Tools":
descr => "MeeGo tools (openSUSE_$z_rel)",
baseurl => "http://repo.meego.com/MeeGo/tools/repos/opensuse/$z_rel/",
type => rpm-md,
enabled => 1,
autorefresh => 1,
gpgcheck => 0,
require => Repo::Key["MeeGo-Tools"],
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.