Skip to content

Instantly share code, notes, and snippets.

@dwcramer
Created October 9, 2015 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwcramer/a9880fcde9ec2b9f9c22 to your computer and use it in GitHub Desktop.
Save dwcramer/a9880fcde9ec2b9f9c22 to your computer and use it in GitHub Desktop.
Launch a Jenkins Slave on OpenStack
---
- hosts: localhost
user: "{{ linuxUser }}"
roles:
- role: launch_instance
cloud: openstack
node_name: jenkins-slave2.xbudev.org
flavor_id: 2ad22f89-86b5-43fd-bea5-7b89a7d9b6e6
network_id: 05706879-d518-4fe2-9113-627e514c23b5
attach_volume: false
security_groups: jenkins-slave
- hosts: just_created
user: "{{ linuxUser }}"
sudo: yes
roles:
- harden_ubuntu
- { role: smola.java, java_packages: [ "oracle-java7-installer" ] }
- tersmitten.ntp
- python-pip
- boto
- setup_jenkins
- login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment