converted docker_htcondor to role
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
use ROLE:centralmanager
|
||||
# ALLOW_WRITE per default on * -> following has no effect yet
|
||||
ALLOW_WRITE_COLLECTOR=$(ALLOW_WRITE) condor-exec.htc.local condor-sub.htc.local
|
92
roles/docker-htcondor/files/conf/common/condor_config
Normal file
92
roles/docker-htcondor/files/conf/common/condor_config
Normal file
@@ -0,0 +1,92 @@
|
||||
######################################################################
|
||||
##
|
||||
## condor_config
|
||||
##
|
||||
## This is the global configuration file for condor. This is where
|
||||
## you define where the local config file is. Any settings
|
||||
## made here may potentially be overridden in the local configuration
|
||||
## file. KEEP THAT IN MIND! To double-check that a variable is
|
||||
## getting set from the configuration file that you expect, use
|
||||
## condor_config_val -v <variable name>
|
||||
##
|
||||
## condor_config.annotated is a more detailed sample config file
|
||||
##
|
||||
## Unless otherwise specified, settings that are commented out show
|
||||
## the defaults that are used if you don't define a value. Settings
|
||||
## that are defined here MUST BE DEFINED since they have no default
|
||||
## value.
|
||||
##
|
||||
######################################################################
|
||||
|
||||
## Where have you installed the bin, sbin and lib condor directories?
|
||||
RELEASE_DIR = /usr
|
||||
|
||||
## Where is the local condor directory for each host? This is where the local config file(s), logs and
|
||||
## spool/execute directories are located. this is the default for Linux and Unix systems.
|
||||
LOCAL_DIR = /var
|
||||
|
||||
## Where is the machine-specific local config file for each host?
|
||||
# LOCAL_CONFIG_FILE = /etc/condor/condor_config.local
|
||||
LOCAL_CONFIG_FILE = /etc/condor/condor_config_$(HOSTNAME).local
|
||||
## If your configuration is on a shared file system, then this might be a better default
|
||||
#LOCAL_CONFIG_FILE = $(RELEASE_DIR)/etc/$(HOSTNAME).local
|
||||
## If the local config file is not present, is it an error? (WARNING: This is a potential security issue.)
|
||||
REQUIRE_LOCAL_CONFIG_FILE = false
|
||||
|
||||
## The normal way to do configuration with RPMs is to read all of the
|
||||
## files in a given directory that don't match a regex as configuration files.
|
||||
## Config files are read in lexicographic order.
|
||||
LOCAL_CONFIG_DIR = /etc/condor/config.d
|
||||
#LOCAL_CONFIG_DIR_EXCLUDE_REGEXP = ^((\..*)|(.*~)|(#.*)|(.*\.rpmsave)|(.*\.rpmnew))$
|
||||
|
||||
##
|
||||
## Do NOT use host-based security by default.
|
||||
##
|
||||
## This was the default for the 8.8 series (and earlier), but it is
|
||||
## intrinsically insecure. To make the 9.0 series secure by default, we
|
||||
## commented it out.
|
||||
##
|
||||
## You should seriously consider improving your security configuration.
|
||||
##
|
||||
## To continue to use your old security configuration, knowing that it is
|
||||
## insecure, add the line 'use SECURITY : HOST_BASED' to your local
|
||||
## configuration directory. Don't just uncomment the final line in this
|
||||
## comment block; changes in this file may be lost during your next upgrade.
|
||||
## The following shell command will make the change on most Linux systems.
|
||||
##
|
||||
## echo 'use SECURITY : HOST_BASED' >> $(condor_config_val LOCAL_CONFIG_DIR)/00-insecure.config
|
||||
##
|
||||
|
||||
## To expand your condor pool beyond a single host, set ALLOW_WRITE to match all of the hosts
|
||||
#ALLOW_WRITE = *.cs.wisc.edu
|
||||
## FLOCK_FROM defines the machines that grant access to your pool via flocking. (i.e. these machines can join your pool).
|
||||
#FLOCK_FROM =
|
||||
## FLOCK_TO defines the central managers that your schedd will advertise itself to (i.e. these pools will give matches to your schedd).
|
||||
#FLOCK_TO = condor.cs.wisc.edu, cm.example.edu
|
||||
|
||||
##--------------------------------------------------------------------
|
||||
## Values set by the rpm patch script:
|
||||
##--------------------------------------------------------------------
|
||||
|
||||
## For Unix machines, the path and file name of the file containing
|
||||
## the pool password for password authentication.
|
||||
#SEC_PASSWORD_FILE = $(LOCAL_DIR)/lib/condor/pool_password
|
||||
|
||||
## Pathnames
|
||||
RUN = $(LOCAL_DIR)/run/condor
|
||||
LOG = $(LOCAL_DIR)/log/condor
|
||||
LOCK = $(LOCAL_DIR)/lock/condor
|
||||
SPOOL = $(LOCAL_DIR)/lib/condor/spool
|
||||
EXECUTE = $(LOCAL_DIR)/lib/condor/execute
|
||||
BIN = $(RELEASE_DIR)/bin
|
||||
LIB = $(RELEASE_DIR)/lib64/condor
|
||||
INCLUDE = $(RELEASE_DIR)/include/condor
|
||||
SBIN = $(RELEASE_DIR)/sbin
|
||||
LIBEXEC = $(RELEASE_DIR)/libexec/condor
|
||||
SHARE = $(RELEASE_DIR)/share/condor
|
||||
|
||||
PROCD_ADDRESS = $(RUN)/procd_pipe
|
||||
|
||||
JAVA_CLASSPATH_DEFAULT = $(SHARE) .
|
||||
|
||||
## Install the minicondor package to run HTCondor on a single node
|
@@ -0,0 +1,64 @@
|
||||
|
||||
HostKey _INSERT_HOST_KEY_
|
||||
AuthorizedKeysFile _INSERT_AUTHORIZED_KEYS_FILE_
|
||||
|
||||
# The following option is not supported by all recent versions of OpenSSH,
|
||||
# so instead we rely on injection of the shell setup command in the authorized
|
||||
# keys file.
|
||||
#ForceCommand _INSERT_FORCE_COMMAND_
|
||||
|
||||
# as a convenience to users, allow remote setting of environment
|
||||
# since sshd is running as the job uid, there isn't really a security concern
|
||||
AcceptEnv *
|
||||
|
||||
Subsystem sftp /usr/libexec/openssh/sftp-server
|
||||
|
||||
# prevent sshd from freaking out about reading files from inside
|
||||
# a tmp-like directory
|
||||
StrictModes no
|
||||
|
||||
# Rejection by tcp wrappers is not logged at INFO or VERBOSE log levels,
|
||||
# so to make diagnosis of problems easier, we use DEBUG.
|
||||
LogLevel DEBUG
|
||||
|
||||
X11Forwarding yes
|
||||
|
||||
# By default, OpenSSH uses the ipv6 loopback even if ipv6 is disabled in the
|
||||
# kernel. This forces OpenSSH to use the "local" network instead
|
||||
X11UseLocalhost no
|
||||
|
||||
# The following settings are recommended for good security.
|
||||
# In particular, only FIPS 140-2 algorithms are used.
|
||||
# URLs for extra information re FIPS security compliance:
|
||||
# https://rhel7stig.readthedocs.io/en/latest/
|
||||
# https://www.stigviewer.com/stig/red_hat_enterprise_linux_7/
|
||||
# https://people.redhat.com/swells/scap-security-guide/tables/table-rhel7-stig-manual.html
|
||||
|
||||
#-FIPS High Severity
|
||||
Protocol 2
|
||||
PermitEmptyPasswords no
|
||||
|
||||
#-FIPS Medium Severity
|
||||
# Note: Ciphers and MACs below will be incompatible with RHEL5 or earlier.
|
||||
Ciphers aes128-ctr,aes192-ctr,aes256-ctr
|
||||
MACs hmac-sha2-256,hmac-sha2-512
|
||||
PermitRootLogin no
|
||||
PermitUserEnvironment no
|
||||
GSSAPIAuthentication no
|
||||
KerberosAuthentication no
|
||||
HostbasedAuthentication no
|
||||
IgnoreRhosts yes
|
||||
IgnoreUserKnownHosts yes
|
||||
PrintLastLog yes
|
||||
UsePrivilegeSeparation sandbox
|
||||
Compression delayed
|
||||
|
||||
#-Recommended for security, but left out ssh_to_job config
|
||||
# because they provide minimal value and are likely to annoy
|
||||
# users or generate needless warnings in the ssh_to_job setting.
|
||||
#
|
||||
# ClientAliveInterval 600 # Note: condor_submit -i sets TMOUT
|
||||
# ClientAliveCountMax 0
|
||||
# banner=/etc/issue # Set to your warning banner
|
||||
# StrictModes yes # Can't set due to tmp-like directory
|
||||
# RhostsRSAAuthentication no # Obsolete Protocol version 1 option
|
@@ -0,0 +1,26 @@
|
||||
##
|
||||
## Default security settings
|
||||
##
|
||||
## Host-based security was the default for the 8.8 series (and earlier).
|
||||
##
|
||||
## Host-based security assumes that all users on a machine are trusted.
|
||||
## For example, if host-based security trusts that a given machine can
|
||||
## run jobs, then any user who can start a process on that machine can
|
||||
## start a startd that can "steal" jobs from the system.
|
||||
#
|
||||
## To help make HTCondor secure by default, we removed host-based security
|
||||
## from the default configuration file
|
||||
## (/etc/condor/condor_config).
|
||||
##
|
||||
## New installations of HTCondor should be made using the get_htcondor tool,
|
||||
## which can automatically establish IDTOKENS-based security across a multi-
|
||||
## node pool. For existing installations, we recommend you
|
||||
## consider improving your security configuration.
|
||||
##
|
||||
## To continue to use your old security configuration,
|
||||
## comment out the 'recommended' line below, and uncomment the
|
||||
## 'host_based' line.
|
||||
##
|
||||
|
||||
# use security : host_based
|
||||
use security : recommended_v9_0
|
@@ -0,0 +1 @@
|
||||
CONDOR_HOST = condor-cm.htc.local
|
1081
roles/docker-htcondor/files/conf/common/ganglia.d/00_default_metrics
Normal file
1081
roles/docker-htcondor/files/conf/common/ganglia.d/00_default_metrics
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
use ROLE:execute
|
@@ -0,0 +1 @@
|
||||
use ROLE:submit
|
11
roles/docker-htcondor/files/htcondor.Dockerfile
Normal file
11
roles/docker-htcondor/files/htcondor.Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM docker.io/library/centos:7
|
||||
|
||||
RUN yum install -y https://research.cs.wisc.edu/htcondor/repo/8.9/htcondor-release-current.el7.noarch.rpm && \
|
||||
yum install --nogpgcheck -y condor && \
|
||||
yum install -y less && \
|
||||
yum clean all
|
||||
|
||||
RUN yum install -y iproute bind-utils nmap-ncat net-tools && \
|
||||
yum clean all
|
||||
|
||||
CMD bash -c 'cat <({ condor_master -f & tail --retry --pid $! -f /var/log/condor/MasterLog & })'
|
Reference in New Issue
Block a user