summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-10-15cc_landscape: do nothing if config not give. install landscape-client.Thomas Hervé
LP: #1066115
2012-10-15Skip install when there is not configuration, and install the package to be ↵Thomas Hervé
setup properly.
2012-10-08Merge rpm subrelease branch.Joshua Harlow
2012-10-08Make the subrelease a new k/v entry that is handledJoshua Harlow
differently in the rpm spec file template instead of being joined with the release.
2012-10-08Add the ability to have a 'private'Joshua Harlow
release number which can be to increment cloud-init while still maintaining the 'major' cloud-init version number from bzr.
2012-10-05Bring in the config drive fixes so thatJoshua Harlow
it adjusts the fstab correctly and adds tests in that verify the actions that should happen (also tested on a real system).
2012-10-05Pylint cleanups.Joshua Harlow
2012-10-05Add checks around the device names that are foundJoshua Harlow
to ensure that even if they are found that they are also valid, before they are assumed to be the correct device name.
2012-10-05Add tests to show that the assigned bug is fixed.Joshua Harlow
Also fix the extraction of the metadata key name since it actually uses 'dashes' instead of being a single word.
2012-10-05Ensure that config drive datasource attempts toJoshua Harlow
translate the device name to a actual device using logic that will try the ec2 metadata (if avail) or will try using 'blkid' to find a corresponding label. LP: #1062540
2012-10-05Merged brpm changelog fixesJoshua Harlow
2012-10-05Ensure stderr newline.Joshua Harlow
2012-10-05Only allow the first missing version toJoshua Harlow
use the datetime.now(), the others get a warning message.
2012-10-05Leave off creating fake headers for unknown versionsJoshua Harlow
since this causes rpmbuild to croak with errors like 'changelog not in descending chronological order'.
2012-10-05bump version to 0.7.1Scott Moser
2012-10-05update ChangeLog for previous 2 commits.Scott Moser
Note, I've marked this as fixing LP: #1061964, but clearly it does not. that was fixed under revision 680. LP: #1061964
2012-10-05sysvinit: fix cloud-init job for RHEL 5.6Joshua Harlow
For the cloud-init rc.d, ensure that the cloud-init-local mode is attempted as a hard requirement (instead of the previous soft requirement) which in the rhel5.6 case makes it not run in the right order.
2012-10-05config-drive: map hostname to local-hostnameJoshua Harlow
Ensure that for config drive that we map 'hostname' to 'local-hostname' so that the modules work correctly with the cfgdrive style of data.
2012-10-04For now pull this in.Joshua Harlow
2012-10-04Ensure that for config drive thatJoshua Harlow
we map 'hostname' to 'local-hostname' so that the modules work correctly with the cfgdrive style of data.
2012-10-04For the cloud-init rc.d ensure that theJoshua Harlow
cloud-init-local mode is attempted as a hard requirement (instead of the previous soft requirement) which in the rhel5.6 case makes it not run in the right order.
2012-10-01fix tools/make-dist-tarballScott Moser
2012-10-01fix oauth time skew. actual implementation was returning 401 not 403.Scott Moser
This fixes (tested) bug 978127. The server was actually returning a 401 not a 403. As such, the fix here was insufficient. This will now take either of those 2 error codes. I've also tested it by changing the clock in the cloud-init upstart job with a stanza like below, and verifying that we do see the problem and then it resolve itself: pre-start script offset="10 minutes ago" past=$(date -R --date "$offset") date --set "$past" && echo ===== "set date to $past [$offset]" ===== || echo ===== "failed to set date to $past [$offset]" ==== end script LP: #978127
2012-09-30rework the rest of the users of old single 'user' to support listsJoshua Harlow
Rework the rest of the locations that used the previous 'user' and make those locations go through the new distros functions to select the default user or the user list (depending on usage). Adjust the tests to check the new 'default' field that signifies the default user + test the new method to extract just the default user from a normalized user dictionary. "default" user is now marked in the user dict and get_default_user uses that.
2012-09-30[pylint]: remove unused importScott Moser
2012-09-28Sync with head and fix conflicts.Joshua Harlow
2012-09-28Make byobu more tolerant of the user not beingJoshua Harlow
located and warn when it is not found + only run the shell command when actual contents exist to run.
2012-09-28Add a comment as to why distros can't beJoshua Harlow
imported without being renamed due to previous usage of the attribute 'distros'
2012-09-28make DataSourceMAAS 'main()' use load_yamlScott Moser
2012-09-28Rework the rest of the locations that usedJoshua Harlow
the previous 'user' and make those locations go through the new distros functions to select the default user or the user list (depending on usage). Adjust the tests to check the new 'default' field that signifies the default user + test the new method to extract just the default user from a normalized user dictionary.
2012-09-28fix pep8 and pylintScott Moser
2012-09-28add 'safeyaml' to cloudinitScott Moser
In 0.7.0 we started using yaml.safe_load to load data rather than yaml.load. Some producers (namely, ubuntu MAAS created) have produced cloud-config data in the past that included python unicode types. This creates a specialized safe_loader that is basically safe_load + support for python unicode.
2012-09-28rpm spec and rpm build, better handle case with no package_mirrorsJoshua Harlow
2012-09-28Also ensure that if mirror info is not invalidJoshua Harlow
before we start iterating over it (it could be sent is as none).
2012-09-28Stop the bad habit of using 'or'.Joshua Harlow
2012-09-28restart salt-minion instead of start.Scott Moser
Packages on debian/ubuntu should start on installation. As a result, if we want to get config changes we've inserted to be read, we need to restart. Note one interesting thing here. upstart considers 'restart' as "restart only if currently running", while 'service' considers restart to be "stop if running, then start". So the use of 'service' here is important, rather than just 'restart'
2012-09-27cleanup the user/group listsJoshua Harlow
The primary utility here is normalize_user_groups, which would be called by config modules to get a list of users or groups. This centralizes what was copied code into this one location.
2012-09-26Add a nice '-p1'Joshua Harlow
2012-09-26Ensure the patches get activated.Joshua Harlow
2012-09-25Clean doesn't seem needed.Joshua Harlow
2012-09-25Add a top_dir define.Joshua Harlow
2012-09-25add tests for netcfg codeJoshua Harlow
2012-09-25Fix tests after resync with head.Joshua Harlow
2012-09-25Resync with head.Joshua Harlow
2012-09-25Fix cheetah syntax error.Joshua Harlow
2012-09-25Allow package_mirrors to be non-existent.Joshua Harlow
2012-09-25Fix syntax error.Joshua Harlow
2012-09-25Add the ability to pass patches to theJoshua Harlow
rpm builder utility.
2012-09-24Adjust the fingerprints to use this newJoshua Harlow
user normalization function instead of the previous 'user' extraction.
2012-09-24Avoid rechecking if old users is availabile.Joshua Harlow