Getting distro icons from systems themselves

Hello,

Richard Jones had an interesting idea of fetching distro icons directly
from systems themselves. This is actually what virt-manager does today:

wget -qO- https://raw.github.com/libguestfs/libguestfs/master/src/inspect-icon.c | grep define | grep _ICON

#define FEDORA_ICON "/usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png"
#define SHADOWMAN_ICON "/usr/share/pixmaps/redhat/shadowman-transparent.png"
#define DEBIAN_ICON "/usr/share/pixmaps/debian-logo.png"
#define UBUNTU_ICON "/usr/share/icons/gnome/24x24/places/ubuntu-logo.png"
#define MAGEIA_ICON "/usr/share/icons/mageia.png"
#define OPENSUSE_ICON "/usr/share/icons/hicolor/24x24/apps/distributor.png"

I was wondering if we can do the same for Foreman. My idea is to abuse
facter for that sending this as a base64 encoded fact, but only for the
first time.

Dedicated agent for that is an overkill, but the other solution would be
"pull" method, via ssh perhaps. We'd need to do this usually once for a
given operating system.

Ideas?

··· -- Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

It seems like these change so few, it is just as easier server side.
– b

··· On 02/14/2014 11:18 AM, Lukas Zapletal wrote: > Hello, > > Richard Jones had an interesting idea of fetching distro icons directly > from systems themselves. This is actually what virt-manager does today: > > wget -qO- https://raw.github.com/libguestfs/libguestfs/master/src/inspect-icon.c | grep define | grep _ICON > > #define FEDORA_ICON "/usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png" > #define SHADOWMAN_ICON "/usr/share/pixmaps/redhat/shadowman-transparent.png" > #define DEBIAN_ICON "/usr/share/pixmaps/debian-logo.png" > #define UBUNTU_ICON "/usr/share/icons/gnome/24x24/places/ubuntu-logo.png" > #define MAGEIA_ICON "/usr/share/icons/mageia.png" > #define OPENSUSE_ICON "/usr/share/icons/hicolor/24x24/apps/distributor.png" > > I was wondering if we can do the same for Foreman. My idea is to abuse > facter for that sending this as a base64 encoded fact, but only for the > first time. > > Dedicated agent for that is an overkill, but the other solution would be > "pull" method, via ssh perhaps. We'd need to do this usually once for a > given operating system. > > Ideas? >