From 6809209e9e7abee241dedd8a74de16741ec93381 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 13 Feb 2024 19:55:42 +0200 Subject: add seed.liw.fi; drop testseed.liw.fi Signed-off-by: Lars Wirzenius Sponsored-by: author --- ansible/hosts | 2 +- ansible/seed.liw.fi.yml | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ ansible/testseed.liw.fi | 50 --------------------------------------- 3 files changed, 63 insertions(+), 51 deletions(-) create mode 100644 ansible/seed.liw.fi.yml delete mode 100644 ansible/testseed.liw.fi (limited to 'ansible') diff --git a/ansible/hosts b/ansible/hosts index dc99a81..3eefd20 100644 --- a/ansible/hosts +++ b/ansible/hosts @@ -57,5 +57,5 @@ http.liw.fi irc.liw.fi shell-shell.vm.liw.fi radicle.liw.fi -testseed ansible_ssh_host=testseed.liw.fi +seed.liw.fi wumpus.liw.fi diff --git a/ansible/seed.liw.fi.yml b/ansible/seed.liw.fi.yml new file mode 100644 index 0000000..3057796 --- /dev/null +++ b/ansible/seed.liw.fi.yml @@ -0,0 +1,62 @@ +- hosts: seed.liw.fi + remote_user: root + become: yes + roles: + - role: sane_debian_system + - role: sshd + - role: unix_users + - role: rust-rustup + - role: radicle_node + tasks: + - name: "install convenience packages" + apt: + name: + - jq + - moreutils + - psmisc + vars: + ansible_python_interpreter: /usr/bin/python3 + + sane_debian_system_version: 2 + sane_debian_system_hostname: "{{ inventory_hostname }}" + sane_debian_system_codename: bookworm + sane_debian_system_timezone: Europe/Helsinki + sane_debian_system_sources_lists: + - repo: | + deb http://security.debian.org/debian-security bookworm-security main contrib non-free + - repo: deb http://apt.liw.fi/debian unstable main + signing_key: "{{ apt_liw_fi_signing_key }}" + + unix_users_version: 2 + unix_users: + - username: _rad + comment: Radicle node + + sshd_version: 1 + + radicle_node_version: 1 + radicle_node_key: "{{ lookup('pipe', 'pass radicle/seed.liw.fi/key') }}" + radicle_node_key_pub: "{{ lookup('pipe', 'pass radicle/seed.liw.fi/key.pub') }}" + radicle_node_connections: + - nid: z6MkfXa53s1ZSFy8rktvyXt5ADCojnxvjAoQpzajaXyLqG5n + host: radicle.liw.fi + port: 8776 + radicle_node_repositories: + - rid: "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" + - rid: "rad:zZnk3hS8C3WAhnv7mWcCUToCqpBs" + radicle_node_domain_name: seed.liw.fi + radicle_node_ci_domain_name: ci.seed.liw.fi + radicle_node_ci_broker_config: | + default_adapter: native + adapters: + native: + command: /bin/radicle-native-ci + env: + RADICLE_NATIVE_CI: /home/_rad/native-ci.yaml + filters: + - !And + - !Repository "rad:zZnk3hS8C3WAhnv7mWcCUToCqpBs" + - !AnyPatch + radicle_node_policy: allow + + rust_rustup_user: _rad diff --git a/ansible/testseed.liw.fi b/ansible/testseed.liw.fi deleted file mode 100644 index d3b6aee..0000000 --- a/ansible/testseed.liw.fi +++ /dev/null @@ -1,50 +0,0 @@ -- hosts: testseed - remote_user: root - become: yes - roles: - - role: sane_debian_system - - role: sshd - - role: unix_users - - role: rust-rustup - - role: radicle_node - tasks: - - name: "install convenience packages" - apt: - name: - - jq - - moreutils - - psmisc - vars: - ansible_python_interpreter: /usr/bin/python3 - - sane_debian_system_version: 2 - sane_debian_system_hostname: "{{ inventory_hostname }}" - sane_debian_system_codename: bookworm - sane_debian_system_timezone: Europe/Helsinki - sane_debian_system_sources_lists: - - repo: | - deb http://security.debian.org/debian-security bookworm-security main contrib non-free - - repo: deb http://apt.liw.fi/debian unstable main - signing_key: "{{ apt_liw_fi_signing_key }}" - - unix_users_version: 2 - unix_users: - - username: _rad - comment: Radicle node - - sshd_version: 1 - - radicle_node_version: 1 - radicle_node_key: "{{ lookup('pipe', 'pass radicle/testseed.liw.fi/key') }}" - radicle_node_key_pub: "{{ lookup('pipe', 'pass radicle/testseed.liw.fi/key.pub') }}" - radicle_node_connections: - - nid: z6MkfXa53s1ZSFy8rktvyXt5ADCojnxvjAoQpzajaXyLqG5n - host: radicle.liw.fi - port: 8776 - radicle_node_repositories: - - rid: "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" - - rid: "rad:zZnk3hS8C3WAhnv7mWcCUToCqpBs" - radicle_node_domain_name: testseed.liw.fi - radicle_node_ci_domain_name: ci.testseed.liw.fi - - rust_rustup_user: _rad -- cgit v1.2.1