Add a separate Buildbot host info template for EC2
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.
This commit is contained in:
parent
8247fd954c
commit
e5f8e6185a
|
@ -26,8 +26,8 @@ installation for use as a Buildbot worker in Zcash's CI.
|
||||||
[zcash-ci-worker-unix]
|
[zcash-ci-worker-unix]
|
||||||
some-name ansible_host=<INSTANCE_IP> ansible_ssh_user=<USERNAME>
|
some-name ansible_host=<INSTANCE_IP> ansible_ssh_user=<USERNAME>
|
||||||
|
|
||||||
- Run `ansible-playbook -i inventory/hosts unix.yml`, passing in the worker's
|
- Run `ansible-playbook -e buildbot_worker_host_template=templates/host.ec2.j2 -i inventory/hosts unix.yml`,
|
||||||
Buildbot name and password.
|
passing in the worker's Buildbot name and password.
|
||||||
- After a successful run, the worker should be connected to dev-ci.z.cash and
|
- After a successful run, the worker should be connected to dev-ci.z.cash and
|
||||||
visible in its worker list.
|
visible in its worker list.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
OS: {{ ansible_distribution }} {{ ansible_distribution_version }}
|
|
@ -104,7 +104,7 @@
|
||||||
|
|
||||||
- name: Set host details for Buildbot worker
|
- name: Set host details for Buildbot worker
|
||||||
template:
|
template:
|
||||||
src: templates/host.j2
|
src: "{{ buildbot_worker_host_template }}"
|
||||||
dest: "~/{{ buildbot_worker_name }}/info/host"
|
dest: "~/{{ buildbot_worker_name }}/info/host"
|
||||||
become_user: "{{ buildbot_worker_user }}"
|
become_user: "{{ buildbot_worker_user }}"
|
||||||
|
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
buildbot_worker_user: zcbbworker
|
buildbot_worker_user: zcbbworker
|
||||||
buildbot_master_host: dev-ci.z.cash
|
buildbot_master_host: dev-ci.z.cash
|
||||||
buildbot_master_port: 9899
|
buildbot_master_port: 9899
|
||||||
|
buildbot_worker_host_template: templates/host.j2
|
||||||
|
|
Loading…
Reference in New Issue