summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2012-09-24write-ssh-key-fingerprints: do not send HOST KEYS through loggerScott Moser
In the previous commit to htis file I had wrapped the writing of 'BEGIN SSH HOST KEY KEYS' to go through logger. This would cause the keys to be prefixed with 'ec2:' which, previously they were not. That would break existing users *and* make it more difficult to consume that data, which was explicitly added to be easy to consume.
2012-09-24send stderr from write-ssh-key-fingerprints to stdoutScott Moser
This changes all output write-ssh-key-fingerprints to go to its stdout by redirecting stderr to stdout. The reason for this is that cc_keys_to_console.py was swallowing stderr and not replaying it to /dev/console. Ideally, we'd have a way in 'util.subp' to do effectively the same thing as we're doing here in the shell script. LP: #1055688
2012-08-22fix pep8 complaints.Scott Moser
make pep8 now is silent on precise's pep8 ( 0.6.1-2ubuntu2).
2012-08-09stright forward pylint cleanups to tests/ and tools/Scott Moser
2012-07-09include ~bzr in make-tarball output tarball and top level dirJoshua Harlow
output of 'make-tarball' now is tarball with name formatted as: cloud-init-$VERSION~bzr$REVNO.tar.gz Instead of cloud-init-$VERSION-$REVNO.tar.gz The former is desireable for apt at least as the '~' is understood to mean less than. This merges revno 569 and 570 from lp:~harlowja/cloud-init/rework
2012-07-09get 'brpm' working again. update make-tarball to have a top level dir.Joshua Harlow
2012-07-09rework packaging tools to find the right cloud-init topdirJoshua Harlow
This also fixes 'brpm' to address --init-system change that smoser made to setup.py before the large 'rework' merge.
2012-07-09fix tools/run-pylint to just check all python finesScott Moser
2012-07-06Got this working for 'brpm' again.Joshua Harlow
2012-07-06Reworking these to look attempt to find the right parent directory, as well Joshua Harlow
as adjustments due to sysvinit rename.
2012-07-03Remove the useless function printout.Joshua Harlow
2012-07-03When the hostname is also the ip (thus no hostname) just use 'localhost'Joshua Harlow
2012-07-031. Cleanup of some mock functionalityJoshua Harlow
2. Adding in returning the 'public-keys' to the metadata 'list' response 3. Adding in sending back the running users keys (useful for testing) along with 'brickies' 4. Add in a traverse function that can walk down a dictionary (if possible)
2012-07-031. Update the mock ec2 data with some of the pubkey code from smosers ec2 ↵Joshua Harlow
metadata server. 2. Allow the setting of the ip addr (not just to 0.0.0.0) 3. Add comment as to how to use this for the 169 'magic' addr
2012-07-02Add a check on the filename provided ensuring it actually exists.Joshua Harlow
2012-07-02Update the mock metadata server to return a file (or the default generated ↵Joshua Harlow
content) for the userdata blob.
2012-07-01Add a nova/openstack based extension to pep8 via hacking.pyharlowja
2012-06-26Add check that the changelog version is the same as the code versionharlowja
2012-06-25Add a simple tool that will parse the requires fileJoshua Harlow
2012-06-25This tool knows how to extract the current version from the 'changelog' file.Joshua Harlow
2012-06-251. Moving around the packages dir.Joshua Harlow
2. Adjusting the bddep shell script 3. Starting to add a brpm
2012-06-25Add warning when hitting a unknown api.Joshua Harlow
2012-06-23Remove the pep8 tool from being ran in a script that has aharlowja
name that seems to just say it will run pylint. Put the pep8 tool in a 'run-pep8' script.
2012-06-231. Separate the pep8 check from the pylint checkharlowja
a. This allows them to be run as different tools (if desired) 2. Adjust the makefile to have a 'make pep8' section which can run this new script
2012-06-20Return a empty json map as default instead of an empty string for unknown fieldsJoshua Harlow
2012-06-20update tools/bddeb and debian.trunk packagingScott Moser
* debian.trunk/changelog: increase debian version to '1' to avoid lintian error * debian.trunk/control: bump standards version * debian.trunk/rules: remove cloud-init-run-module symlink (been deprecated for some time) * tools/bddeb: read version from ChangeLog rather than setup.py
2012-06-19Add a mock ec2 metadata server that can be used for testing withJoshua Harlow
2012-04-04minor cleanup to messages, combine commands to single lineScott Moser
* remove unused 'line' variable * fix bug where multiple errant locales were not working correctly * only output each bad locale once in the list * you only need to run the apt-get install of the package *or* localegen
2012-04-04Only show this message one time.Scott Moser
2012-04-04move Z99-cloud-locale-test.sh out of profile.d to toolsScott Moser
Just to avoid an entry in top level directory, get rid of profile.d there and instead move Z99-cloud-locale-test.sh -> tools/Z99-cloud-locale-test.sh
2012-03-06add tests to run-pylint filesScott Moser
2012-01-17miscellaneous cleanups, and add tools/run-pylintScott Moser
adding run-pylint makes it easy to run pylint with given configuration against the code.
2011-12-20put sem/marker files in 'sem' dirsScott Moser
2011-12-20replace cloud-init-run-module with cloud-init-perScott Moser
This replaces cloud-init-run-module (which was probably rarely or never used) with 'cloud-init-per' which does basically the same thing, but doesn't support "modules".
2011-12-20output public ssh host keys to console on boot (LP: #893400)Scott Moser
Currently cloud-init writes something like this to console output: ec2: ############################################################# ec2: -----BEGIN SSH HOST KEY FINGERPRINTS----- ec2: 2048 78:ae:f3:91:04:6f:8d:ee:ef:e1:2d:72:83:6a:d0:82 root@h (RSA) ec2: 1024 d3:b6:32:64:22:d4:43:05:f9:25:b4:f3:65:4e:e2:51 root@h (DSA) ec2: -----END SSH HOST KEY FINGERPRINTS----- ec2: ############################################################# the key fingerprints are useful for humans to read, but not so useful for machines, as you cannot populate a KnownHostsFile (~/.ssh/known_hosts) from the data there. This change adds output like: -----BEGIN SSH HOST KEY KEYS----- ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdH......STI= root@h ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYRIQe6m......tWF3 root@h -----END SSH HOST KEY KEYS----- Those lines can easily be grabbed and appended to a known_hosts file.
2011-12-16tools/bddeb: add a symlink to created debScott Moser
this just adds a cloud-init_all.deb symlink to the deb that is created so its easier to scp it elsewhere after you build it.
2011-12-16bddeb: improve 'bddeb' to read version and add bzr revnoScott Moser
This just removes one place where i had the version string and additionally makes bddeb built debs have a revno in their version
2011-10-30Make the types of SSH keys to generate configurableScott Moser
Notes: * This also makes cc_ssh.py *not* write ssh keys to the console. That means that if keys-to-console is configured off, nothing will write the keys to the console. * I removed Garret's use of xargs, replacing with a shell for loop in write-ssh-key-fingerprints. taken from git://pkgs.fedoraproject.org/cloud-init.git commit 87f33190f43d2b26cced4597e7298835024466c2 Author: Garrett Holmstrom <gholms@fedoraproject.org> Patch8: cloud-init-0.6.2-sshkeytypes.patch
2011-10-27make-dist-tarball: make output not be debian-likeScott Moser
instead of cloud-init_0.6.2.orig.tar.gz, create cloud-init-0.6.2.tar.gz
2011-10-09fix updates.tar function in uncloud-initScott Moser
LP: #871297
2011-02-04add a debian.trunk dir and tools/bddeb to easily build a deb from hereScott Moser
2011-01-27improve comment strings in rsyslog config file tools/21-cloudinit.confScott Moser
2011-01-19move writing of ssh key fingerprints to a separate toolScott Moser
This will allow this code to be called more easily elsewhere. I'm considering having the "all the way up" message contain fingerprints so that they're more or less guaranteed to get to the console where the user could see them.
2011-01-11move write-mime-multipart into cloud-utils packageScott Moser
2010-08-13uncloud-init: move marker file into /var/lib/cloud/semScott Moser
All other marker files by cloud-init live in /var/lib/cloud/sem it makes sense for uncloud-init's file to live there too.
2010-08-12initial dump of "sans-cloud" code (DataSourceNoCloud)Scott Moser
The new classes 'DataSourceNoCloud' and 'DataSourceNoCloudNet' implement a way to get data from the filesystem, or (very minimal) data from the kernel command line. This allows the user to seed data to these sources. There are now 2 "cloud-init" jobs, cloud-init-local that runs on mounted MOUNTPOINT=/ and 'cloud-init' that runs on start on (mounted MOUNTPOINT=/ and net-device-up IFACE=eth0 and stopped cloud-init-local ) The idea is that cloud-init-local can actually function without network. The last thing in this commit is "uncloud-init". This tool can be invoked as 'init=/usr/lib/cloud-init/uncloud-init' It will "uncloudify" things in the image, generally making it easier to use for a simpler environment, and then it will exec /sbin/init.
2010-07-01remove incorrect docstring in write-mime-multipartScott Moser
2010-06-18add 'cloud-boothook' typeScott Moser
if user data is of type text/cloud-boothook, or begins with #cloud-boothook, then assume it to be code to be executed. Boothooks are a very simple format. Basically, its a one line header ('#cloud-config\n') and then executable payload. The executable payload is written to a file, then that file is executed at the time it is read. The file is left in /var/lib/cloud/data/boothooks There is no "first-time-only" protection. If running only once is desired, the boothook must handle that itself.
2010-06-17move suggested rsyslogd config file to toolsScott Moser
2010-03-25[packaging] change make-dist-tarball to use the tag given to itScott Moser