From 52db72bb32bbd45f943fcac4aeaf366eb2701283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Fri, 18 Mar 2011 15:06:24 +0200 Subject: [PATCH] Initial support for installing Google products (chrome and desktop). --- google/manifests/init.pp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 google/manifests/init.pp diff --git a/google/manifests/init.pp b/google/manifests/init.pp new file mode 100644 index 0000000..dad7cde --- /dev/null +++ b/google/manifests/init.pp @@ -0,0 +1,40 @@ +# Install common prequisites for Google products. +# +class google::common { + + case $operatingsystem { + "centos","fedora": { + include yum::repo::google + } + default: { + fail("Google products via puppet not supported on ${operatingsystem}") + } + } + +} + + +# Install Google Chrome browser. +# +class google::chrome { + + include google::common + package { "google-chrome": + ensure => installed, + require => Class["google::common"], + } + +} + + +# Install Google Desktop. +# +class google::desktop { + + include google::common + package { "google-desktop-linux": + ensure => installed, + require => Class["google::common"], + } + +}