Puppet Class: idea::ultimate

Defined in:
manifests/ultimate.pp

Overview

Class: idea::ultimate

Install IntelliJ IDEA Ultimate 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::ultimate':
  version => '12.1.3',
  build   => '129.451',
}

Authors

Jochen Schalanda <j.schalanda@smarchive.de>

Copyright 2012, 2013 smarchive GmbH

Parameters:

  • version (Any) (defaults to: 'UNSET')
  • base_url (Any) (defaults to: 'UNSET')
  • url (Any) (defaults to: 'UNSET')
  • build (Any) (defaults to: 'UNSET')
  • target (Any) (defaults to: 'UNSET')
  • timeout (Any) (defaults to: 'UNSET')


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/ultimate.pp', line 51

class idea::ultimate(
  $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}/ideaIU-${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,
  }

  $ultimate_build = "idea-IU-${build_real}"

  class { 'idea::base':
    version => $version_real,
    url     => $url_real,
    build   => $ultimate_build,
    target  => $target_real,
    timeout => $timeout_real,
  }
}