Skip to content

tapway/ansible-role-edge-server

Repository files navigation

ansible-role-edge-server

checks release publish

Table Of Contents

About

This Ansible role is designed to bootstrap an edge server for Tapway VisionTrack/VehicleTrack applications. Follow the role's README for details.

Tests

Create inventory.yml file with your hosts list from the template below:

all:
  hosts:
    edge-server:
      portainer_password: <password>
      manager_cloud_api_url: <Tapway cloud API URL>
      ansible_host: <host>
      ansible_user: <user>
      ansible_ssh_private_key_file: private_key  # Should be commented if ansible_ssh_pass uncommented
#      ansible_ssh_pass: <Uncomment and replace with a real value if SSH connection use password instead of the key>
#      ansible_ssh_port: <Uncomment and replace with a real value if not default(22)>
#      ansible_become_pass: <Uncomment and replace with a real value if the user needs a password to be a sudoer>

Playbook

ANSIBLE_CONFIG=./edge-server/tests/ansible.cfg ansible-playbook -i inventory.yml ./edge-server/tests/playbook.yml

Docker image

Build image

docker build -t gotapway/ansible-role-edge-server:local .

SSH key

docker run --rm \
  -v ./inventory.yml:/edge-server/tests/inventory.yml \
  -v <path to the key>:/edge-server/tests/private_key \
  gotapway/ansible-role-edge-server:local

SSH password

docker run --rm \
  -v ./inventory.yml:/edge-server/tests/inventory.yml \
  gotapway/ansible-role-edge-server:local

Contributing

Commit message style - Conventional Commits.

Setup Local Environment

git clone git@github.com:tapway/ansible-role-edge-server.git
cd ansible-role-edge-server
make init

Run make to list all available targets.

Testing

Execute make test for minimal docker image test or make -C edge-server tests for more tests.

CD/CI

About

Ansible role for Edge server setup

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors