← Back to team overview

canonical-hw-cert team mailing list archive

[Merge] ~kevinyeh/cc-lab-manager:update-agent-config into cc-lab-manager:master

 

Kevin Yeh has proposed merging ~kevinyeh/cc-lab-manager:update-agent-config into cc-lab-manager:master.

Commit message:
Update: update agent config for lab3.

Requested reviews:
  Canonical Hardware Certification (canonical-hw-cert)

For more details, see:
https://code.launchpad.net/~kevinyeh/cc-lab-manager/+git/cc-lab-manager/+merge/435107
-- 
Your team Canonical Hardware Certification is requested to review the proposed merge of ~kevinyeh/cc-lab-manager:update-agent-config into cc-lab-manager:master.
diff --git a/cc_lab_manager/gen_config/gen_agent_tf_config.py b/cc_lab_manager/gen_config/gen_agent_tf_config.py
index f4bddfb..fa85735 100644
--- a/cc_lab_manager/gen_config/gen_agent_tf_config.py
+++ b/cc_lab_manager/gen_config/gen_agent_tf_config.py
@@ -343,6 +343,24 @@ def create_agent_yaml(db_machine_list, cfg_path):
                 }
             }
         }
+        if lab != 'tel-l5':
+            data = {
+                "series": "jammy",
+                "description": ("cert-testflinger-agents-" + lab),
+                "applications":{
+                    ("agent-host-server-" + lab):{
+                        "series": "jammy",
+                        "constraints": ("tags=cert-agent-host-" + lab),
+                        "charm": "../charms/testflinger-agent-host-charm",
+                        "num_units": 1,
+                        "resources":{
+                            "ssh_priv_key": "agent-host/id_rsa",
+                            "ssh_pub_key": "agent-host/id_rsa.pub"
+                        }
+                    }
+                }
+            }
+
         for machine in db_machine_list:
             if (machine['lab'] == '' or machine['MAC'] == '' or
                     machine['Customized_agent_config'] == 'TRUE'):