summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2014-02-28tools/make-tarball: add ability to include uncommited changesScott Moser
if you have UNCOMMITTED=1 in environment then the tree will contain uncommitted changes.
2014-01-24add --dummy-variables-rgx= param when calling pylintScott Moser
new pylint in trusty complains about '_' variables if we don't do this. This seems to be ok in older versions of pylint also.
2014-01-24pep8/pylint fixesScott Moser
tools/run-pep8 wasn't checking all python files. tools/run-pylint wasnt checking bin/cloud-init fixed resultant pep8 issues after finding them.
2014-01-22tools/read-dependencies tools/read-version: rewrite in pythonScott Moser
This just does python rewrites of these tools that were shell or sed or grep. Clearly the user of cloud-init has python, but it turns out that getting sane versions of sed or grep on different unixes is less than simple.
2014-01-17Update makefile to install from updated requirements filesJoshua Harlow
2013-09-11fix read-versionScott Moser
2013-09-11better checking and portability in read-dependencies and read-versionScott Moser
2013-09-08tools/read-dependencies, read-version: cleanups, and use sed not grepScott Moser
There are just some cleanups here, and use of simply 'sed' rather than grep and cut. The motivation is to support running with non gnu 'grep' that doesn't have -P.
2013-04-17add debug output to ccfg-merge-debugScott Moser
Exeptions were being swallowed completely and no way to even see them other than log.
2013-04-09tools: fix [some] shell quoting problemsScott Moser
There were problems with these tools if the path had a space. This should make these tools safe. There are others that still have problems.
2013-04-09tools: fix [some] shell quoting problemsScott Moser
There were problems with these tools if the path had a space. This should make these tools safe. There are others that still have problems.
2013-04-03add merge debug toolScott Moser
2013-01-21Add in a tool to help make mime multipart messages.Joshua Harlow
2012-12-04replace if..else based on presense of /etc/redhat-release with use of -sScott Moser
instead of using '--stderr' on non-rhel based on the presense of /etc/redhat-release, just use the short form '-s' everywhere.
2012-11-28Check for running inside RHEL and adjust the logging options.Joshua Harlow
It seems like at least RHEL does not have the "--stderr" option but instead only supports the short version "-s" so add a check that will switch from the long version to the short version when RHEL is detected. LP: #1083715
2012-11-10whitespace / indentation cleanupsScott Moser
These changes were pulled out of the previous merge (cc_yum_add_repo) as they were unrelated there. Re-applying them here.
2012-11-09Merge the yaml/cloud config examples checking tool.Joshua Harlow
2012-11-09Fix pep8 warnings.Joshua Harlow
2012-11-08Ensure that at needed stages the local variablesJoshua Harlow
of the init class are reset so that when they are regenerated that they will use the updated data instead of using previous data (since they weren't reset). LP: #1076811
2012-11-08Add non-zero exit code whenJoshua Harlow
bad yamls are found instead of returning zero in that case.
2012-11-08work with zsh by using 'emulate -L sh'.Scott Moser
This makes zsh act like 'sh', but only for the function local function. This way, we do not affect the user's shell, but get the behavior we want.
2012-11-08remove unused variable 'cr'. fix usage of 'value' to local 'val'Scott Moser
2012-11-08revert old zsh fix (revno 697)Scott Moser
2012-11-07Add a makefile yaml checking targetJoshua Harlow
and fix the cases where the cc yaml is not correct.
2012-11-07test and path cleanups.Joshua Harlow
1. Remove the usage of the path.join function now that all code should be going through the util file methods (and they can be mocked out as needed). 2. Adjust all occurences of the above join function to either not use it or replace it with the standard os.path.join (which can also be mocked out as needed) 3. Fix pylint from complaining about the tests folder 'helpers.py' not being found. 4. Add a pylintrc file that is used instead of the options hidden in the 'run_pylint' tool.
2012-11-06tools/Z99-cloud-locale-test.sh: avoid warning when shell is zshScott Moser
LP: #1073077
2012-10-27Helpful cleanups.harlowja
1. Remove the usage of the path.join function now that all code should be going through the util file methods (and they can be mocked out as needed). 2. Adjust all occurences of the above join function to either not use it or replace it with the standard os.path.join (which can also be mocked out as needed) 3. Fix pylint from complaining about the tests folder 'helpers.py' not being found 4. Add a pylintrc file that is used instead of the options hidden in the 'run_pylint' tool.
2012-10-23use only util methods for reading/loading/appending/peekingScott Moser
Use only util methods for reading/loading/appending/peeking at files since it is likely soon that we will add a new way of adjusting the root of files read, also it is useful for debugging to track what is being read/written in a central fashion.
2012-10-01fix tools/make-dist-tarballScott Moser
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