Skip to content

Commit

Permalink
fix compatibility with brand new pool
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Zhigunenko <[email protected]>
  • Loading branch information
Nikita Zhigunenko committed Aug 16, 2018
1 parent 25a8c88 commit dd28a18
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
26 changes: 26 additions & 0 deletions scripts/ansible/indy_config_default.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Current network
NETWORK_NAME = 'sandbox'

# Disable stdout logging
enableStdOutLogging = False

# Directory to store ledger.
LEDGER_DIR = '/var/lib/indy'

# Directory to store logs.
LOG_DIR = '/var/log/indy'

# Directory to store keys.
KEYS_DIR = '/var/lib/indy'

# Directory to store genesis transactions files.
GENESIS_DIR = '/var/lib/indy'

# Directory to store backups.
BACKUP_DIR = '/var/lib/indy/backup'

# Directory to store plugins.
PLUGINS_DIR = '/var/lib/indy/plugins'

# Directory to store node info.
NODE_INFO_DIR = '/var/lib/indy'
12 changes: 10 additions & 2 deletions scripts/ansible/pool_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
vars:
pool_prefix: live_node
pool_size: "{{ groups['pool']|count }}"
node_ver: 1.4.478
plenum_ver: 1.4.418
node_ver: 1.6.563
plenum_ver: 1.6.501
python_indy_crypto_ver: 0.4.1
libindy_crypto_ver: 0.4.0

Expand All @@ -31,6 +31,14 @@
- name: Install indy-node
apt: "name=indy-node={{ node_ver }},indy-plenum={{ plenum_ver }},libindy-crypto={{ libindy_crypto_ver }},python3-indy-crypto={{ python_indy_crypto_ver }} force=yes update_cache=yes"
become: yes

- name: Make indy config dir
file: path=/etc/indy state=directory owner=indy group=indy
become: yes

- name: Set our default config
copy: src=indy_config_default.py dest=/etc/indy/indy_config.py owner=indy group=indy
become: yes

- name: Make pool data dir
file: path=/var/lib/indy/sandbox state=directory owner=indy group=indy
Expand Down

0 comments on commit dd28a18

Please sign in to comment.