Markus Katharina Brechtel преди 4 години
родител
ревизия
15d351f4e5
променени са 5 файла, в които са добавени 17 реда и са изтрити 44 реда
  1. +0
    -9
      controllers.yaml
  2. +0
    -19
      group_vars/controllers/buildbot.yaml
  3. +11
    -0
      group_vars/controllers/project.yaml
  4. +0
    -16
      group_vars/controllers/projects.yaml
  5. +6
    -0
      project.yaml

+ 0
- 9
controllers.yaml Целия файл

@@ -8,12 +8,3 @@
#- role: netbox
#- role: alerta
- role: buildbot
tasks:
- name: create ssh keys for project users
user:
name: "{{ project }}"
generate_ssh_key: yes
ssh_key_type: ed25519
loop: "{{ projects.keys() }}"
loop_control:
loop_var: project

+ 0
- 19
group_vars/controllers/buildbot.yaml Целия файл

@@ -1,23 +1,4 @@
buildbot_server_name: buildbot.testing.thengo.net
buildbot_workers: |-
{
{% for project_name in projects.keys() %}
{{ project_name | to_json }}: {},
{% endfor %}
}
buildbot_builders: |-
{
{% for project_name in projects.keys() %}
{% set project = projects[project_name] %}
{% if project.builders is defined %}
{% for builder_name in project.builders.keys() %}
{% set builder = project.builders[builder_name] %}
{{ ( project_name + '-' + builder_name ) | to_json }}:
{{ builder | combine({'worker_names':[project_name]}) | to_json }},
{% endfor %}
{% endif %}
{% endfor %}
}

buildbot_gitea_webhook_secret: theow0po5faChaeM5ki2chie
buildbot_gitea_change_hook: true

+ 11
- 0
group_vars/controllers/project.yaml Целия файл

@@ -0,0 +1,11 @@
---
project_name: testing
project_buildbot_builders:
infrastructure:
repo:
type: gitea
branch: master
url: ssh://git@git.testing.thengo.net/thengo-testing/testing.git
shell_commands:
- name: ansible
command: echo Hello World!

+ 0
- 16
group_vars/controllers/projects.yaml Целия файл

@@ -1,16 +0,0 @@
---

projects:
testing:
builders:
infrastructure:
repos:
- name: testing repo
type: gitea
workdir: testing
repourl: ssh://git@git.testing.thengo.net/thengo-testing/testing.git
shell_commands:
- name: ansible
command: echo Hello World!
workdir: testing
force_scheduler: true

+ 6
- 0
project.yaml Целия файл

@@ -0,0 +1,6 @@
---

- hosts: controllers
remote_user: root
roles:
- role: project

Loading…
Отказ
Запис