Puppet Class: idea::community
- Defined in:
- manifests/community.pp
Overview
Class: idea::community
Install IntelliJ IDEA Community Edition from the official vendor site. The required Java runtime environment will not be installed automatically.
Parameters
- version
-
Specify the version of IntelliJ IDEA which should be installed.
- base_url
-
Specify the base URL of the IntelliJ IDEA tarball. Usually this doesn’t need to be changed.
- url
-
Specify the absolute URL of the IntelliJ IDEA tarball. This overrides any version which has been set before.
- build
-
Specify the build number of IntelliJ IDEA inside the tarball. You have to specify this for every new version of IntelliJ IDEA since it doesn’t match the version number or anything else which could be automatically set.
- target
-
Specify the location of the symlink to the IntelliJ IDEA installation on the local filesystem.
- timeout
-
Download timeout passed to archive module.
Variables
The variables being used by this module are named exactly like the class parameters with the prefix ‘idea_’, e. g. idea_version and idea_url.
Examples
class { 'idea::community':
version => '12.1.3',
build => '129.451',
}
Authors
Jochen Schalanda <j.schalanda@smarchive.de>
Copyright
Copyright 2012, 2013 smarchive GmbH
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'manifests/community.pp', line 51
class idea::community(
$version = 'UNSET',
$base_url = 'UNSET',
$url = 'UNSET',
$build = 'UNSET',
$target = 'UNSET',
$timeout = 'UNSET',
) {
include idea::params
$version_real = $version ? {
'UNSET' => $::idea::params::version,
default => $version,
}
$base_url_real = $base_url ? {
'UNSET' => $::idea::params::base_url,
default => $base_url,
}
$url_real = $url ? {
'UNSET' => "${base_url_real}/ideaIC-${version_real}.tar.gz",
default => $url,
}
$target_real = $target ? {
'UNSET' => $::idea::params::target,
default => $target,
}
$timeout_real = $timeout ? {
'UNSET' => $::idea::params::timeout,
default => $timeout,
}
$build_real = $build ? {
'UNSET' => $::idea::params::build,
default => $build,
}
$community_build = "idea-IC-${build_real}"
class { 'idea::base':
version => $version_real,
url => $url_real,
build => $community_build,
target => $target_real,
timeout => $timeout_real,
}
}
|