summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-11-21Update chef module docstring to reflect the new styleJoshua 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-10Add a few template delete testsJoshua 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-08freebsd: enable correct behavior on Ec2.Scott Moser
Take care of FreeBSD nic devicenames since they differ depending on the platform involved. Xen/KVM use different drivers, which results in different device names.
2014-10-08new: The Ec2 datasource works for FreeBSD as well.Harm Weites
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-01cc_mounts: add ability to create swap fileScott Moser
User can now configure setting of a swap file. Only supports un-encrypted swap for now. swap: filename: /swap.img size: "auto" or size in bytes maxsize: size in bytes Also adds 2 util: read_meminfo: return how much memory on system. human2bytes: convert human numbers (8G) to bytes.
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 docScott Moser
2014-09-30add code for setting up swap fileScott Moser
2014-09-30FreeBSD: Support ConfigDriveScott Moser
Add support for freebsd reading config drive. Primary work is related to re-factoring mount_cb to not be so linux specific. Other changes: * declare PATH in freebsd initscripts * list dependency on e2fsprogs (for blkid) * enable ConfigDrive in freebsd config * hosts.freebsd.tmpl added
2014-09-29add ConfigDrive for freebsd config by defaultScott Moser
2014-09-29sysvinit/freebsd: set sane PATHScott Moser
2014-09-29tools/build-on-freebsd: e2fsprogs provides blkidScott Moser
2014-09-29tools/build-on-freebsd: add blkid and e2fsprogrsScott Moser
2014-09-29tools/build-on-freebsd: sort pkgs listScott 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".