Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
Update Ansible configuration for deploying dashboard using environment
Browse files Browse the repository at this point in the history
variables
  • Loading branch information
gurbirkalsi committed Dec 7, 2020
1 parent 1f51ae4 commit c87c63c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 41 deletions.
9 changes: 2 additions & 7 deletions ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@ This will ease installation, and deployment of the pbench dashboard.

## Required
- Ansible needs to be installed on the host where you want to run this playbook
- An inventory file containing the following key values defined:
- "`elasticsearch_url`", "`results_url`", "`graphql_url`", "`run_index`", "`prefix`"
See the `/README.md` for more details.
- An inventory file containing the server values defined

## Run
Running the below commands from this checked-out directory to install the
pbench dashboard components locally, and then deploy hosts mentioned under
the "`[servers:children]`" section of the given `inventory` file.

There's also an option to define the dashboard configuration in the provided
inventory file.
the "`[servers]`" section of the given `inventory` file.

See the `inventory` file in this directory for an example.
```
Expand Down
1 change: 0 additions & 1 deletion ansible/config.json.j2

This file was deleted.

25 changes: 3 additions & 22 deletions ansible/inventory
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
[servers:children]
ui-server
user-server

[servers:vars]
results_url="http://{{ inventory_hostname }}"
run_index="run.example"
graphql_url="http://{{ inventory_hostname }}"

[ui-server]
ui-server.example.com

[ui-server:vars]
elasticsearch_url="http://elasticsearch.example.com"
prefix="ui-server.example."

[user-server]
user-server.example.com

[user-server:vars]
elasticsearch_url="http://elasticsearch.example.com"
prefix="user-server.example."
[servers]
staging-server.example.com
production-server.example.com
4 changes: 1 addition & 3 deletions ansible/roles/dashboard-deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@
dest: /var/www/html/dashboard
owner: pbench
group: pbench

- name: initialize dashboard config file
template: src=config.json.j2 dest=/var/www/html/dashboard/config.json mode=0644 owner=pbench group=pbench

8 changes: 0 additions & 8 deletions config.json.j2

This file was deleted.

0 comments on commit c87c63c

Please sign in to comment.