Skip to content

Instantly share code, notes, and snippets.

@jcpowermac
Last active February 25, 2016 15:36
Show Gist options
  • Select an option

  • Save jcpowermac/e79d1db4db16960eb0e3 to your computer and use it in GitHub Desktop.

Select an option

Save jcpowermac/e79d1db4db16960eb0e3 to your computer and use it in GitHub Desktop.

Run the Python reset script

In /opt/autodeploy/projects/dcaf-abe/ansible/site_docker.yml change image to "jcpowermac/hanlon:esxi-usb-2.5.0"

60     - name: Start Hanlon Server Container
 61       docker:
 62         docker_api_version: "{{ docker_api_version }}"
 63         name: hanlon-server
 64         image: "jcpowermac/hanlon:esxi-usb-2.5.0"
 65         pull: missing
 66         state: started
 67         ports: 8026:8026
 68 #        links: hanlon-cassandra:cassandra
 69         links: hanlon-mongo:mongo
 70         privileged: true
 71         volumes:
 72           - "{{ hanlon_resource }}/image:/home/hanlon/image"
 73           - "{{ hanlon_resource }}/cli/config:/home/hanlon/cli/config"
 74         env:
 75           DOCKER_HOST: "{{ ansible_default_ipv4.address }}"
 76           HANLON_SUBNETS: "{{ hanlon_subnets }}"

jcpowermac/hanlon:esxi-usb-2.5.0

In playbook site_deploy.yml task Add an ESXi Model to Hanlon add firstdisk: usb

   - name: Add an ESXi Model to Hanlon
 20       hanlon_model:
 21         base_url: "{{ hanlon_base_url }}"
 22         template: vmware_esxi_5_dhcp
 23         label: esxi_model
 24         image_uuid: "{{ image.uuid }}"
 25         esx_license: "{{ esx_license }}"
 26         root_password: "{{ site_passwd }}"
 27         hostname_prefix: esxi-node
 28         firstdisk: usb
 29       register: model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment