# osc/puppet-module-openondemand architecture

> Architecture diagram of the GitHub repository osc/puppet-module-openondemand, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/osc/puppet-module-openondemand
- Repository: https://github.com/osc/puppet-module-openondemand

## Overview

This is a Puppet module for provisioning and configuring Open OnDemand. Administrators declare the `openondemand` class and supply Hiera parameters; Puppet manages package repositories, installation, Apache, application configuration, clusters, and service state. The README documents authentication, SSL, interactive apps, external app-config repositories, and multiple cluster adapters. Source excerpts are mostly tests rather than manifests, so relationships among those manifest components are limited to documented capabilities; task implementations are shown separately where their behavior is sampled.

Main entry points: [`manifests/init.pp`](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/init.pp) (Module entry), [`manifests/repo/apt.pp`](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/repo/apt.pp) (APT repository), [`manifests/repo/rpm.pp`](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/repo/rpm.pp) (RPM repository), [`manifests/install.pp`](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/install.pp) (Package install)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_provision["Provisioning"]
  node_main["Module entry<br/>[init.pp]"]
  node_apt["APT repository<br/>[apt.pp]"]
  node_rpm["RPM repository<br/>[rpm.pp]"]
  node_install["Package install<br/>[install.pp]"]
  node_apache["Apache setup<br/>[apache.pp]"]
end

subgraph group_oodconfig["OnDemand configuration"]
  node_config["Base config<br/>[config.pp]"]
  node_service["Service management<br/>[service.pp]"]
  node_clusters["Cluster definitions<br/>[cluster.pp]"]
  node_confs["OnDemand config files<br/>[conf.pp]"]
  node_apps["App installation<br/>[app.pp]"]
  node_appuser["User app config<br/>[usr.pp]"]
  node_appdev["Development app config<br/>[dev.pp]"]
  node_dashboard["Dashboard types"]
  node_dex["Dex types<br/>[dex_config.pp]"]
  node_batch["Batch Connect types<br/>[batch_connect.pp]"]
end

subgraph group_operations["Operations"]
  node_announce["Announcement task<br/>[announce.py]"]
  node_nginx["Nginx staging task<br/>[nginx_stage.py]"]
  node_maintenance["Maintenance task<br/>[maintenance.py]"]
end

node_admin(("Administrator"))
node_oodrepo[("OnDemand package repositories")]
node_ondemand["Open OnDemand"]
node_configrepo[("External app config repository")]

node_admin -->|"declares"| node_main
node_main -.->|"configures"| node_apt
node_main -.->|"configures"| node_rpm
node_apt -.->|"configures"| node_oodrepo
node_rpm -.->|"configures"| node_oodrepo
node_main -.->|"configures"| node_install
node_install -->|"installs"| node_ondemand
node_main -->|"configures"| node_apache
node_main -->|"configures"| node_config
node_main -->|"defines"| node_clusters
node_main -->|"defines"| node_confs
node_main -->|"configures"| node_apps
node_main -.->|"configures"| node_appuser
node_main -.->|"configures"| node_appdev
node_config -->|"notifies"| node_service
node_main -.->|"manages"| node_service
node_main -.->|"accepts settings"| node_dashboard
node_main -->|"accepts settings"| node_dex
node_clusters -->|"accepts settings"| node_batch
node_main -->|"uses settings for"| node_configrepo
node_main -.->|"provides task"| node_announce
node_main -.->|"provides task"| node_nginx
node_main -.->|"provides task"| node_maintenance

click node_main "https://github.com/osc/puppet-module-openondemand/blob/master/manifests/init.pp"
click node_apt "https://github.com/osc/puppet-module-openondemand/blob/master/manifests/repo/apt.pp"
click node_rpm "https://github.com/osc/puppet-module-openondemand/blob/master/manifests/repo/rpm.pp"
click node_install "https://github.com/osc/puppet-module-openondemand/blob/master/manifests/install.pp"
click node_apache "https://github.com/osc/puppet-module-openondemand/blob/master/manifests/apache.pp"
click node_config "https://github.com/osc/puppet-module-openondemand/blob/master/manifests/config.pp"
click node_service "https://github.com/osc/puppet-module-openondemand/blob/master/manifests/service.pp"
click node_clusters "https://github.com/osc/puppet-module-openondemand/blob/master/manifests/cluster.pp"
click node_confs "https://github.com/osc/puppet-module-openondemand/blob/master/manifests/conf.pp"
click node_apps "https://github.com/osc/puppet-module-openondemand/blob/master/manifests/install/app.pp"
click node_appuser "https://github.com/osc/puppet-module-openondemand/blob/master/manifests/app/usr.pp"
click node_appdev "https://github.com/osc/puppet-module-openondemand/blob/master/manifests/app/dev.pp"
click node_dashboard "https://github.com/osc/puppet-module-openondemand/blob/master/types/dashboard_layout.pp"
click node_dex "https://github.com/osc/puppet-module-openondemand/blob/master/types/dex_config.pp"
click node_batch "https://github.com/osc/puppet-module-openondemand/blob/master/types/batch_connect.pp"
click node_announce "https://github.com/osc/puppet-module-openondemand/blob/master/tasks/announce.py"
click node_nginx "https://github.com/osc/puppet-module-openondemand/blob/master/tasks/nginx_stage.py"
click node_maintenance "https://github.com/osc/puppet-module-openondemand/blob/master/tasks/maintenance.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_apt,node_rpm,node_install,node_apache toneBlue
class node_config,node_service,node_clusters,node_confs,node_apps,node_appuser,node_appdev,node_dashboard,node_dex,node_batch,node_oodrepo,node_configrepo toneAmber
class node_announce,node_nginx,node_maintenance toneMint
class node_admin,node_ondemand toneIndigo
```

## Components

### Provisioning

- [Module entry](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/init.pp): `manifests/init.pp`
- [APT repository](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/repo/apt.pp): `manifests/repo/apt.pp`
- [RPM repository](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/repo/rpm.pp): `manifests/repo/rpm.pp`
- [Package install](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/install.pp): `manifests/install.pp`
- [Apache setup](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/apache.pp): `manifests/apache.pp`

### OnDemand configuration

- [Base config](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/config.pp): `manifests/config.pp`
- [Service management](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/service.pp): `manifests/service.pp`
- [Cluster definitions](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/cluster.pp): `manifests/cluster.pp`
- [OnDemand config files](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/conf.pp): `manifests/conf.pp`
- [App installation](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/install/app.pp): `manifests/install/app.pp`
- [User app config](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/app/usr.pp): `manifests/app/usr.pp`
- [Development app config](https://github.com/osc/puppet-module-openondemand/blob/master/manifests/app/dev.pp): `manifests/app/dev.pp`
- [Dashboard types](https://github.com/osc/puppet-module-openondemand/blob/master/types/dashboard_layout.pp): `types/dashboard_layout.pp`
- [Dex types](https://github.com/osc/puppet-module-openondemand/blob/master/types/dex_config.pp): `types/dex_config.pp`
- [Batch Connect types](https://github.com/osc/puppet-module-openondemand/blob/master/types/batch_connect.pp): `types/batch_connect.pp`

### Operations

- [Announcement task](https://github.com/osc/puppet-module-openondemand/blob/master/tasks/announce.py): `tasks/announce.py`
- [Nginx staging task](https://github.com/osc/puppet-module-openondemand/blob/master/tasks/nginx_stage.py): `tasks/nginx_stage.py`
- [Maintenance task](https://github.com/osc/puppet-module-openondemand/blob/master/tasks/maintenance.py): `tasks/maintenance.py`

### Other components

- **Administrator**
- **OnDemand package repositories**
- **Open OnDemand**
- **External app config repository**

## Connections

- Administrator → Module entry: declares (evidence: `README.md`)
- Module entry → APT repository: configures
- Module entry → RPM repository: configures
- APT repository → OnDemand package repositories: configures
- RPM repository → OnDemand package repositories: configures
- Module entry → Package install: configures
- Package install → Open OnDemand: installs (evidence: `README.md`)
- Module entry → Apache setup: configures (evidence: `README.md`)
- Module entry → Base config: configures (evidence: `README.md`)
- Module entry → Cluster definitions: defines (evidence: `README.md`)
- Module entry → OnDemand config files: defines (evidence: `README.md`)
- Module entry → App installation: configures (evidence: `README.md`)
- Module entry → User app config: configures
- Module entry → Development app config: configures
- Base config → Service management: notifies
- Module entry → Service management: manages
- Module entry → Dashboard types: accepts settings
- Module entry → Dex types: accepts settings (evidence: `README.md`)
- Cluster definitions → Batch Connect types: accepts settings (evidence: `README.md`)
- Module entry → External app config repository: uses settings for (evidence: `README.md`)
- Module entry → Announcement task: provides task
- Module entry → Nginx staging task: provides task
- Module entry → Maintenance task: provides task
