Skip to content
Snippets Groups Projects
Commit 98a39f02 authored by Nikos Tsipinakis's avatar Nikos Tsipinakis
Browse files

Update .gitlab-ci.yml file

parent 17f80a13
Branches test
No related tags found
No related merge requests found
Pipeline #5416850 passed
......@@ -13,13 +13,12 @@ update_inventory:
- git config user.email siserv@cern.ch
- git config user.name "Submission Infrastructure Service"
- git remote set-url origin https://action:${ACCESS_TOKEN}@gitlab.cern.ch/CMSSI/SubmissionInfrastructureDocumentation.git
- git checkout master
- kinit siserv <<< ${SISERV_PW}
# Prepare for magic
# This queries directly the PuppetDB endpoint, do not touch unless you know what you're doing!
- cat docs/nodes.md
- >-
curl --negotiate -u : https://aipbdbal93.cern.ch:9081/pdb/query/v4/facts?query=%5B%22and%22%2C++%5B%22%3D%22%2C+%22name%22%2C+%22vocmssi_monitor%22%5D%2C+%5B%22in%22%2C+%22certname%22%2C+%5B%22extract%22%2C+%22certname%22%2C+%5B%22select_facts%22%2C+%5B%22and%22%2C+%5B%22%3D%22%2C+%22name%22%2C+%22hostgroup%22%5D%2C+%5B%22%7E%22%2C+%22value%22%2C+%22vocmssi%22%5D%5D%5D%5D%5D%5D | jq '["Pool", "Hostname", "Hostgroup", "Environment", "Condor Version", "GWMS Version"], ["----", "--------", "---------", "-----------", "--------------", "------------"], (.[] | [.value.condor_pool, .certname, .values.hostgroup, .environment, .value.condor_version, .value.glideinwms_version]) | @tsv' -r | tr '\t' '|' > docs/nodes.md
- cat docs/nodes.md
- git add docs/
- git commit -m "Update inventory"
- git push
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment