Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Allow to not specify cred.json or conf.json
Browse files Browse the repository at this point in the history
JGoutin committed Nov 5, 2019
1 parent 43b7772 commit 2c21c44
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -32,9 +32,9 @@ Accelize DRM systemd service configuration.

DRM Configuration:
Accelize DRM configuration files.
* **accelize_drm_cred_src**: Path to the local `cred.json` file to transfer to the host. Default to `cred.json`.
* **accelize_drm_cred_src**: Path to the local `cred.json` file to transfer to the host. If not specified, does not transfer file.
* **accelize_drm_cred_dst**: Destination path of the `cred.json` file on the target host. Default to `/root/.accelize_drm/cred.json`.
* **accelize_drm_conf_src**: Path to the local `conf.json` file to transfer to the host. Default to `conf.json`.
* **accelize_drm_conf_src**: Path to the local `conf.json` file to transfer to the host. If not specified, does not transfer file.
* **accelize_drm_conf_dst**: Destination path of the `conf.json` file on the target host. Default to `/etc/accelize_drm/conf.json`.

Source installation, test & build requirements:
2 changes: 0 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -8,9 +8,7 @@ accelize_repository_channel: stable
accelize_drm_from_source: false

# Accelize DRM credential and configuration files
accelize_drm_cred_src: cred.json
accelize_drm_cred_dst: /root/.accelize_drm/cred.json
accelize_drm_conf_src: conf.json
accelize_drm_conf_dst: /etc/accelize_drm/conf.json

# FPGA driver to use with Accelize DRM service
4 changes: 4 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -324,21 +324,25 @@
file:
path: "{{ accelize_drm_cred_dst | dirname }}"
state: directory
when: accelize_drm_cred_src is defined

- name: Create Accelize DRM credentials file
copy:
src: "{{ accelize_drm_cred_src }}"
dest: "{{ accelize_drm_cred_dst }}"
when: accelize_drm_cred_src is defined

- name: Ensure Accelize DRM configuration parent directory exists
file:
path: "{{ accelize_drm_conf_dst | dirname }}"
state: directory
when: accelize_drm_conf_src is defined

- name: Create Accelize DRM configuration file
copy:
src: "{{ accelize_drm_conf_src }}"
dest: "{{ accelize_drm_conf_dst }}"
when: accelize_drm_conf_src is defined

- name: Ensure Accelize DRM service parent directory exists
file:

0 comments on commit 2c21c44

Please sign in to comment.