Commit Graph

7 Commits

Author SHA1 Message Date
Ben Swartzlander cadc0ee391 Create a config drive to test the metadata code
Because it's not possible to test the metadata service
code in an easy way, create a config drive ISO image for
test purposes.

Also speed up the metadata code to not block while waiting
for the metadata service and to exit quickly when there is
no config drive CD present.

Change-Id: If6a5565825b67de58715e3d2de1cbf69b7f9e551
2017-01-30 19:09:43 +00:00
Ben Swartzlander 0c98cfee3e Wrap long lines
Fix bashate warning E006 by wrapping long lines.

Also make sure bashate runs on init scripts that don't end
in .sh.

Change-Id: I077a064505e6f11f61c65279a54c9b2430044bf0
2017-01-29 23:56:20 +00:00
Ben Swartzlander 0358d1f175 Conform to bashate standards for control structures
Enable bashate errors E010 and E011 which require "then" and "do"
tokens on the same lines as "if" and "while" respectively.

Change-Id: I4a167530a21ab95d5dbe9f903facc9566a0461e2
2017-01-29 23:56:06 +00:00
Ben Swartzlander 6f370f0608 Convert tabs to spaces
Replace all tabs with 4 spaces, and re-enable bashate
warnings E002 and E003.

Change-Id: I11f3a9ca9b910555e1b1477c52288493f9bb0244
2017-01-29 18:55:19 -05:00
Ben Swartzlander c533026ed7 Support SSH keys from config drive
Add kernel support for IDE CDROM drives, add a package for JSON
parsing, and updating the metadata script to look for SSH keys
on the config drive in addition to the metadata server.

Change-Id: Ic8f065bfd77dd4c533590a023bab8b1d32da1f53
2017-01-28 15:38:30 +00:00
Ben Swartzlander 9698c519c7 Replace chown with chmod
Chmod was accidentally used instead of chown in the metadata script.

Change-Id: I34d550bd57d7858250f8039c48bc52645923bb5b
2017-01-28 15:23:27 +00:00
Ben Swartzlander 9d92a48629 Initial commit 2016-10-19 11:36:17 -04:00