Skip to content

Commit

Permalink
remove locode db configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Sеrgiо Nеmirоwski <[email protected]>
  • Loading branch information
Sеrgiо Nеmirоwski committed Dec 13, 2023
1 parent b8f7397 commit 94eb07f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
4 changes: 0 additions & 4 deletions docs/ir.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
| `neofs_ir__bin` | :command:`neofs-ir` binary name |
| `neofs_ir__cli_bin` | :command:`neofs-cli` binary name |
| `neofs_ir__arch` | Architecture to download binaries for. |
| `neofs_ir__locodedb_version` | Version of the locode database to install. |
| `neofs_ir__locodedb_github_repo` | GitHub repository to get the locodedb binary from. |
| `neofs_ir__locodedb` | GitHub locode db release asset name. |
| `neofs_ir__configure_only` | Skip binaries download. |
| `neofs_ir__use_docker` | Run in service in docker |
| `neofs_ir__docker_image: 'nspccdev/neofs-ir` | Docker image to get. |
Expand All @@ -21,7 +18,6 @@
| `neofs_ir__config_path` | Absolute path to the configuration file. |
| `neofs_ir__bin_path` | Absolute path to the :command:`neofs-ir` binary installed on the host. |
| `neofs_ir__cli_bin_path` | Absolute path to the :command:`neofs-cli` binary installed on the host. |
| `neofs_ir__locodedb_path` | Absolute path to the :file:`locode.db` binary installed on the host. |
| `neofs_ir__control_api_config_path` | Absolute path to the control API config path. |
| `neofs_ir__data_dir` | Directory for databases and processing results |
| `neofs_ir__wallet` | Path to the :file:`secret/` directory on the Ansible Controller to get the wallet from. |
Expand Down
9 changes: 0 additions & 9 deletions roles/ir/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ neofs_ir__bin: 'neofs-ir'
neofs_ir__cli_bin: 'neofs-cli'
neofs_ir__arch: 'amd64'

neofs_ir__locodedb_version: 'latest'
neofs_ir__locodedb_github_repo: 'neofs-locode-db'
neofs_ir__locodedb: 'locode_db'

# Flag to skip binaries download
neofs_ir__configure_only: False

Expand All @@ -29,7 +25,6 @@ neofs_ir__conf_dir: '/etc/neofs/ir{{ neofs_ir__instance }}'
neofs_ir__config_path: '{{ neofs_ir__conf_dir }}/config.yml'
neofs_ir__bin_path: '/usr/bin/neofs-ir'
neofs_ir__cli_bin_path: '/usr/bin/neofs-cli'
neofs_ir__locodedb_path: '{{ neofs_ir__data_dir }}/locode.db'
neofs_ir__control_api_config_path: '{{ neofs_ir__conf_dir }}/control.yml'

# Directory for databases and processing results
Expand Down Expand Up @@ -128,10 +123,6 @@ neofs_ir__raw_config:
persistent_state:
path: '{{ neofs_ir__data_dir }}/state'

locode:
db:
path: '{{ neofs_ir__locodedb_path }}'

fee:
main_chain: 25000000
side_chain: 500000000
Expand Down
16 changes: 0 additions & 16 deletions roles/ir/tasks/binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,3 @@
mode: '0755'
force: yes
github__notify: [ 'Restart NeoFS IR' ]

- name: Download UN/LOCODE database
ansible.builtin.include_role:
name: nspcc.ansible_goodies.github
vars:
github__org: '{{ neofs_ir__github_org }}'
github__repo: '{{ neofs_ir__locodedb_github_repo }}'
github__version: '{{ neofs_ir__locodedb_version }}'
github__asset_name: '{{ neofs_ir__locodedb }}'
github__args:
dest: '{{ neofs_ir__locodedb_path }}'
owner: 'root'
group: 'root'
mode: '0644'
force: yes
github__notify: [ 'Restart NeoFS IR' ]

0 comments on commit 94eb07f

Please sign in to comment.