added upload of yaml with system description(facter facts)
authorWonko T. Sane <42@wonko.de>
Mon, 14 Mar 2016 17:09:31 +0000 (18:09 +0100)
committerWonko T. Sane <42@wonko.de>
Mon, 14 Mar 2016 17:09:31 +0000 (18:09 +0100)
bootstrap.sh

index cbfce43..9cb6e15 100755 (executable)
@@ -15,6 +15,8 @@ fi
 #check for install.hq
 if ping -c 5 install.hq; then
     echo 'Acquire::http::Proxy "http://install.hq:8080/";' > /etc/apt/apt.conf
+    facter --yaml /tmp/facts.yaml
+    curl -T /tmp/facts.yaml ftp://install.hq/refugee-notebooks/${HOSTNAME}.yaml
 else
     echo "#no proxy" > /etc/apt/apt.conf
 fi