add some utils to install by default and add a kick start for the import download after last maas restart
Change-Id: Ia1be015d43deab1ca35a084e03bce2fc546c6c41
(cherry picked from commit cadefd41f61bcf0e1f202bdee5ef9cdbedfb80cc)
diff --git a/roles/compute-node/tasks/main.yml b/roles/compute-node/tasks/main.yml
index d5dd19a..b5d9c3a 100644
--- a/roles/compute-node/tasks/main.yml
+++ b/roles/compute-node/tasks/main.yml
@@ -17,6 +17,9 @@
- ifenslave-2.6
- bridge-utils
- ethtool
+ - minicom
+ - curl
+ - jq
- name: Ensure Docker Insecure Repository
become: yes
diff --git a/roles/maas/tasks/main.yml b/roles/maas/tasks/main.yml
index b901e7b..6168d27 100644
--- a/roles/maas/tasks/main.yml
+++ b/roles/maas/tasks/main.yml
@@ -323,6 +323,10 @@
state=restarted
when: ns_nameserver.changed or ns_search.changed
+- name: Ensure Boot Resource Import Started
+ become: yes
+ shell: maas login cord http://localhost/MAAS/api/1.0/ "{{apikey.stdout}}" && maas cord boot-resources import && maas logout cord
+
- name: Ensure VirtualBox Power Management
include: virtualbox.yml
when: virtualbox_support is defined