-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename class selenium::install -> selenium and refactor it as common …
…base
- Loading branch information
Joshua Hoblitt
committed
Oct 2, 2013
1 parent
50e63e6
commit 8523e66
Showing
8 changed files
with
197 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
# == Class: megaraid::lsiget | ||
# | ||
# installs the `lsiget` utility for LSI MegaRAID controllers | ||
# | ||
# See: http://mycusthelp.info/LSI/_cs/AnswerDetail.aspx?inc=8264 | ||
# == Class: selenium | ||
# | ||
# | ||
# === Parameters | ||
|
@@ -12,27 +8,35 @@ | |
# | ||
# === Examples | ||
# | ||
# class{ 'megaraid::lsiget': } | ||
# class{ 'selenium': } | ||
# | ||
# | ||
# === Authors | ||
# | ||
# Joshua Hoblitt <[email protected]> | ||
# | ||
# | ||
class selenium::install( | ||
$version = '2.35.0', | ||
$url = undef, | ||
) { | ||
class selenium( | ||
$user = $selenium::params::user, | ||
$group = $selenium::params::group, | ||
$install_root = $selenium::params::install_root, | ||
$java = $selenium::params::java, | ||
$version = $selenium::params::version, | ||
$url = undef, | ||
) inherits selenium::params { | ||
validate_string($user) | ||
validate_string($group) | ||
validate_string($install_root) | ||
validate_string($java) | ||
validate_string($version) | ||
validate_string($url) | ||
|
||
include wget | ||
|
||
user { $selenium::server::user: | ||
gid => [$selenium::server::group], | ||
user { $user: | ||
gid => [$group], | ||
} | ||
group { $selenium::server::group: } | ||
group { $group: } | ||
|
||
$jar_name = "selenium-server-standalone-${version}.jar" | ||
|
||
|
@@ -43,16 +47,16 @@ | |
} | ||
|
||
File { | ||
owner => $selenium::server::user, | ||
group => $selenium::server::group, | ||
owner => $user, | ||
group => $group, | ||
} | ||
|
||
file { $selenium::server::install_root: | ||
file { $install_root: | ||
ensure => directory, | ||
} | ||
|
||
$jar_path = "${selenium::server::install_root}/jars" | ||
$log_path = "${selenium::server::install_root}/log" | ||
$jar_path = "${install_root}/jars" | ||
$log_path = "${install_root}/log" | ||
|
||
file { $jar_path: | ||
ensure => directory, | ||
|
@@ -73,7 +77,7 @@ | |
source => $jar_url, | ||
destination => "${jar_path}/${jar_name}", | ||
timeout => 90, | ||
execuser => $selenium::server::user, | ||
execuser => $user, | ||
require => File[$jar_path], | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.