summaryrefslogtreecommitdiff
path: root/cloudinit
AgeCommit message (Collapse)Author
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-10Fix newline added at end of fileJoshua Harlow
2014-10-10Undo changes to the util file, not sure why that happened...Joshua 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-08fix: Use continue to skip inside a loop.Harm Weites
2014-10-08fix: Take care of FreeBSD nic devicenames since they differ dependingHarm Weites
on the platform involved. Xen/KVM (Azure?) use different drivers, which results in different device names.
2014-10-02freebsd: Use the proper virtio FreeBSD network interface name.Scott Moser
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
2014-10-01handle non-dictionary 'swap' inputScott Moser
2014-10-01nice log messageScott Moser
2014-10-01add debug statement for recommendedScott Moser
2014-10-01maxsize must be 'None' otherwise it is zero, and no swap allowedScott Moser
2014-09-30support human2bytes, separate handling out to methodScott Moser
2014-09-30add code for setting up swap fileScott Moser
2014-09-29further platform cleanupScott Moser
2014-09-29fix re-use of 'platform' in local scopeScott Moser
2014-09-22support 'mtype' as a list, and fix up freebsd mount typesScott Moser
this supports a list of input, and cleans up that list for the platform specific mount types. Basically, mtype = None means 'mount -t auto' or the equivalent for the platform. and 'iso9660' means "iso type".
2014-09-22merge from trunkScott Moser
2014-09-17MetadataMaterializer support custom leaf decoderScott Moser
This allows the caller to supply their own leaf decoder, which will then be in charge of translating the content of the url.
2014-09-17cc_grub_dpkg consider /dev/xvda as a candidate for grub installationScott Moser
HVM instances on EC2 have grub on /dev/xvda. The bug here resulted in a prompt on grub update. LP: #1336855
2014-09-15merge from trunkScott Moser
2014-09-15Remove pylint: linesJay Faulkner
2014-09-15Fix bug 1338614Jay Faulkner
util.log_time()'s return value was what was being sent to fork_cb. This means the resize ran in parallel and the call to fork_cb threw a traceback (trying to call Nonetype). By permitting fork_cb to take kwargs, and using the correct method syntax, this now forks and resizes in the background as appropriate.
2014-09-12netinfo: log error on failure of route infoScott Moser
2014-09-11when loading vendordata allow it to be string or listScott Moser
2014-09-10Openstack: Vendor data cleanupScott Moser
For now, this vendor data handling is just added to openstack. However, in an effort to allow sanely handling of multi-part vendor-data that is namespaced, we add openstack.convert_vendordata_json . That basically takes whatever was loaded from vendordata and takes the 'cloud-init' key if it is a dict. This way the author can namespace cloud-init, basically telling it to ignore everything else.
2014-09-10OpenStack: search less urls to determine if MD service is there.Scott Moser
We were checking for presense of meta_data.json for each supported metadata version. Instead just check that /openstack is there. This reduces the time to check on EC2 or any other cloud.
2014-09-10drop version= from readersScott Moser
instead of taking a version that they should look for, the readers now just select the highest supported version. definitely a use case later for having version= but nothing is using it now.
2014-09-10fix log messageScott Moser
2014-09-10make BaseReader select latest supported versionScott Moser
2014-09-10merge from trunkScott Moser
2014-09-10fix a bug, use a list instead of tuple for _versionsScott Moser
using tuple for _versions was just not necessary. fix reference to undefined os_versions.
2014-09-10log as warn if things are obviously wrongScott Moser
If something is broken as in a built in config, or code just broken, then logging warning during search for metadata is ok.
2014-09-10pyflakes fixes.Scott Moser
make pyflakes now passes.