Skip to content
This repository has been archived by the owner on Nov 1, 2018. It is now read-only.

Commit

Permalink
#6 add condor role, such as it is, run conder prereq before first dep…
Browse files Browse the repository at this point in the history
…loy-all.yaml call
  • Loading branch information
donsizemore committed Feb 21, 2016
1 parent 06d8a8f commit fb88d9b
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ansible/playbooks/condor.yaml
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
1 change: 1 addition & 0 deletions ansible/playbooks/prereqs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---

include: iptables.yaml
include: condor.yaml
include: docker.yaml
5 changes: 5 additions & 0 deletions ansible/roles/condor/files/htcondor-stable-rhel7.repo
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
29 changes: 29 additions & 0 deletions ansible/roles/condor/tasks/main.yml
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

68 changes: 68 additions & 0 deletions ansible/roles/condor/templates/condor_config.local.j2
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

0 comments on commit fb88d9b

Please sign in to comment.