|
15 | 15 |
|
16 | 16 | argument_specs:
|
17 | 17 | main:
|
18 |
| - short_description: Install Prometheus. |
| 18 | + short_description: Install, configure, and provision Prometheus server with optional TLS/HTTPS support |
19 | 19 | description:
|
20 |
| - - Install Prometheus from the distribution archive file. |
21 |
| - - Set up SELinux to permissive mode (to ensure Prometheus can run without policy restrictions). |
22 |
| - - Set up the local time-series database. |
23 |
| - - Set up the service user and group. |
24 |
| - - Install a basic configuration. |
| 20 | + - Create a dedicated system user and group for Prometheus. |
| 21 | + - Create necessary directories for Prometheus configuration and TSDB storage. |
| 22 | + - Download the Prometheus distribution tarball from the official source. |
| 23 | + - Extract the Prometheus binary and related files to the installation directory. |
| 24 | + - Set SELinux to permissive mode on the target host. |
| 25 | + - Install a basic prometheus.yml configuration file. |
| 26 | + - Set up a systemd service for Prometheus. |
| 27 | + - Enable and start the Prometheus service, ensuring it runs on system boot. |
| 28 | + - Optionally enable TLS/HTTPS support for secure endpoints. |
| 29 | + - Optionally configure a Prometheus web config file for TLS settings. |
| 30 | + - Allow flexible configuration of scrape targets and storage locations via variables. |
25 | 31 | author: Cloudera Labs
|
26 | 32 | version_added: "2.4.0"
|
27 | 33 | options:
|
| 34 | + prometheus_tls_enabled: |
| 35 | + description: Enable or disable TLS/SSL for Prometheus (HTTPS support). |
| 36 | + type: bool |
| 37 | + required: false |
| 38 | + default: false |
| 39 | + prometheus_tls_cert_path: |
| 40 | + description: Path to the TLS certificate file for Prometheus. |
| 41 | + type: str |
| 42 | + required: false |
| 43 | + default: /etc/pki/tls/certs/prometheus.crt |
| 44 | + prometheus_tls_key_path: |
| 45 | + description: Path to the TLS private key file for Prometheus. |
| 46 | + type: str |
| 47 | + required: false |
| 48 | + default: /etc/pki/tls/private/prometheus.key |
| 49 | + prometheus_web_config_file: |
| 50 | + description: Path to the Prometheus web config file (for TLS settings). |
| 51 | + type: str |
| 52 | + required: false |
| 53 | + default: /etc/prometheus/web.yml |
28 | 54 | prometheus_tarball_url:
|
29 | 55 | description: URL to the Prometheus distribution archive file.
|
30 | 56 | type: str
|
|
0 commit comments