Mining role and fix variable name in ec2 create instance
This commit is contained in:
parent
7fb59ef095
commit
c84a128300
|
@ -6,6 +6,7 @@ forks = 20
|
|||
gathering = implicit
|
||||
# SSH timeout
|
||||
timeout = 10
|
||||
host_key_checking = False
|
||||
|
||||
remote_user = root
|
||||
ansible_managed = This file is managed by ansible
|
||||
|
|
|
@ -56,11 +56,11 @@
|
|||
ec2_secret_key: "{{ secret_key }}"
|
||||
key_name: "{{ awskeypair_name }}"
|
||||
instance_tags:
|
||||
Name: "{{ instance_name }}"
|
||||
Name: "{{ bootnode_instance_name }}"
|
||||
group: "{{ bootnode_security_group }}"
|
||||
instance_type: "{{ instance_type }}"
|
||||
instance_type: "{{ bootnode_instance_type }}"
|
||||
image: "{{ image }}"
|
||||
count: "{{ count_instances }}"
|
||||
count: "{{ bootnode_count_instances }}"
|
||||
wait: yes
|
||||
region: "{{ region }}"
|
||||
vpc_subnet_id: "{{ vpc_subnet_id }}"
|
||||
|
|
|
@ -52,11 +52,11 @@
|
|||
ec2_secret_key: "{{ secret_key }}"
|
||||
key_name: "{{ awskeypair_name }}"
|
||||
instance_tags:
|
||||
Name: "{{ instance_name }}"
|
||||
Name: "{{ mining_instance_name }}"
|
||||
group: "{{ mining_security_group }}"
|
||||
instance_type: "{{ instance_type }}"
|
||||
instance_type: "{{ mining_instance_type }}"
|
||||
image: "{{ image }}"
|
||||
count: "{{ count_instances }}"
|
||||
count: "{{ mining_count_instances }}"
|
||||
wait: yes
|
||||
region: "{{ region }}"
|
||||
vpc_subnet_id: "{{ vpc_subnet_id }}"
|
||||
|
|
|
@ -64,11 +64,11 @@
|
|||
ec2_secret_key: "{{ secret_key }}"
|
||||
key_name: "{{ awskeypair_name }}"
|
||||
instance_tags:
|
||||
Name: "{{ instance_name }}"
|
||||
Name: "{{ netstat_instance_name }}"
|
||||
group: "{{ netstat_security_group }}"
|
||||
instance_type: "{{ instance_type }}"
|
||||
instance_type: "{{ netstat_instance_type }}"
|
||||
image: "{{ image }}"
|
||||
count: "{{ count_instances }}"
|
||||
count: "{{ netstat_count_instances }}"
|
||||
wait: yes
|
||||
region: "{{ region }}"
|
||||
vpc_subnet_id: "{{ vpc_subnet_id }}"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
with_items:
|
||||
- "https://raw.githubusercontent.com/oraclesorg/oracles-scripts/sokol/spec.json"
|
||||
- "https://raw.githubusercontent.com/oraclesorg/deployment-azure/dev-mainnet/nodes/bootnodes.txt"
|
||||
- "https://raw.githubusercontent.com/oraclesorg/deployment-azure/dev-mainnet/nodes/bootnode/node.toml"
|
||||
- "https://raw.githubusercontent.com/oraclesorg/deployment-azure/dev-mainnet/nodes/mining-node/node.toml"
|
||||
|
||||
- name: Change nat in node.toml
|
||||
lineinfile:
|
||||
|
@ -72,7 +72,7 @@
|
|||
- git: repo=https://github.com/oraclesorg/eth-net-intelligence-api dest={{ home }}/eth-net-intelligence-api
|
||||
|
||||
- name: Install netstats config
|
||||
template: src=app.json.j2 dest={{ home }}/eth-net-intelligence-api/app.json owner=bootnode group=bootnode mode=0644
|
||||
template: src=app.json.j2 dest={{ home }}/eth-net-intelligence-api/app.json owner=mining group=mining mode=0644
|
||||
|
||||
- file: path={{ home }} owner={{ username }} group={{ username }} recurse=yes
|
||||
|
||||
|
|
Loading…
Reference in New Issue