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

added different instances

parent e0e37b0b
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
gather_facts: true
roles:
- role: openstack-common
# - role: openstack-common
- role: openstack-volume
- role: openstack-security-group
- role: openstack-instance
......
......@@ -5,7 +5,7 @@ FROM node:13.12.0-alpine
WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
ENV PATH app/node_modules/.bin:$PATH
ENV PATH /app/node_modules/.bin:$PATH
# install app dependencies
COPY package.json ./
......
......@@ -5,6 +5,10 @@ availability_zone: melbourne-qh2-uom
volumes:
- vol_name: harvester-volume
vol_size: 10
- vol_name: web-volume
vol_size: 10
- vol_name: db-volume
vol_size: 10
# Security group
security_groups:
......@@ -25,6 +29,14 @@ security_groups:
instances:
- name: harvester
volumes: ['harvester-volume']
meta:
group: harvesters
# - name: web
# volumes: ['web-volume']
# group: web
# - name: couchDB
# volumes: ['db-volume']
# group: dbs
instance_image: 45225edb-66d8-4fd0-bf41-132a31a18166
instance_key_name: test-moh
......
[COMP90024]
172.26.130.11
[harvesters]
[COMP90024:vars]
[web]
[dbs]
[instances:children]
harvesters
web
dbs
[instances:vars]
ansible_python_interpreter=/usr/bin/python3
ansible_user=ubuntu
ansible_ssh_private_key_file=~/.ssh/id_matt
......
......@@ -34,6 +34,6 @@
- name: Add host
add_host:
name: '{{ item.openstack.public_v4 }}'
groups: COMP90024
groups: "{{ item['item']['meta']['group'] }}"
loop: '{{ os_instance.results }}'
#when: item.openstack is defined
when: item.openstack is defined
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment