summaryrefslogtreecommitdiff
path: root/cloudinit/config
AgeCommit message (Collapse)Author
2015-02-11provide default final message in jinja to avoid WARN in logScott Moser
2015-02-10pep8Scott Moser
2015-02-11fix random_seed moduleScott Moser
2015-02-10use encode_textScott Moser
2015-02-10fix parse_qs usageScott Moser
2015-02-10fix use of 'letters' and translateScott Moser
2015-01-27Respond to review:Barry Warsaw
- Refactor both the base64 encoding and decoding into utility functions. Also: - Mechanically fix some other broken untested code.
2015-01-27Respond to review:Barry Warsaw
- Remove str() wrappers to second argument to write_files() where it is no longer necessary. Also: Fixed a couple of other octal literals which clearly weren't being tested.
2015-01-26Another handling of b64decode.Barry Warsaw
Also, restore Python 2 compatibility.
2015-01-26More Python 3 test fixes.Barry Warsaw
2015-01-22Low hanging Python 3 fruit.Barry Warsaw
2015-01-21Largely merge lp:~harlowja/cloud-init/py2-3 albeit manually because it seemedBarry Warsaw
to be behind trunk. `tox -e py27` passes full test suite. Now to work on replacing mocker.
2014-11-25Fixes rpm spec file build issues (its not currently building).Joshua Harlow
Currently the rpm building process that cloud-init provides is not working correctly. This adjusts the spec file, the setup.py file and the distro files to ensure that it continues to work as expected.
2014-11-25Update with trunk and resolve conflictsJoshua Harlow
2014-11-22Update to use a newer and better OMNIBUS_URLJoshua Harlow
This is minor change which uses the new Chef (company) top level domain for grabbing the Omnibus installation shell script.
2014-11-21Pretty up the debug moduleJoshua Harlow
Previously the usage of the yaml_dumps module was causing any python unicode key and value to show up as: 'item': !!python/unicode "some string" This was not very pretty... Fix this by using safe_dumps (which is also a good thing to use and allow_unicode=True). Also create a tiny helper function in the cc_debug module that does not include the yaml start and end footers (since this module has its own footers and headers). Also includes a basic sanity test for this module.
2014-11-21Ensure the cc_chef doc links to the cc_chef codeJoshua Harlow
2014-11-21Increase the robustness/configurability of the chef module...Joshua Harlow
Add the following adjustments to the chef template and module: - Make it so that the chef directories can be provided (defaults to the existing directories) - Make the params much more configurable, and if a parameter is provided in the chef configuration it will override existing template parameters. - Make the template skip lines if the values are None in the configuration so that template lines can be removed if/when this is desirable. - Allow the firstboot json path to be configurable (defaults to the existing location). - Adds a basic set of tests to ensure that good things are happening. - Make a helper function to tell if already installed. - Have the install routine not run chef after installed but have it instead return a result to tell the caller to run the chef program once completed. - Use the generated_by() utility function to give the ruby template a better header comment. - Set special parameters after selecting the basic chef parameters. - Allow for the running after install and run arguments to be configured. - Allow the omnibus url fetching retries to be configurable. - Move the chef running to its own helper function - Add module docs
2014-11-21Update chef module docstring to reflect the new styleJoshua Harlow
2014-10-23Make the cloud_init_modules look like a heredoc/inline heredocJoshua Harlow
2014-10-23Show the handle method for the cc_ubuntu_init_switch moduleJoshua Harlow
2014-10-23Add a link to the module codeJoshua Harlow
2014-10-23Not that log_cfgs are not shown.Joshua Harlow
2014-10-23Add the beginnings of module documentationJoshua Harlow
2014-10-18Pretty up the debug moduleJoshua Harlow
Previously the usage of the yaml_dumps module was causing any python unicode key and value to show up as: 'item': !!python/unicode "some string" This was not very pretty... Fix this by using safe_dumps (which is also a good thing to use and allow_unicode=True). Also create a tiny helper function in the cc_debug module that does not include the yaml start and end footers (since this module has its own footers and headers). Also includes a basic sanity test for this module.
2014-10-17Allow the usr/lib/exec to vary and still work with write_keysJoshua Harlow
2014-10-15Prefer immutable structuresJoshua Harlow
2014-10-13Use the key contants in the default key => value setJoshua Harlow
2014-10-13Add a post-run method that can be used to delete validation.pem filesJoshua Harlow
For those who run chef in non-daemon mode, they would like to delete the validation.pem file if chef finishes as expected to remove that file from existing in an easy to read manner.
2014-10-12Retain the old behavior for mandatory keysJoshua Harlow
The keys 'server_url' and 'validation_name' were previously mandatory, we should retain that behavior for now.
2014-10-11Add a comment explaining the param path logicJoshua Harlow
2014-10-11Allow running even if installedJoshua Harlow
Standardize on using the chef_cfg key 'exec' which can be used when installing to tell the caller to run the chef client or can also be used if the client is already installed and its requested to be ran. To retain existing behavior 'exec' does not by default assume to be true, unless explicitly provided or a gems mode install is requested.
2014-10-11Follow the same constant variable naming scheme for the path tpl keysJoshua Harlow
2014-10-11Have the caller find the param paths instead of the param creatorJoshua Harlow
2014-10-11Ensure that any template paths have associated directoriesJoshua Harlow
When the template provides a path, make sure that before the template is written that the path that is now in the template has the associated directory created (if not already created).
2014-10-11Move the chef running to its own helper functionJoshua Harlow
2014-10-11Always ensure we create the /etc/chef dirJoshua Harlow
2014-10-11Use the util function to get the chef base directoriesJoshua Harlow
2014-10-11Allow the omnibus url fetching retries to be configurableJoshua Harlow
2014-10-11Allow for the running after install and run arguments to be configuredJoshua Harlow
Instead of only running the client when installed from gems, allow it to be ran from other install modes as well (if configured) and allow the arguments that are passed to the client when ran to be altered (if so desired).
2014-10-11More adjustmentsJoshua Harlow
- Use the generated_by() utility function to give the ruby template a better header comment - Set special parameters after selecting the basic chef parameters.
2014-10-11Some more reworkingsJoshua Harlow
- Make a helper function to tell if already installed. - Have the install routine not run chef after installed but have it instead return a result to tell the caller to run the chef program once completed.
2014-10-10Move the installation code to its own functionJoshua Harlow
2014-10-10Increase the robustness of the chef moduleJoshua Harlow
Add the following adjustments to the chef template and module - Make it so that the chef directories can be provided (defaults to the existing directories) - Make the params much more configurable, and if a parameter is provided in the chef configuration it will override existing template parameters. - Make the template skip lines if the values are None in the configuration so that template lines can be removed if/when this is desirable. - Allow the firstboot json path to be configurable (defaults to the existing location). - Adds a basic set of tests to ensure that good things are happening.
2014-10-01return only the filename, as it might be all knownScott Moser
2014-10-01message clean upScott Moser
2014-10-01remove debug printScott Moser
2014-10-01fixScott Moser
2014-10-01check for existing file in /proc/swaps to be safe.Scott Moser
2014-10-01pyflakesScott Moser