18631: Add shell's vm uuid from the shell node state
authorJavier Bértoli <jbertoli@curii.com>
Tue, 5 Apr 2022 20:54:38 +0000 (17:54 -0300)
committerJavier Bértoli <jbertoli@curii.com>
Tue, 5 Apr 2022 20:54:38 +0000 (17:54 -0300)
Arvados-DCO-1.1-Signed-off-by: Javier Bértoli <jbertoli@curii.com>

tools/salt-install/config_examples/multi_host/aws/pillars/arvados.sls
tools/salt-install/config_examples/multi_host/aws/states/shell_cron_add_login_sync.sls

index 8c14c56ed3a4336a6820c9359b4477a2c348ecd0..b92c818b898eec8899ec522d3bd0f10ff34a0e89 100644 (file)
@@ -81,6 +81,13 @@ arvados:
       # required to test with arvados-snakeoil certs
       insecure: false
 
+    resources:
+      virtual_machines:
+        shell:
+          name: shell
+          backend: __SHELL_INT_IP__
+          port: 4200
+
     ### TOKENS
     tokens:
       system_root: __SYSTEM_ROOT_TOKEN__
index 4b98d7b237d2e139add2787dff61fefd1a0e49e6..c3a1130646f93fce20ab14a0fbd85fc8c5365bd5 100644 (file)
@@ -44,6 +44,8 @@ extra_shell_cron_add_login_sync_add_{{ vm }}_get_vm_uuid_cmd_run:
     - name: {{ cmd_query_vm_uuid }} | head -1 | tee /tmp/vm_uuid_{{ vm }}
     - unless:
       - /bin/grep -qE "[a-z0-9]{5}-2x53u-[a-z0-9]{15}" /tmp/vm_uuid_{{ vm }}
+    - require:
+      - gem: arvados-shell-package-install-gem-arvados-cli-installed
 
 extra_shell_cron_add_login_sync_add_{{ vm }}_arvados_api_host_cron_env_present:
   cron.env_present: