1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 06:59:12 +00:00

./scripts/run: provision tmp/cloud-config.yml as cloud-config

This commit is contained in:
Ivan Mikushin
2015-04-28 00:07:20 +05:00
parent 6f4d7a177a
commit 3511343f46
2 changed files with 12 additions and 7 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
/tmp
/assets /assets
/state /state
/bin /bin

View File

@@ -56,13 +56,17 @@ fi
mkdir -p $(dirname $USER_DATA) mkdir -p $(dirname $USER_DATA)
echo "#cloud-config" > ${USER_DATA} if [ -e ../../tmp/cloud-config.yml ]; then
echo "ssh_authorized_keys:" >> ${USER_DATA} cat ../../tmp/cloud-config.yml > ${USER_DATA}
for i in ${HOME}/.ssh/*.pub; do else
if [ -e $i ]; then echo "#cloud-config" > ${USER_DATA}
echo " - $(<$i)" >> ${USER_DATA} echo "ssh_authorized_keys:" >> ${USER_DATA}
fi for i in ${HOME}/.ssh/*.pub; do
done if [ -e $i ]; then
echo " - $(<$i)" >> ${USER_DATA}
fi
done
fi
while [ "$#" -gt 0 ]; do while [ "$#" -gt 0 ]; do
case $1 in case $1 in