Separate group_vars by roles; Rename parity_nouncles; Extract NODE_SOURCE_DEB
This commit is contained in:
parent
3e45635839
commit
b522f40e25
|
@ -0,0 +1,7 @@
|
|||
files/*.pub
|
||||
|
||||
group_vars/bootnode
|
||||
group_vars/explorer
|
||||
group_vars/mining
|
||||
group_vars/netstat
|
||||
group_vars/owner
|
|
@ -1 +0,0 @@
|
|||
./admins.pub
|
|
@ -0,0 +1,63 @@
|
|||
---
|
||||
ssh_root:
|
||||
- "{{ lookup('file', 'files/admins.pub') }}"
|
||||
|
||||
snmp_syslocation: "USA"
|
||||
snmp_ipsubnet: "172.16.0.0/16"
|
||||
|
||||
nameservers:
|
||||
- "8.8.8.8"
|
||||
- "8.8.4.4"
|
||||
|
||||
ntpservers:
|
||||
- "server 0.us.pool.ntp.org"
|
||||
- "server 1.us.pool.ntp.org"
|
||||
- "server 2.us.pool.ntp.org"
|
||||
- "server 3.us.pool.ntp.org"
|
||||
|
||||
image: "ami-9d04e4e5"
|
||||
region: "us-west-2"
|
||||
|
||||
NODE_PWD: "node.pwd" # don't change this one
|
||||
NODE_SOURCE_DEB: "https://deb.nodesource.com/node_8.x"
|
||||
PARITY_BIN_LOC: "https://github.com/oraclesorg/binary-releases/releases/download/1.8.2/parity"
|
||||
|
||||
SCRIPTS_OWNER_BRANCH: "master"
|
||||
SCRIPTS_VALIDATOR_BRANCH: "master"
|
||||
MAIN_REPO_FETCH: "oraclesorg"
|
||||
TEMPLATES_BRANCH: "dev-mainnet"
|
||||
GENESIS_BRANCH: "master"
|
||||
|
||||
OWNER_ADDRESS: "0xdd0bb0e2a1594240fed0c2f2c17c1e9ab4f87126"
|
||||
NETSTATS_SERVER: "34.215.172.88"
|
||||
TX_GAS_LIMIT: "6700000"
|
||||
|
||||
#bootnode
|
||||
bootnode_instance_type: "t2.large"
|
||||
bootnode_instance_name: "bootnode"
|
||||
bootnode_count_instances: "1"
|
||||
bootnode_security_group: "bootnode-security"
|
||||
|
||||
#netstat
|
||||
netstat_instance_type: "t2.large"
|
||||
netstat_instance_name: "netstat"
|
||||
netstat_count_instances: "1"
|
||||
netstat_security_group: "netstat-security"
|
||||
|
||||
#mining
|
||||
mining_instance_type: "t2.large"
|
||||
mining_instance_name: "mining"
|
||||
mining_count_instances: "1"
|
||||
mining_security_group: "mining-security"
|
||||
|
||||
#owner
|
||||
owner_instance_type: "t2.large"
|
||||
owner_instance_name: "owner"
|
||||
owner_count_instances: "1"
|
||||
owner_security_group: "owner-security"
|
||||
|
||||
#explorer
|
||||
explorer_instance_type: "t2.large"
|
||||
explorer_instance_name: "explorer"
|
||||
explorer_count_instances: "1"
|
||||
explorer_security_group: "explorer-security"
|
|
@ -42,11 +42,10 @@ SCRIPTS_OWNER_BRANCH: "master"
|
|||
SCRIPTS_VALIDATOR_BRANCH: "master"
|
||||
|
||||
TX_GAS_LIMIT: "6700000"
|
||||
|
||||
NODE_PWD: "node.pwd"
|
||||
|
||||
parity_nouncles: "https://github.com/oraclesorg/binary-releases/releases/download/1.8.2/parity"
|
||||
|
||||
NODE_SOURCE_DEB: "https://deb.nodesource.com/node_8.x"
|
||||
PARITY_BIN_LOC: "https://github.com/oraclesorg/binary-releases/releases/download/1.8.2/parity"
|
||||
|
||||
#bootnode
|
||||
bootnode_instance_type: "t2.large"
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
access_key: "_INSERT KEY HERE_"
|
||||
secret_key: "_INSERT SECRET HERE_"
|
||||
awskeypair_name: "keypairname"
|
||||
|
||||
vpc_subnet_id: "subnet-ID-number"
|
||||
|
||||
NODE_FULLNAME: "_INSERT NODENAME_"
|
||||
NODE_ADMIN_EMAIL: "_INSERT@EMAIL_"
|
||||
|
||||
NETSTATS_SECRET: "_INSERT SECRET_"
|
|
@ -0,0 +1,5 @@
|
|||
access_key: "_INSERT KEY HERE_"
|
||||
secret_key: "_INSERT SECRET HERE_"
|
||||
awskeypair_name: "keypairname"
|
||||
|
||||
vpc_subnet_id: "subnet-ID-number"
|
|
@ -0,0 +1,14 @@
|
|||
access_key: "_INSERT KEY HERE_"
|
||||
secret_key: "_INSERT SECRET HERE_"
|
||||
awskeypair_name: "keypairname"
|
||||
|
||||
vpc_subnet_id: "subnet-ID-number"
|
||||
|
||||
NODE_FULLNAME: "_INSERT NODENAME_"
|
||||
NODE_ADMIN_EMAIL: "_INSERT@EMAIL_"
|
||||
|
||||
NETSTATS_SECRET: "_INSERT SECRET_"
|
||||
|
||||
MINING_KEYFILE: "_INSERT_"
|
||||
MINING_ADDRESS: "_INSERT_"
|
||||
MINING_KEYPASS: "_INSERT_"
|
|
@ -0,0 +1,10 @@
|
|||
access_key: "_INSERT KEY HERE_"
|
||||
secret_key: "_INSERT SECRET HERE_"
|
||||
awskeypair_name: "keypairname"
|
||||
|
||||
vpc_subnet_id: "subnet-ID-number"
|
||||
|
||||
NODE_FULLNAME: "_INSERT NODENAME_"
|
||||
NODE_ADMIN_EMAIL: "_INSERT@EMAIL_"
|
||||
|
||||
NETSTATS_SECRET: "_INSERT SECRET_"
|
|
@ -0,0 +1,13 @@
|
|||
access_key: "_INSERT KEY HERE_"
|
||||
secret_key: "_INSERT SECRET HERE_"
|
||||
awskeypair_name: "keypairname"
|
||||
|
||||
vpc_subnet_id: "subnet-ID-number"
|
||||
|
||||
NODE_FULLNAME: "_INSERT NODENAME_"
|
||||
NODE_ADMIN_EMAIL: "_INSERT@EMAIL_"
|
||||
|
||||
NETSTATS_SECRET: "_INSERT SECRET_"
|
||||
|
||||
OWNER_KEYPASS: "_INSERT_"
|
||||
OWNER_KEYFILE: "_INSERT_"
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Ensure apt-transport-https is installed.
|
||||
apt: name=apt-transport-https state=present
|
||||
|
||||
|
||||
- name: add nodejs repository key
|
||||
apt_key:
|
||||
keyserver: keyserver.ubuntu.com
|
||||
|
@ -10,10 +10,10 @@
|
|||
|
||||
- name: Add nodejs repository
|
||||
apt_repository:
|
||||
repo: 'deb https://deb.nodesource.com/node_8.x {{ansible_distribution_release}} main'
|
||||
repo: 'deb {{ NODE_SOURCE_DEB }} {{ansible_distribution_release}} main'
|
||||
state: present
|
||||
|
||||
- name: Install nodejs packages
|
||||
- name: Install nodejs packages
|
||||
apt: name={{ item }} state=present update_cache=yes
|
||||
with_items:
|
||||
- nodejs
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
owner: "{{ username }}"
|
||||
group: "{{ username }}"
|
||||
|
||||
- name: Download parity-nouncles
|
||||
get_url: url="{{ parity_nouncles }}" dest={{ home }}/parity-nouncles mode=0755
|
||||
- name: Download parity-bin
|
||||
get_url: url="{{ PARITY_BIN_LOC }}" dest={{ home }}/parity mode=0755
|
||||
notify:
|
||||
- restart oracles-parity
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ After=network.target
|
|||
User={{ username }}
|
||||
Group={{ username }}
|
||||
WorkingDirectory=/home/{{ username }}
|
||||
ExecStart=/home/{{ username }}/parity-nouncles --config=node.toml
|
||||
ExecStart=/home/{{ username }}/parity --config=node.toml
|
||||
Restart=always
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Reference in New Issue