Skip to content
Snippets Groups Projects
Commit 030aceb8 authored by Chris Martin's avatar Chris Martin
Browse files

Write to distro-specific console file

parent c30b82bd
No related branches found
No related tags found
Loading
Pipeline #407517975 passed
......@@ -2,6 +2,13 @@
- name: Instance deployment
hosts:
- 'localhost'
pre_tasks:
- name: 'operating system-specific variables imported'
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version}}.yml"
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
roles:
- 'password'
- 'base-setup'
......
......@@ -37,4 +37,4 @@
args:
chdir: '/opt/guacamole'
- shell: 'echo ''{"guacDeployComplete":true}'' > /dev/console'
\ No newline at end of file
- shell: 'echo ''{"guacDeployComplete":true}'' > {{ console_file }}'
\ No newline at end of file
......@@ -7,9 +7,9 @@
mode: '0544'
- name: 'system load logged first time'
shell: '/opt/system_load_json.py > /dev/console'
shell: '/opt/system_load_json.py > {{ console_file }}'
- name: 'system load logging script run every minute'
cron:
name: 'system load logging script run every minute'
job: '/opt/system_load_json.py > /dev/console'
job: '/opt/system_load_json.py > {{ console_file }}'
......@@ -5,7 +5,7 @@
when: 'workflow_source_repository is not defined or workflow_source_repository == ""'
# Write to console that workflow provisioning has started
- shell: 'echo ''{"exoWorkflowSetup":"started"}'' > /dev/console'
- shell: 'echo ''{"exoWorkflowSetup":"started"}'' > {{ console_file }}'
- name: 'custom workflow details logging script copied into place'
copy:
......@@ -88,7 +88,7 @@
check_mode: false
- name: 'Write Jupyter notebook token to console'
shell: 'echo ''{"exoWorkflowToken":"{{ workflow_token.stdout }}"}'' > /dev/console'
shell: 'echo ''{"exoWorkflowToken":"{{ workflow_token.stdout }}"}'' > {{ console_file }}'
check_mode: false
- name: 'custom workflow details logged first time'
......@@ -96,12 +96,12 @@
retries: 3
delay: 10
until: result is not failed
shell: '/opt/custom_workflow_json.sh > /dev/console'
shell: '/opt/custom_workflow_json.sh > {{ console_file }}'
- name: 'custom workflow logging script run every minute'
cron:
name: 'custom workflow details logging script run every minute'
job: '/opt/custom_workflow_json.sh > /dev/console'
job: '/opt/custom_workflow_json.sh > {{ console_file }}'
# Write to console that workflow provisioning is complete
- shell: 'echo ''{"exoWorkflowSetup":"complete"}'' > /dev/console'
- shell: 'echo ''{"exoWorkflowSetup":"complete"}'' > {{ console_file }}'
---
console_file: '/dev/kmsg'
---
console_file: '/dev/console'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment