From 7d7782cac253d82c6661106f1db15e89ca49c2e8 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 1 Sep 2017 16:36:02 -0500 Subject: [PATCH] Add role to do a vos release on an AFS volume We need this for the wheel mirror and also for the package mirrors. Change-Id: I2b7ace2ec2c318534ae98532736b56850d89eca5 --- roles/release-afs-volume/README.rst | 9 +++++++++ roles/release-afs-volume/tasks/main.yaml | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 roles/release-afs-volume/README.rst create mode 100644 roles/release-afs-volume/tasks/main.yaml diff --git a/roles/release-afs-volume/README.rst b/roles/release-afs-volume/README.rst new file mode 100644 index 000000000..537b35cae --- /dev/null +++ b/roles/release-afs-volume/README.rst @@ -0,0 +1,9 @@ +Run vos release on an AFS volume + +Assumes a valid token has already been acquired via aklog. + +**Role Variables** + +.. zuul:rolevar:: afs_volume + + String containing the name of the volume to release. diff --git a/roles/release-afs-volume/tasks/main.yaml b/roles/release-afs-volume/tasks/main.yaml new file mode 100644 index 000000000..07088c501 --- /dev/null +++ b/roles/release-afs-volume/tasks/main.yaml @@ -0,0 +1,6 @@ +- name: Emit volume name + debug: + var: afs_volume + +- name: Releasing AFS volume + command: "vos release -v {{ afs_volume }}"