summaryrefslogtreecommitdiff
path: root/cloudinit
AgeCommit message (Collapse)Author
2014-12-03Handle more possible ssh_pwauth valuesChris Cosby
Update ssh_pwauth handler to accept all values mentioned in doc/examples/cloud-config.txt
2014-11-30Fix some whitespace issuesJoshua Harlow
2014-11-30Fix the ipv6 header centeringJoshua Harlow
2014-11-30Fix the getgateway functionJoshua Harlow
After the routeinfo function started to return a dictionary containing ipv4 and ipv6 information we now need to make sure we search the appropriate key.
2014-11-30Be more tolerant of missing informationJoshua Harlow
Instead of failing when IPv6 information is not found we should be more tolerant of said information not existing so that we behave like the pre IPv6 addition.
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-24IPv6 support for rhel distroJoshua Harlow
When the ubuntu networking info file has ipv6 addresses inside it we need to make sure that we parse that information out and place it (at least) in the rhel network configuration writing. In later patches the other distros that use this parsed network configuration will likely also need to be updated (ubuntu and debian already should function as expected with regard to ipv6 support).
2014-11-24IPv6 support for rhel distroShraddha Pandhe
- Saw an issue in my earlier commit with multiple NICs. This commit fixes that issue, along with the indentation issue
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-22Be more tolerant of 'ssh_authorized_keys' typesJoshua Harlow
Instead of only expected a list, tuple, or set type allow for a string type and dict to be passed in for 'ssh_authorized_keys', and add log message that occurs if some other type is used that can not be correctly processed.
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-21Fix parse_ssh_config failing in ssh_util.pyJoshua Harlow
This fix handles '=' as a delimiter in SSH config and adds appropriate test methods to ensure this functionality continues to work correctly.
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-11-21Added unittests for IPv6 support for RHELShraddha Pandhe
2014-11-21Add IPv6 Support for Rhel.Shraddha Pandhe
This patch does the following: 1. Adds support to process network config with IPv6 2. Adds support to display 'ifconfig -a' information for IPv6 3. Adds support to display routing information for IPv6
2014-11-18retain trailing newline from template files when using jinja2Scott Moser
sources.list was where this showed itself, but all rendered files would have their newline stripped. LP: #1355343
2014-11-12Handle = used as config delimiter in SSH config.Daniel Watkins
2014-10-29Start adding cloud config module docs.Scott Moser
Add the basics of docs that can be extracted from the code itself (also impose a initial format that will be useful for further modules to follow). In this initial addition modify the cc_debug.py and cc_ubuntu_init_switch.py to use this new style. LP: #1383510
2014-10-29fix bad logic resulting in failure to honor 'output' config.Scott Moser
This busted logic causes 'output' to not be paid any attention to, and thus output is not written to /var/log/cloud-init-output.log. LP: #1387340
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-21Use LOG.warn and handle the None case as wellJoshua Harlow
2014-10-21Fix the word spacingJoshua Harlow
2014-10-21Also allow a dict to be usedJoshua Harlow
When a dict is passed in for 'ssh_authorized_keys' just extract the keys from the values of the dict (and discard the keys).
2014-10-21Handle strings/text type for 'ssh_authorized_keys'Joshua Harlow
Instead of only expected a list, tuple, or set type allow for a string type to be passed in, and add log message that occurs if some other type is used that can not be correctly processed.
2014-10-20fix for rhel7 by using 'uses_systemd' to detect upstart/systemdScott Moser
2014-10-20Add Digital Ocean Datasource.Scott Moser
This adds a DataSource for DigitalOcean's metadata service. The service is documented at https://developers.digitalocean.com/metadata/ .
2014-10-20open 0.7.7Scott Moser
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-17Explicitly import only types being comparedNeal Shrader
2014-10-17Correct handling of single/multiple ssh keysNeal Shrader
2014-10-17Expose uses_systemd as a distro functionJoshua Harlow
Without this change the tests are currently failing on rhel7 since a location where a hostname file is written no longer exists at that location when systemd is active. To avoid this allow the test to inspect if the distro has systemd enabled and avoid testing the file when systemd is being used so the test passes. We likely need to figure out a better way to test features that no longer exist as files but exist as commands with systemd in general.
2014-10-16Use existing metadata crawler to populate datasourceNeal Shrader
2014-10-16Make metadata timeout/retries configurableNeal Shrader
Defaulting to only trying once.
2014-10-16Add DigitalOcean DataSourceNeal Shrader
The DigitalOcean metadata service is an AWS-style service available over HTTP via the link local address 169.254.169.254. The specifics of the API are documented at: https://developers.digitalocean.com/metadata/
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