summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-16 08:16:35 +0200
committerLars Wirzenius <liw@liw.fi>2024-01-16 08:16:35 +0200
commit0d79a6f0f3f7ada58546835d4fe6a454b5e11fc3 (patch)
tree64ec98a28071ea610cc2c7b3ae8f0b3a59283c2c
parent22b2680d046b3ad000de4ba784a75b4a7678b417 (diff)
downloadansibleness-0d79a6f0f3f7ada58546835d4fe6a454b5e11fc3.tar.gz
drop icktool
-rw-r--r--ansible/icktool.yml88
1 files changed, 0 insertions, 88 deletions
diff --git a/ansible/icktool.yml b/ansible/icktool.yml
deleted file mode 100644
index aba92cf..0000000
--- a/ansible/icktool.yml
+++ /dev/null
@@ -1,88 +0,0 @@
-- hosts: icktool
- remote_user: debian
- become: yes
- roles:
- - role: sane_debian_system
- - role: unix_users
- tasks:
- - name: "install git and Ick"
- apt:
- state: present
- name:
- - git
- - moreutils
- - psmisc
- - ick2
- - jq
- - name: "clone liw-ci"
- shell: |
- if ! [ -e /home/liw/liw-ci ]
- then
- sudo -i -u liw git clone git://git.liw.fi/liw-ci
- fi
- - name: "install ick-statut"
- copy:
- content: |
- #!/bin/bash
- set -euo pipefail
- icktool status | grep -v -e "done" -e "dummy-"
- dest: /home/liw/ick-status
- owner: liw
- group: liw
- mode: 0755
- - name: "create ~/.config/icktool"
- file:
- state: directory
- path: /home/liw/.config/icktool
- owner: liw
- group: liw
- - name: "install icktool config"
- copy:
- content: |
- config:
- controller: https://ci-prod-controller.vm.liw.fi
- dest: /home/liw/.config/icktool/icktool.yaml
- owner: liw
- group: liw
- mode: 0644
- - name: "install icktool credentials"
- copy:
- content: |
- [https://ci-prod-controller.vm.liw.fi/token]
- client_id = liw
- client_secret = {{ lookup('pipe', 'pass ick2/admin_secret') }}
- dest: /home/liw/.config/icktool/credentials.conf
- owner: liw
- group: liw
- mode: 0600
-
- - name: "install cron job to trigger missing or old builds"
- cron:
- name: "trigger-old"
- user: liw
- minute: "0"
- hour: "*"
- job: |
- /home/liw/liw-ci/trigger-old | head -n5 | while read x; do icktool trigger "$x"; done
-
- vars:
- ansible_python_interpreter: /usr/bin/python3
-
- sane_debian_system_version: 2
- sane_debian_system_hostname: icktool
- sane_debian_system_codename: buster
- sane_debian_system_sources_lists:
- - repo: deb http://ci-prod-controller.vm.liw.fi/debian unstable-ci main
- signing_key: "{{ ci_prod_signing_key }}"
-
- unix_users_version: 2
- unix_users:
- - username: liw
- comment: Lars Wirzenius
- sudo: true
- authorized_keys: |
- {{ liw_personal_ssh_pub }}
- ssh_key: |
- {{ lookup('pipe', 'pass show ssh/liw@mirror-git') }}
- ssh_key_pub: |
- {{ lookup('pipe', 'pass show ssh/liw@mirror-git.pub') }}