]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
examples/builder.yml: set api token based on api_uri
authorDan Mick <dan.mick@redhat.com>
Wed, 14 May 2025 00:35:03 +0000 (17:35 -0700)
committerDan Mick <dan.mick@redhat.com>
Thu, 15 May 2025 02:13:42 +0000 (19:13 -0700)
This is really the ceph-jenkins ssh user's password, but they're
now stored in ceph-sepia-secrets so they don't have to be found
and entered on the cmdline here

This keeps 'one ansible-vault encrypt output' in one file, and
should be easier to edit/view/etc.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
ansible/examples/builder.yml

index 5ae248b86ada491027fd5cd318d4cdd6734e1a6b..b2473513b7524c0592807792e8aa419c4873607b 100644 (file)
 
 
   tasks:
-    - name: "Include secrets"
-      include_vars: "{{ secrets_path | mandatory }}/jenkins_api_token.yml"
-      no_log: true
-      tags:
-        always
-
-    - set_fact:
-        token: "{{ jenkins_api_token }}"
+    - name: "Include appropriate jenkins API token"
+      # sets 'token'
+      include_vars: "{{ secrets_path | mandatory }}/{{ api_uri | replace('https://', '')}}.apitoken.yml"
       no_log: true
       tags:
         always