Skip to content

Latest commit

 

History

History
136 lines (103 loc) · 7.75 KB

File metadata and controls

136 lines (103 loc) · 7.75 KB

Description

This module performs the following tasks:

  • store an HTCondor Pool password in Google Cloud Secret Manager
    • will generate a new password if one is not supplied
  • create service accounts for an HTCondor Access Point and Central Manager
  • create a Toolkit runner for an Access Point
  • create a Toolkit runner for a Central Manager

It is expected to be used with the htcondor-install and htcondor-execute-point modules.

Example

The following code snippet uses this module to create startup scripts that install the HTCondor software and adds custom configurations using [htcondor-configure] and htcondor-execute-point.

- id: htcondor_install
  source: community/modules/scripts/htcondor-install

- id: htcondor_configure_central_manager
  source: modules/scripts/startup-script
  settings:
    runners:
    - $(htcondor_install.install_htcondor_runner)
    - $(htcondor_configure.central_manager_runner)

- id: htcondor_configure_access_point
  source: modules/scripts/startup-script
  settings:
    runners:
    - $(htcondor_install.install_htcondor_runner)
    - $(htcondor_install.install_autoscaler_deps_runner)
    - $(htcondor_install.install_autoscaler_runner)
    - $(htcondor_configure.access_point_runner)
    - $(htcondor_execute_point.configure_autoscaler_runner)

A full example can be found in the examples README.

Support

HTCondor is maintained by the Center for High Throughput Computing at the University of Wisconsin-Madison. Support for HTCondor is available via:

License

Copyright 2022 Google LLC

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.

Requirements

Name Version
terraform >= 0.13.0
google >= 3.83
random >= 3.0

Providers

Name Version
google >= 3.83
random >= 3.0

Modules

Name Source Version
access_point_service_account terraform-google-modules/service-accounts/google ~> 4.1
central_manager_service_account terraform-google-modules/service-accounts/google ~> 4.1
execute_point_service_account terraform-google-modules/service-accounts/google ~> 4.1

Resources

Name Type
google_secret_manager_secret.pool_password resource
google_secret_manager_secret_iam_member.access_point resource
google_secret_manager_secret_iam_member.central_manager resource
google_secret_manager_secret_iam_member.execute_point resource
google_secret_manager_secret_version.pool_password resource
random_password.pool resource

Inputs

Name Description Type Default Required
access_point_roles Project-wide roles for HTCondor Access Point service account list(string)
[
"roles/compute.instanceAdmin",
"roles/monitoring.metricWriter",
"roles/logging.logWriter",
"roles/storage.objectViewer"
]
no
central_manager_roles Project-wide roles for HTCondor Central Manager service account list(string)
[
"roles/monitoring.metricWriter",
"roles/logging.logWriter",
"roles/storage.objectViewer"
]
no
deployment_name HPC Toolkit deployment name. HTCondor cloud resource names will include this value. string n/a yes
execute_point_roles Project-wide roles for HTCondor Execute Point service account list(string)
[
"roles/monitoring.metricWriter",
"roles/logging.logWriter",
"roles/storage.objectViewer"
]
no
pool_password HTCondor Pool Password string null no
project_id Project in which HTCondor pool will be created string n/a yes

Outputs

Name Description
access_point_runner Toolkit Runner to configure an HTCondor Access Point
access_point_service_account HTCondor Access Point Service Account (e-mail format)
central_manager_runner Toolkit Runner to configure an HTCondor Central Manager
central_manager_service_account HTCondor Central Manager Service Account (e-mail format)
execute_point_runner Toolkit Runner to configure an HTCondor Execute Point
execute_point_service_account HTCondor Execute Point Service Account (e-mail format)
pool_password_secret_id Google Cloud Secret Manager ID containing HTCondor Pool Password