Skip to content

Commit

Permalink
add persistence over reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
Akira25 committed Oct 16, 2024
1 parent 55c9ca0 commit 2badbf1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions roles/buildbot_worker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,42 @@
- Initialise buildbot-worker
- Restart buildbot-worker

#- name: Reinstall ramdisk-Worker script (reinstall on boot)
# ansible.builtin.copy:
# dest: "/home/{{ machine_user }}/reinstall_bbworker.sh"
# mode: '0644'
# content: |
# #!/bin/bash
# # (re-)creates the buildbot work er on the ramdisk, everytime the system reboots.
# mkdir -p "{{ bbworker_path }}"
# virtualenv "{{ bbworker_path }}env"
# pip install buildbot-worker=={{ buildbot_version }}
# source "{{ bbworker_path }}env/bin/activate"
# "{{ bbworker_path }}/env/bin/buildbot-worker create-worker --umask=0o22 {{ bbworker_path }} {{ bbmaster_fqdn }}:{{ bbmaster_port }} {{ bbworker_name }} {{ bbworker_pwd }}"
# owner: "{{ machine_user }}"
# group: "{{ machine_user }}"
# when: bbworker_ramdisk
#
#- name: Persist ramdisk-Worker
# ansible.builtin.copy:
# dest: "/home/{{ machine_user }}/reinstall_bbworker.sh"
# mode: '0644'
# content: |
# #!/bin/bash
# # (re-)creates the buildbot work er on the ramdisk, everytime the system reboots.
#
# mkdir -p "{{ bbworker_path }}"
# virtualenv "{{ bbworker_path }}env"
# pip install buildbot-worker=={{ buildbot_version }}
#
# source "{{ bbworker_path }}env/bin/activate"
# "{{ bbworker_path }}/env/bin/buildbot-worker create-worker --umask=0o22 {{ bbworker_path }} {{ bbmaster_fqdn }}:{{ bbmaster_port }} {{ bbworker_name }} {{ bbworker_pwd }}"
#
# exit 0
# owner: "{{ machine_user }}"
# group: "{{ machine_user }}"
# when: bbworker_ramdisk

- name: Flush handlers
meta: flush_handlers

Expand Down

0 comments on commit 2badbf1

Please sign in to comment.