Puppet Class: pulsar
- Defined in:
- manifests/init.pp
Overview
Class: pulsar
Main class that includes all other classes for the pulsar module.
49 50 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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'manifests/init.pp', line 49
class pulsar (
Boolean $manage_gcc = false,
Boolean $manage_git = false,
Boolean $manage_python = false,
Enum['present', 'absent'] $manage_python_dev = 'present',
Boolean $manage_python_use_epel = true,
Enum['present', 'absent'] $manage_python_virtualenv = 'present',
Stdlib::Absolutepath $pulsar_config_dir = '/opt/pulsar',
Stdlib::Absolutepath $pulsar_dir = '/opt/pulsar',
String $pulsar_dirmode = '0775',
Optional[Stdlib::Absolutepath] $pulsar_drmaa_path = undef,
String $pulsar_filemode = '0664',
Optional[Stdlib::Absolutepath] $pulsar_file_cache_dir = undef,
Optional[Stdlib::Absolutepath] $pulsar_galaxy_path = undef,
Optional[Stdlib::Absolutepath] $pulsar_galaxy_venv_path = undef,
Boolean $pulsar_galaxy_verify = false,
Stdlib::Httpurl $pulsar_git_repository = 'https://github.com/galaxyproject/pulsar',
String $pulsar_git_revision = 'master',
String $pulsar_group = 'galaxy',
Optional[String] $pulsar_job_directory_mode = undef,
Boolean $pulsar_job_run_as_user = false,
Stdlib::Absolutepath $pulsar_logdir = '/var/log/pulsar',
Integer $pulsar_num_backups = 10,
Hash $pulsar_named_managers = { '__default__' => {'type' =>'queued_python', 'num_concurrent_jobs' => 'i', } },
String $pulsar_owner = 'galaxy',
String $pulsar_persistence_dir = "${pulsar_dir}/files/persisted_data",
Boolean $pulsar_pip_install = true,
Optional[String] $pulsar_private_token = undef,
Array $pulsar_requirements = [ 'pulsar-app', ],
Stdlib::Absolutepath $pulsar_staging_dir = "${pulsar_dir}/files/staging",
String $pulsar_template_app = 'pulsar/app.yml.erb',
String $pulsar_template_local_env = 'pulsar/local_env.sh.erb',
String $pulsar_template_run = 'pulsar/run.sh.erb',
String $pulsar_template_service = 'pulsar/supervisor_pulsar.conf.erb',
Stdlib::Absolutepath $pulsar_tool_dependency_dir = "${pulsar_dir}/dependencies",
Boolean $pulsar_use_uuids = false,
Hash $server_ini_config = {},
Hash $server_ini_hash_params = {},
Boolean $service_enable = true,
Enum['running', 'stopped'] $service_ensure = 'running',
Boolean $service_manage_config = true,
Stdlib::Absolutepath $service_manage_configdir = '/etc/supervisor/conf.d',
String $service_name = 'pulsar',
) {
case $::operatingsystem {
'RedHat', 'CentOS': {
case $::operatingsystemmajrelease {
'7': {
contain pulsar::gcc
contain pulsar::git
contain pulsar::python
contain pulsar::install
contain pulsar::config
contain pulsar::service
Class['pulsar::gcc']
-> Class['pulsar::git']
-> Class['pulsar::python']
-> Class['pulsar::install']
-> Class['pulsar::config']
~> Class['pulsar::service']
}
default: {
fail("${::operatingsystem} ${::operatingsystemmajrelease} not supported")
}
}
}
default: {
fail("${::operatingsystem} not supported")
}
}
}
|