Quellcode durchsuchen

project management

master
Ursprung
Commit
260c3a9ace
4 geänderte Dateien mit 49 neuen und 8 gelöschten Zeilen
  1. +0
    -6
      common.yaml
  2. +11
    -2
      controllers.yaml
  3. +22
    -0
      group_vars/controllers/buildbot.yaml
  4. +16
    -0
      group_vars/controllers/projects.yaml

+ 0
- 6
common.yaml Datei anzeigen

@@ -6,9 +6,3 @@
remote_user: root
roles:
- role: common

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

+ 11
- 2
controllers.yaml Datei anzeigen

@@ -3,8 +3,17 @@
- hosts: controllers
remote_user: root
roles:
#- role: nginx
#- role: tools
#- role: gitea
#- role: buildbot
#- 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

+ 22
- 0
group_vars/controllers/buildbot.yaml Datei anzeigen

@@ -0,0 +1,22 @@
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

+ 16
- 0
group_vars/controllers/projects.yaml Datei anzeigen

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

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

Laden…
Abbrechen
Speichern