Skip to content
Snippets Groups Projects
Commit 973c1675 authored by Diego Alejandro Arias Rodriguez's avatar Diego Alejandro Arias Rodriguez
Browse files

update

parent 11ea8db4
Branches
No related tags found
No related merge requests found
- hosts: mrc.db - hosts: mrc.db
vars: vars:
user: 'admin' database_user: 'admin'
password: 'admin' database_password: 'admin'
cookie: 'alexis' cookie: 'alexis'
ansible_python_interpreter: /usr/bin/python3.8 ansible_python_interpreter: /usr/bin/python3.8
roles:
- role:
\ No newline at end of file
...@@ -3,13 +3,9 @@ availability_zone: melbourne-qh2-uom ...@@ -3,13 +3,9 @@ availability_zone: melbourne-qh2-uom
# Volume # Volume
volumes: volumes:
- vol_name: demo-vol-1-1 - vol_name: volPrueba1
vol_size: 10 vol_size: 10
- vol_name: demo-vol-1-2 - vol_name: volPrueba2
vol_size: 10
- vol_name: demo-vol-2-1
vol_size: 10
- vol_name: demo-vol-2-2
vol_size: 10 vol_size: 10
#Security group #Security group
...@@ -29,11 +25,11 @@ security_groups: ...@@ -29,11 +25,11 @@ security_groups:
#Instance #Instance
instances: instances:
- name: demo-1 - name: prueba1
volumes: ['demo-vol-1-1', 'demo-vol-1-2'] volumes: 'volPrueba1'
#- name: - name: prueba2
volumes: ['demo-vol-2-1', 'demo-vol-2-2'] volumes: 'volPrueba2'
instance_image: f8b79936-6616-4a22-b55d-0d0a1d27bceb instance_image: 34ce7ec8-50f2-4604-a38f-7d81d1c2041d #f8b79936-6616-4a22-b55d-0d0a1d27bceb
instance_key_name: couchTestKey instance_key_name: couchTestKey
instance_flavor: uom.mse.1c4g instance_flavor: uom.mse.1c4g
\ No newline at end of file
- name: Bind the clustered interface to all IP addresses availble on this machine
command: curl -X PUT http://{{ database_user }}:{{ database_password }}@127.0.0.1:5984/_node/_local/_config/chttpd/bind_address -d '"0.0.0.0"'
- name: Bind the clustered interface to all IP addresses availble on this machine - name: Bind the clustered interface to all IP addresses availble on this machine
command: curl -X PUT http://{{ database_user }}:{{ database_password }}@127.0.0.1:5984/_node/_local/_config/httpd/bind_address -d '"0.0.0.0"' command: curl -X PUT http://{{ database_user }}:{{ database_password }}@127.0.0.1:5984/_node/_local/_config/httpd/bind_address -d '"0.0.0.0"'
...@@ -13,3 +9,5 @@ ...@@ -13,3 +9,5 @@
- name: Set the shared http secret for cookie creation - name: Set the shared http secret for cookie creation
command: curl -X PUT http://{{ database_user }}:{{ database_password }}@127.0.0.1:5984/_node/_local/_config/couch_httpd_auth/secret -d '"{{ database_secret }}" command: curl -X PUT http://{{ database_user }}:{{ database_password }}@127.0.0.1:5984/_node/_local/_config/couch_httpd_auth/secret -d '"{{ database_secret }}"
- name: Setup cluster
. ./unimelb-comp90024-2021-grp-62-openrc.sh; ansible-playbook mrc.yaml . ./unimelb-comp90024-2021-grp-62-openrc.sh; ansible-playbook mrc.yaml
. ./unimelb-comp90024-2021-grp-62-openrc.sh; ansible-playbook couchdb.yaml
\ No newline at end of file
...@@ -8,11 +8,11 @@ collector_type = sys.argv[1] ...@@ -8,11 +8,11 @@ collector_type = sys.argv[1]
#change code to your current Twitter account #change code to your current Twitter account
API_key = 'SZS77byadyNlV99Vc0JQvDNS3' API_key = 'gfrSs7VJvSDNuDutLDLx2kdnP'
API_secret = 'obAZTi5ovBhVVqDhwVTRQH0qFzlPe1YKhiSb134ylIUjNt55AO' API_secret = 'Czhc2ryBJmeaaV5KMcRVd35TmXii2N1y1PhH8sfZ4L1S10Nw4S'
baerer_token = 'AAAAAAAAAAAAAAAAAAAAAIq9OwEAAAAAZWncNeg2Hjj80ehT39b%2FenLaHI0%3DEq6SnKSiOXJDKGIm1q7agIQON2WkPPpJ3Vkhlxx3tbgZp7r5r6' baerer_token = 'AAAAAAAAAAAAAAAAAAAAAC7aPAEAAAAAuzFLDS15Spr%2FC6e9AZyxwmRwfkY%3D1jEWvLv4ScIBjQ8WZnLrklgbVm6DUrdqIAvOLEf6YHEd84qTN0'
access_token = "1386612665682853892-Tp6J5KfT4Wr8gsIPYSr2G5W15axUlj" access_token = "1389730005953900549-Fpc4niDhzmCMEDwRDvJcFKDHaThchd"
access_secret = "hN59hNhidGKLJpsJ8nX8Dr2EEB4m9ny0w70K2Fd0dpY8Q" access_secret = "sxly7UABoMN3p5l5PhGpVPqvALg2Vv7MCCNZ0fCoH8pnv"
class StreamListener(tweepy.StreamListener): class StreamListener(tweepy.StreamListener):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment