This repository has been archived by the owner on Nov 1, 2018. It is now read-only.
forked from cyverse-archive/DE
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6 add condor role, such as it is, run conder prereq before first dep…
…loy-all.yaml call
- Loading branch information
1 parent
06d8a8f
commit fb88d9b
Showing
5 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- hosts: condor:condor-submission:services | ||
sudo: yes | ||
sudo_user: root | ||
roles: | ||
- role: condor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
|
||
include: iptables.yaml | ||
include: condor.yaml | ||
include: docker.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[htcondor-stable] | ||
name=HTCondor Stable RPM Repository for Redhat Enterprise Linux 7 | ||
baseurl=http://research.cs.wisc.edu/htcondor/yum/stable/rhel7 | ||
enabled=1 | ||
gpgcheck=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
|
||
- name: install condor RHEL/CentOS7 repo | ||
copy: src="htcondor-stable-rhel7.repo" dest=/etc/yum.repos.d owner=root group=root mode=0644 | ||
when: ansible_distribution == "CentOS" and | ||
ansible_distribution_major_version == "7" | ||
tags: | ||
- deploy_condor | ||
|
||
- name: install HTCondor | ||
sudo: yes | ||
yum: name=condor-all state=latest | ||
when: ansible_distribution == "CentOS" and | ||
ansible_distribution_major_version == "7" | ||
tags: | ||
- deploy_condor | ||
|
||
- name: set the /etc/condor/condor_config.local file | ||
sudo: yes | ||
template: src=condor_config.local.j2 dest=/etc/condor/condor_config.local owner=root group=root mode=0644 | ||
|
||
- name: create cred_dir | ||
sudo: yes | ||
file: path="{{ condor.cred_dir }}" state=directory owner=condor group=condor mode=0755 | ||
|
||
- name: restart condor | ||
sudo: yes | ||
service: name=condor state=restarted enabled=yes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
## For more detial please see | ||
## http://www.cs.wisc.edu/condor/manual/v7.4/3_3Configuration.html | ||
|
||
## Condor Config for iPlant condor cluser on DE services host. | ||
|
||
## What machine is your central manager? | ||
|
||
#CONDOR_HOST = $(FULL_HOSTNAME) | ||
CONDOR_HOST = {{ condor.host }} | ||
|
||
## Pool's short description | ||
|
||
COLLECTOR_NAME = {{environment_name}} Condor Pool at $(FULL_HOSTNAME) | ||
|
||
## When is this machine willing to start a job? | ||
|
||
START = TRUE | ||
|
||
|
||
## When to suspend a job? | ||
|
||
SUSPEND = FALSE | ||
|
||
|
||
## When to nicely stop a job? | ||
## (as opposed to killing it instantaneously) | ||
|
||
PREEMPT = FALSE | ||
|
||
|
||
## When to instantaneously kill a preempting job | ||
## (e.g. if a job is in the pre-empting stage for too long) | ||
|
||
KILL = FALSE | ||
|
||
## This macro determines what daemons the condor_master will start and keep its watchful eyes on. | ||
## The list is a comma or space separated list of subsystem names | ||
|
||
#DAEMON_LIST = COLLECTOR, MASTER, NEGOTIATOR, SCHEDD, STARTD | ||
DAEMON_LIST = MASTER, SCHEDD, CREDD | ||
|
||
## Sets how often the condor_negotiator starts a negotiation cycle. | ||
## It is defined in seconds and defaults to 60 (1 minute). | ||
|
||
NEGOTIATOR_INTERVAL = 20 | ||
|
||
## Disable UID_DOMAIN check when submit a job | ||
|
||
TRUST_UID_DOMAIN = TRUE | ||
|
||
################################# | ||
## Added for iPlant Collaborative | ||
################################# | ||
CONDOR_ADMIN = {{ condor.admin }} | ||
UID_DOMAIN = {{ condor.uid_domain }} | ||
FILESYSTEM_DOMAIN = {{ condor.filesystem_domain }} | ||
COLLECTOR_NAME = {{ condor.collector_name }} | ||
# FLOCK_TO = {{ condor.flock_to }} | ||
ALLOW_READ = {{ condor.allow_read }} | ||
ALLOW_WRITE = {{ condor.allow_write }} | ||
HIGHPORT = 65535 | ||
LOWPORT = 61440 | ||
JAVA = /usr/java/latest/bin/java | ||
## used for debugging purposes | ||
#NUM_SLOTS = 5 | ||
|
||
EVENT_LOG_MAX_SIZE = 1000000000 | ||
EVENT_LOG_MAX_ROTATIONS = 3 |