blob: ca2d8dc60758dd3c63cd5808a775d964ae737180 [file] [log] [blame]
azvyagintsev4053eb22018-03-29 16:21:51 +03001#!/bin/bash -xe
2
3# Save some basic debug information.
4
azvyagintseva07a5d72018-06-05 18:33:50 +03005mkdir -p /var/log/bootstrap_logs/
6pushd /var/log/bootstrap_logs/
7 dpkg-query -W -f='${Package}=${Version}\n' | sort -u >> vcp_initial_pkgs.log
azvyagintsev7dd55dc2018-09-26 18:07:09 +03008 cat vcp_initial_pkgs.log
azvyagintsev495fcdd2018-10-17 14:25:29 +03009 # Drop some reclass info,if avaible
10 if [[ $(which salt-key) ]] ; then
11 for node in $(salt-key -l acc | grep -v 'Accepted Keys:') ; do
12 salt ${node} pillar.data --out=json > ${node}.pillardata.json || true
13 reclass -n ${node} -o json > ${node}.reclass.json || true
14 done
15 fi
azvyagintseva07a5d72018-06-05 18:33:50 +030016popd