Skip to content

Ansible playbooks to deploy applications on the OSDC's OpenStack

Notifications You must be signed in to change notification settings

npho/osdc-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osdc ansible

Ansible playbooks to deploy applications on the OSDC's OpenStack though it can easily be modified to provision the same applications on any private cloud using OpenStack. Ansible will reproducibly replace the need to create and manage virtual machines using the OpenStack CLI.

Run the openrc.sh script to configure your environment with the OS_PASSWORD, OS_AUTH_URL, OS_USERNAME, and OS_TENANT_NAME.

HPC Playbook

Simply run the hpc.yml playbook to setup your cluster.

$ ansible-playbook hpc.yml

Once the Ansible run finishes you can log into the head node and submit jobs immediately.

$ ssh root@hn1

Ansible is meant to replace manual commands below but one can also setup the machines with the following commands.

# add your ssh-key for future vm
$ nova keypair-add --pub_key ~/.ssh/id_rsa.pub ansible_key

# spin up head node
$ nova boot --flavor m1.medium --image 0e50e989-9b33-442f-8e3b-227c41296c88 --key_name ansible_key hn1; 

# spin up compute nodes with the remaining cores
$ for i in {1..7}; 
do 
   nova boot --flavor m1.medium --image 0e50e989-9b33-442f-8e3b-227c41296c88 --key_name ansible_key cn$i; 
done

References

Methods For Creating XSEDE Compatible Clusters [PDF] [YUM]

ELK Playbook

Future plans are to create a playbook to deploy Elasticsearch, Logstash, and Kibana clusters to analyze public data sets on OSDC.

About

Ansible playbooks to deploy applications on the OSDC's OpenStack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published