/
setup-cactus-connector.yaml
34 lines (32 loc) · 1.72 KB
/
setup-cactus-connector.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
##############################################################################################
# Copyright Accenture. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
##############################################################################################
##############################################################################################
# Playbook to setup the environment for running Hyperledger Bevel configurations
# - checks and installs kubectl, helm and vault clients
# - If cloud platform is AWS, checks and installs aws-cli and aws-authenticator
##############################################################################################
---
# This will apply to ansible_provisioners. /etc/ansible/hosts should be configured with this group
- hosts: ansible_provisioners
gather_facts: yes
no_log: "{{ no_ansible_log | default(false) }}"
tasks:
- include_role:
name: "{{ playbook_dir }}/../../shared/configuration/roles/setup/cactus-connector"
vars:
component_ns: "{{ item.name | lower }}-bes"
members: "{{ item.services.peers is defined | ternary(item.services.peers, item.services.validators) }}"
vault: "{{ item.vault }}"
gitops: "{{ item.gitops }}"
charts_dir: "platforms/hyperledger-besu/charts"
values_dir: "{{playbook_dir}}/../../../{{item.gitops.release_dir}}"
with_items: "{{ network.organizations }}"
# These variables can be overriden from the command line
vars:
privilege_escalate: false # Default to NOT escalate to root privledges
install_os: "linux" # Default to linux OS
install_arch: "amd64" # Default to amd64 architecture
bin_install_dir: "~/bin" # Default to ~/bin install directory for binaries