Skip to content
Snippets Groups Projects
Commit e97bae88 authored by matt01671's avatar matt01671
Browse files

added proxy

parent 6d22972a
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@
- role: openstack-volume
- role: openstack-security-group
- role: openstack-instance
- role: openstacl-proxy
- hosts: COMP90024
vars_files:
......
......@@ -3,21 +3,21 @@ availability_zone: melbourne-qh2-uom
# Volume
volumes:
- vol_name: demo-03-vol-1
- vol_name: harvester-volume
vol_size: 10
- vol_name: demo-03-vol-2
vol_size: 10
# Security group
security_groups:
- name: demo_ssh
description: "Demo security group for SSH access"
- name: ssh
description: "Security group for SSH access"
protocol: tcp
port_range_min: 22
port_range_max: 22
remote_ip_prefix: 0.0.0.0/0
- name: demo_http
description: "Demo security group for HTTP"
- name: http
description: "Security group for HTTP"
protocol: tcp
port_range_min: 80
port_range_max: 80
......@@ -25,9 +25,9 @@ security_groups:
# Instance
instances:
- name: demo-03
volumes: ['demo-03-vol-1', 'demo-03-vol-2']
- name: harvester
volumes: ['harvester-volume']
instance_image: 45225edb-66d8-4fd0-bf41-132a31a18166
instance_key_name: id_alwyn
instance_flavor: uom.general.1c4g
instance_key_name: test-moh
instance_flavor: uom.mse.2c9g
---
- name: Add proxy in /etc/environment
become: yes
blockinfile:
path: /etc/environment
block:
HTTP_PROXY=http://wwwproxy.unimelb.edu.au:8000/
HTTPS_PROXY=http://wwwproxy.unimelb.edu.au:8000/
http_proxy=http://wwwproxy.unimelb.edu.au:8000/
https_proxy=http://wwwproxy.unimelb.edu.au:8000/
no_proxy=localhost,127.0.0.1,localaddress,172.16.0.0/12,.melbourne.rc.nectar.org.au,.storage.unimelb.edu.au,.cloud.unimelb.edu.au
- name: Reboot machine
become: yes
reboot:
reboot_timeout: 3000
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment