-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* prototyping record hand data * prototyping record hand data * testing * move to more appropriate defaults * testing * testing * testing * testing * testing * testing * testing * testing * testing * move bagging to nuc * move bag folder on nuc * add rsync cron job * become yes cron * testing * quote int * rsync options * testing * remove files from source after successful transfer * remove debug, set to false if not true * how did that get there * tidying * testing * testing * tidying * testing * tidying * add to all deployment options for testing * Add remote bag configuration to simulation * Inlcude remote bag recording in server tasks * remove testing * Update main.yml * Update simulation.yml * Update control_machine.yml Co-authored-by: carebare47 <tom@shadowrobot.com> Co-authored-by: Fotios Papadopoulos <fotios@shadowrobot.com> Co-authored-by: mykolasjuraitis <75975027+mykolasjuraitis@users.noreply.github.com> Co-authored-by: Build Tools <build.tools@example.com>
- Loading branch information
1 parent
e64c298
commit 56adbf8
Showing
13 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
ansible/roles/products/common/record-hand-data/defaults/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
bag_all_data_from: [] |
27 changes: 27 additions & 0 deletions
27
ansible/roles/products/common/record-hand-data/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
- name: Custom shared volume for bag storage | ||
block: | ||
- name: Set shadow_bag_storage folder names | ||
set_fact: | ||
shadow_bag_storage_folder: "{{ user_folder }}/shadow_bag_storage" | ||
shadow_bag_storage_inside_docker: "/home/user/shadow_bag_storage" | ||
|
||
- name: Ensure {{ shadow_bag_storage_folder }} folder exists | ||
file: | ||
path: "{{ shadow_bag_storage_folder }}" | ||
mode: '755' | ||
state: directory | ||
|
||
- name: Set custom shared volumes for docker container | ||
set_fact: | ||
custom_shared_volumes: | ||
- "{{ shadow_bag_storage_folder }}:{{ shadow_bag_storage_inside_docker }}" | ||
|
||
# Creates a cron file under /etc/cron.d | ||
- cron: | ||
name: sync hand data to NAS | ||
hour: "20" | ||
user: user | ||
job: "rsync -azP --remove-source-files --exclude '*active*' {{ shadow_bag_storage_folder }}/ {{ remote_bag_user }}@{{ remote_bag_storage_IP }}:{{ remote_bag_storage_location }} >> /home/user/hand_cron_log 2>&1" | ||
cron_file: sr_sync_hand_data_to_nas | ||
become: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters