Skip to content

Latest commit

 

History

History
299 lines (175 loc) · 7.76 KB

REFERENCE.md

File metadata and controls

299 lines (175 loc) · 7.76 KB

Reference

Table of Contents

Classes

Public Classes

Private Classes

  • ccs_software::config: Install /etc/ccs files.
  • ccs_software::desktop: Add desktop menu entries for CCS apps.
  • ccs_software::install: Install ccs software.
  • ccs_software::log: Create /var/log/ccs and install logrotation.
  • ccs_software::pre: Install ccs software prerequisites
  • ccs_software::service: Manages ccs systemd service units

Classes

ccs_software

Installs and configures CCS software

Parameters

The following parameters are available in the ccs_software class:

installations

Data type: Hash[String, Hash]

Hash of hashes which describes one or more CCS "installations" to manage.

Options:

  • name-of-installation String: The top level hash keys are the name of the installation. Eg., foo would create the installation /opt/lsst/ccs/<foo>.

Supported keys in nested hashes:

  • repo_path - Overrides the default path to package list repo clone for this installation.
  • repo_url - Overrides the pkglist_repo_url param for this installation.
  • repo_ref - Overrides the pkglist_repo_ref param for this installation.
  • env - Overides the env param for this installation.
  • hostname - Overides the hostname param for this installation.
  • aliases - [Array] of "alias" links to create for the current installation.

Default value: {}

service_workdir

Data type: Optional[String]

CWD for services

Default value: undef

services

Data type: Hash[String, Array[Variant[String, Hash]]]

Hash of Arrays of services to create systemd service units for.

Options:

  • name-of-alias String: [Array] of service names/service executables (links under /opt/lsst//bin/) Alternatively, array element can also be a hash of the form { name: "h2db", key: "value", ... } Allowed keys: cmd, user, group, workdir, env, enable. Values specify the associated service file values/state.

Default value: {}

base_path

Data type: Stdlib::Absolutepath

Base path for [all] CCS installations.

Default value: '/opt/lsst'

etc_path

Data type: Stdlib::Absolutepath

Path to global CCS configuration files.

Default value: '/etc/ccs'

log_path

Data type: Stdlib::Absolutepath

Path to CCS log files.

Default value: '/var/log/ccs'

user

Data type: String

Name of the role user under which CCS services will be run and the owner of config files

Default value: 'ccs'

group

Data type: String

Name of the role group

Default value: 'ccs'

adm_user

Data type: String

Name of the admin role user which owns many of the installed files

Default value: 'ccsadm'

adm_group

Data type: String

Name of the admin role group

Default value: 'ccsadm'

influx_url

Data type: String[1]

String giving URL of the influxDB server.

Default value: 'https://camera-influxdb.dev.lsst.org:443'

influx_name

Data type: String[1]

String giving name of the influxDB instance.

Default value: 'grafana'

influx_username

Data type: Sensitive[String[1]]

Sensitive string giving influxDB username.

Default value: Sensitive('user')

influx_password

Data type: Sensitive[String[1]]

Sensitive string giving influxDB password.

Default value: Sensitive('pass')

kafka_files

Data type: Hash[String, Hash]

Optional hash of kafka properties files and associated values. Eg: data-int: bootstrap_url: "bootstrap_url" registry_url: "registry_url"

Default value: {}

kafka_auths

Data type: Hash[String, Array[Variant[Sensitive[String],String]]]

Optional (but required for each key of kafka_files) hash of kafka files and the associated username and password. Eg: data-int: - "user" - "pass"

Default value: {}

service_email

Data type: String

String giving email address (or comma separated addresses) to receive change of service status emails from systemd.

Default value: 'root@localhost'

pkglist_repo_url

Data type: Stdlib::HTTPUrl

URL of the git repo to use for install.py package lists by default. This may be overriden in a installations hash with the repo_url key.

Default value: 'https://github.com/lsst-camera-dh/dev-package-lists'

release_repo_url

Data type: Stdlib::HTTPUrl

URL of the repo which contains the install.py script.

Default value: 'https://github.com/lsst-it/release'

release_repo_ref

Data type: String

install.py git repo ref.

Default value: 'IT-4348/python3'

env

Data type: Optional[String]

Name of the package list environment. Eg., ComCam. This may be overriden in a installation hash with the env key.

Default value: undef

hostname

Data type: Optional[String]

The "short" hostname used to select the installation set in a package lists repo.

Default value: $facts['networking']['hostname']

desktop

Data type: Boolean

Install desktop shortcuts.

Default value: false

git_force

Data type: Boolean

Force the update of managed git clones. This is done by passing force => true to vcsrepo type resources.

Default value: false

global_properties

Data type: Array[String]

Array of extra strings to add to the ccsGlobal.properties file.

Default value: []

udp_properties

Data type: Array[String]

Array of extra strings to add to the udp_ccs.properties file.

Default value: []