Sign inSign up

edza78/deploycondorec2

By edza78

•Updated over 8 years ago

Container with Ansible and Boto used to deploy an HTCondor execute node in EC2

Image
0

226

edza78/deploycondorec2 repository overview

This container will deploy an HTCondor execute node in Amazon EC2 using an Ubuntu AMI.

⁠** Example:**

 docker container run --name=ansible \
  -v $PWD/aws_full.bash:/ec2user/aws.bash \
  -v $PWD/varsec2.yml:/ec2user/varsec2.yml \
  -v $PWD/varshtcondor_full.yml:/ec2user/varshtcondor.yml \
  -v $PWD/ec2remote.pem:/ec2user/ec2remote.pem \
  -v $PWD/poolpass:/ec2user/poolpass \
  -v $PWD/deploy.log:/ec2user/deploy.log \
  --rm -it edza78/deploycondorec2:1.0

⁠** Requirements: **

⁠Enable password authentication for the pool.

http://research.cs.wisc.edu/htcondor/manual/current/3_8Security.html#SECTION00483400000000000000⁠

⁠Create password file for the pool.

http://research.cs.wisc.edu/htcondor/manual/current/condor_store_cred.html#92136⁠

⁠** Required files: **

⁠aws.bash: File with the keys for CLI access.

Default values # EC2 CLI account key. export AWS_ACCESS_KEY_ID='YOUR_ACCESS_KEY_HERE' export AWS_SECRET_ACCESS_KEY='YOUR_SECRET_KEY_HERE'

⁠varsec2.yml: File with EC2 specific values.

Default values # Region to use aws_region: "us-east-2" # Security group with port 22 and 443 enabled sec_group: "default" # EC2 Key aws_key: "ec2remote" # Ubuntu AMI-ID, must exists in selected Region. aws_image: "ami-0f65671a86f061fcd" # Instances to start count: 1 # Instance type ins_type: "t2.micro" # Tag for EC2 console tag: uvcluster

⁠varshtcondor.yml: File with HTCondor specific values and Instance live time.

Default values # HTCondor's master htmaster: "YOUR_MASTER_PUBLIC_NAME_OR_IP_HERE" # Domains allowed to run jobs htdomains: "YOUR_EXTRA_DOMAINS_HERE" # Extra options # -nd: Domain asigned to the node(s). # -passex: Enable password for execute node (password file: poolpass) # How to create poolpass file: # http://research.cs.wisc.edu/htcondor/manual/current/condor_store_cred.html#92136⁠ htextra: "-nd amazonaws.com -passex" # Live time in minutes for the Instances, as Amazon charges 1 hours for every boot. # Define it as (Hours*60)-10. ie. 1 Hour=50, 2 Hours=110. livetime: 50

⁠ec2remote.pem: Certificate file for EC2_KEY.

⁠deploy.log: Log file to register deploy status.

Tag summary

Content type

Image

Digest

Size

85.3 MB

Last updated

over 8 years ago

docker pull edza78/deploycondorec2:1.0