Initial support for installing Google products (chrome and desktop).
This commit is contained in:
parent
cfa30c24bb
commit
52db72bb32
1 changed files with 40 additions and 0 deletions
40
google/manifests/init.pp
Normal file
40
google/manifests/init.pp
Normal file
|
@ -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"],
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue