]> Git Repo - VerusCoin.git/commitdiff
Add a separate Buildbot host info template for EC2
authorJack Grigg <[email protected]>
Fri, 14 Jul 2017 17:24:01 +0000 (12:24 -0500)
committerJack Grigg <[email protected]>
Fri, 14 Jul 2017 17:35:09 +0000 (12:35 -0500)
Latent workers are not usually created on the instance type that will be used,
so memory and CPU info collected at AMI creation will likely be inaccurate.

contrib/ci-workers/README.md
contrib/ci-workers/templates/host.ec2.j2 [new file with mode: 0644]
contrib/ci-workers/unix.yml
contrib/ci-workers/vars/buildbot.yml

index cc3c85ac221f68ac410c4752e52c3185512d8e81..067c0cb5e901cf350e93d8018fc2880659cf78b2 100644 (file)
@@ -26,8 +26,8 @@ installation for use as a Buildbot worker in Zcash's CI.
     [zcash-ci-worker-unix]
     some-name ansible_host=<INSTANCE_IP> ansible_ssh_user=<USERNAME>
 
-- Run `ansible-playbook -i inventory/hosts unix.yml`, passing in the worker's
-  Buildbot name and password.
+- Run `ansible-playbook -e buildbot_worker_host_template=templates/host.ec2.j2 -i inventory/hosts unix.yml`,
+  passing in the worker's Buildbot name and password.
   - After a successful run, the worker should be connected to dev-ci.z.cash and
     visible in its worker list.
 
diff --git a/contrib/ci-workers/templates/host.ec2.j2 b/contrib/ci-workers/templates/host.ec2.j2
new file mode 100644 (file)
index 0000000..dee692e
--- /dev/null
@@ -0,0 +1 @@
+OS: {{ ansible_distribution }} {{ ansible_distribution_version }}
index a33fac21edf12230721eb3aef8ea90482413a844..42bcaafc210bb0f2dbc5587c3b571c88b3c34cac 100644 (file)
 
     - name: Set host details for Buildbot worker
       template:
-        src: templates/host.j2
+        src: "{{ buildbot_worker_host_template }}"
         dest: "~/{{ buildbot_worker_name }}/info/host"
       become_user: "{{ buildbot_worker_user }}"
 
index 3d21f400f938b9cd354a0002efd55dfaa1a92abd..38e3fd25ab4dcece90212a6333b26cdac12f6385 100644 (file)
@@ -2,3 +2,4 @@
 buildbot_worker_user: zcbbworker
 buildbot_master_host: dev-ci.z.cash
 buildbot_master_port: 9899
+buildbot_worker_host_template: templates/host.j2
This page took 0.028604 seconds and 4 git commands to generate.