Puppet Class: trove::taskmanager

Inherits:
trove
Defined in:
manifests/taskmanager.pp

Overview

Copyright © 2014 eNovance SAS <licensing@enovance.com>

Author: Emilien Macchi <emilien.macchi@enovance.com>

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Class: trove::taskmanager

Manages trove taskmanager package and service

Parameters:

enabled

(optional) Whether to enable the trove-taskmanager service Defaults to true

manage_service

(optional) Whether to start/stop the service Defaults to true

package_ensure

(optional) The state of the trove taskmanager package Defaults to ‘present’

guest_log_file

(optional) The path of file used for logging. If set to $::os_service_default, it will not log to any file. Defaults to ‘/var/log/trove/trove-guestagent.log’

guestagent_config_file

(optional) Trove guest agent configuration file. Defaults to ‘/etc/trove/trove-guestagent.conf’.

taskmanager_manager

Trove taskmanager entry point. Defaults to ‘trove.taskmanager.manager.Manager’.

DEPRECATED PARAMETERS

use_guestagent_template

(optional) Use template to provision trove guest agent configuration file. Defaults to false.

Parameters:

  • enabled (Any) (defaults to: true)
  • manage_service (Any) (defaults to: true)
  • guest_log_file (Any) (defaults to: '/var/log/trove/trove-guestagent.log')
  • package_ensure (Any) (defaults to: 'present')
  • guestagent_config_file (Any) (defaults to: '/etc/trove/trove-guestagent.conf')
  • taskmanager_manager (Any) (defaults to: 'trove.taskmanager.manager.Manager')
  • use_guestagent_template (Any) (defaults to: undef)


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
# File 'manifests/taskmanager.pp', line 55

class trove::taskmanager(
  $enabled                  = true,
  $manage_service           = true,
  $guest_log_file           = '/var/log/trove/trove-guestagent.log',
  $package_ensure           = 'present',
  $guestagent_config_file   = '/etc/trove/trove-guestagent.conf',
  $taskmanager_manager      = 'trove.taskmanager.manager.Manager',
  # DEPRECATED PARAMETERS
  $use_guestagent_template  = undef,
) inherits trove {

  include trove::deps
  include trove::params

  # basic service config
  trove_config {
    'DEFAULT/guest_config':        value => $guestagent_config_file;
    'DEFAULT/taskmanager_manager': value => $taskmanager_manager;
  }
  include trove::guestagent

  trove::generic_service { 'taskmanager':
    enabled        => $enabled,
    manage_service => $manage_service,
    package_name   => $::trove::params::taskmanager_package_name,
    service_name   => $::trove::params::taskmanager_service_name,
    package_ensure => $package_ensure,
  }

  # TO-DO(mmagr): Disabling transformer workarounds bug #1402055.
  #               Remove this hack as soon as bug is fixed.
  trove_config {
    'DEFAULT/exists_notification_transformer': ensure => absent,
  }
}