Puppet Class: st2::profile::fullinstall

Inherits:
st2
Defined in:
manifests/profile/fullinstall.pp

Summary

This class performs a full default install of StackStorm and all its components on a single node.

Overview

Components:

* RabbitMQ
* Python
* MongoDB
* NodeJS
* nginx

Examples:

Basic Usage

include st2::profile::fullinstall

Customizing parameters

# Customizations are done via the main st2 class
class { 'st2':
  # ... assign custom parameters
}

include st2::profile::fullinstall


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'manifests/profile/fullinstall.pp', line 21

class st2::profile::fullinstall inherits st2 {

  anchor { 'st2::begin': }
  -> anchor { 'st2::bootstrap': }
  -> anchor { 'st2::pre_reqs': }
  -> anchor { 'st2::main': }
  -> anchor { 'st2::end': }

  Anchor['st2::begin']
  -> Anchor['st2::bootstrap']
  -> class { 'st2::profile::facter': }
  -> class { 'st2::repo': }
  -> class { 'st2::profile::selinux': }
  -> Anchor['st2::pre_reqs']
  -> class { 'st2::profile::redis': }
  -> class { 'st2::profile::python': }
  -> class { 'st2::profile::nodejs': }
  -> class { 'st2::profile::rabbitmq': }
  -> class { 'st2::profile::mongodb': }
  -> Anchor['st2::main']
  -> class { 'st2::profile::client': }
  -> class { 'st2::profile::server': }
  -> class { 'st2::profile::web': }
  -> class { 'st2::profile::chatops': }
  -> Anchor['st2::end']

  include st2::auth
  include st2::packs
  include st2::kvs

  # If user has not defined a pack "st2", install it from the Exchange.
  if ! defined(St2::Pack['st2']) {
    ensure_resource('st2::pack', 'st2', {'ensure' => 'present'})
  }
}