From 816d395b0f6e2ed833cee7c06113de2536a008cb Mon Sep 17 00:00:00 2001 From: Jason Whitfield Date: Sat, 25 May 2019 11:47:55 -0400 Subject: [PATCH] [ansible] Updated base station and onboard services. --- .../files/rover-base_station_kineval.service | 10 ++++++++++ ansible/roles/base_station_services/tasks/main.yml | 2 ++ .../files/rover-onboard-auton-light.service | 12 ++++++++++++ .../files/rover-onboard-kinematics.service | 12 ++++++++++++ ansible/roles/onboard_services/tasks/main.yml | 4 ++++ 5 files changed, 40 insertions(+) create mode 100644 ansible/roles/base_station_services/files/rover-base_station_kineval.service create mode 100644 ansible/roles/onboard_services/files/rover-onboard-auton-light.service create mode 100644 ansible/roles/onboard_services/files/rover-onboard-kinematics.service diff --git a/ansible/roles/base_station_services/files/rover-base_station_kineval.service b/ansible/roles/base_station_services/files/rover-base_station_kineval.service new file mode 100644 index 0000000000..9297c1b7b8 --- /dev/null +++ b/ansible/roles/base_station_services/files/rover-base_station_kineval.service @@ -0,0 +1,10 @@ +[Unit] +Description=MRover Base Station Kineval Stencil + +[Service] +User={{ user }} +EnvironmentFile=/etc/default/rover.env +ExecStart={{ workspace_dir }}/jarvis exec base_station_kineval_stencil + +[Install] +WantedBy=multi-user.target diff --git a/ansible/roles/base_station_services/tasks/main.yml b/ansible/roles/base_station_services/tasks/main.yml index df2deb6e3c..49f665c23b 100644 --- a/ansible/roles/base_station_services/tasks/main.yml +++ b/ansible/roles/base_station_services/tasks/main.yml @@ -14,6 +14,7 @@ - rover-base_station_gstreamer_2.service - rover-lcm_bridge_server.service - rover-base_station_microscope.service + - rover-base_station_kineval.service - rover-base_station_gstreamer.timer - rover-base_station_gstreamer_2.timer - rover-base_station_microscope.timer @@ -31,6 +32,7 @@ with_items: - rover-base_station_gui.service - rover-lcm_bridge_server.service + - rover-base_station_kineval.service - rover-base_station_microscope.timer - rover-base_station_gstreamer.timer - rover-base_station_gstreamer_2.timer diff --git a/ansible/roles/onboard_services/files/rover-onboard-auton-light.service b/ansible/roles/onboard_services/files/rover-onboard-auton-light.service new file mode 100644 index 0000000000..c58256882d --- /dev/null +++ b/ansible/roles/onboard_services/files/rover-onboard-auton-light.service @@ -0,0 +1,12 @@ +[Unit] +Description=MRover Onboard Autonomy Light + +[Service] +EnvironmentFile=/etc/default/rover.env +Environment=HOME={{ home_dir }} +ExecStart={{ workspace_dir }}/jarvis exec onboard_auton_light +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target diff --git a/ansible/roles/onboard_services/files/rover-onboard-kinematics.service b/ansible/roles/onboard_services/files/rover-onboard-kinematics.service new file mode 100644 index 0000000000..ca7edb0b15 --- /dev/null +++ b/ansible/roles/onboard_services/files/rover-onboard-kinematics.service @@ -0,0 +1,12 @@ +[Unit] +Description=MRover Onboard Kinematics + +[Service] +EnvironmentFile=/etc/default/rover.env +User={{ running_user }} +ExecStart={{ workspace_dir }}/jarvis exec onboard_kinematics +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target diff --git a/ansible/roles/onboard_services/tasks/main.yml b/ansible/roles/onboard_services/tasks/main.yml index 2786248905..ae0ac3c18b 100644 --- a/ansible/roles/onboard_services/tasks/main.yml +++ b/ansible/roles/onboard_services/tasks/main.yml @@ -3,10 +3,12 @@ src: "files/{{ item }}.service" dest: "/etc/systemd/system/{{ item }}.service" with_items: + - rover-onboard-auton-light - rover-onboard-cv - rover-onboard-filter - rover-onboard-gps - rover-onboard-imu + - rover-onboard-kinematics - rover-onboard-microscope - rover-onboard-nav - rover-onboard-raman @@ -31,10 +33,12 @@ - name: Enable services systemd: name={{item}} enabled=yes with_items: + - rover-onboard-auton-light.service - rover-onboard-cv.service - rover-onboard-filter.service - rover-onboard-gps.service - rover-onboard-imu.service + - rover-onboard-kinematics.service - rover-onboard-microscope.service - rover-onboard-nav.service - rover-onboard-raman.service