Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-07-24 | Fix small prefix bug + jsonp tests. | Joshua Harlow | |
Fix the wrong usage of the prefix removal array action by just using the new util function that does these actions correctly. Add in a couple of unit tests to verify the jsonp merging and usage works as expected. | |||
2013-07-24 | rename CC_JSONP_PRE again (JSONP_PREFIX) and use CLOUD_PREFIX | Scott Moser | |
2013-07-24 | change 'json-patch' to 'cloud-config-jsonp' | Scott Moser | |
2013-07-24 | merge from trunk | Scott Moser | |
2013-07-23 | use constants for startswith in handlers. add strip_prefix_suffix. | Joshua Harlow | |
Just cleans up some repeated strings into module constants + a util function to do the boothook prefix cleanup (before writing). | |||
2013-07-21 | Just use an initialized array. | Joshua Harlow | |
2013-07-21 | Use a util helper to do prefix/suffix removal. | Joshua Harlow | |
2013-07-21 | Use constants for repeated type strings. | Joshua Harlow | |
2013-07-20 | Remove return not used. | Joshua Harlow | |
2013-07-20 | Also handle custom handlers correctly. | Joshua Harlow | |
LP: #1203368 | |||
2013-07-20 | Ensure we remove the same way we detect. | Joshua Harlow | |
2013-07-20 | Remove json-patch inclusion header if payload contains it. | Joshua Harlow | |
2013-07-20 | Fix constant move. | Joshua Harlow | |
2013-07-20 | Fix content-type constant. | Joshua Harlow | |
2013-07-20 | Add usage of '#json-patch' | Joshua Harlow | |
2013-07-19 | Add the ability to merge with jsonpatch. | Joshua Harlow | |
Jsonpatch is a new RFC standard for merging json-like structures which the cloud-init cloud-config is one such structure. To use this in a limited fashion (to start) add the ability for the cloud-config handler to accept this content-type and use it as an alternate way to merge new cloud-config sections into the accumulated cloud-config. LP: #1200476 | |||
2013-07-11 | upstart_job.py: fix pylint and bad bad variable in _has_suitable_upstart | Scott Moser | |
2013-07-09 | handlers/upstart_job.py: invoke reload-configuration if we can. | Scott Moser | |
Previously we'd not invoked reload-configuration because doing so caused issues with upstart. Now, instead, determine if we can invoke it. LP: #1124384 | |||
2013-06-19 | fix and cleanup usage of util.logexc | Juerg Haefliger | |
2013-05-09 | Adjust comment on why we are merging cloud config the way we are. | Joshua Harlow | |
2013-05-09 | Fix the cloud config merging so that it is backwards compat. | Joshua Harlow | |
The new change for merging works well in the mergedict case but the default merging type for cloud config needs to reflect how yaml was loaded in bulk, which is the same as the replacing keys merging type that is now provided. | |||
2013-04-22 | Continue working on merging. | Joshua Harlow | |
2013-04-17 | Altering the order of merging. | Joshua Harlow | |
2013-03-07 | more pep8/pylint. all clean now | Scott Moser | |
2013-03-07 | merge from trunk | Scott Moser | |
2013-03-06 | Continue working on merging code. | Joshua Harlow | |
2013-03-05 | Add in a bunch of changes and tests. | Joshua Harlow | |
2013-02-27 | do not reload upstart configuration on upstart jobs | Scott Moser | |
For now, we disable reloading upstart jobs due to bug 1124384. At some point in the future, we could enable it again when that bug is fixed. The change here allows for a boothook in a multipart input to write the file '/run/cloud-init-upstart-reload' and then have configuration reloaded. | |||
2012-12-19 | cloudinit/handlers/upstart_job.py: pep8 / trailing whitespace | Scott Moser | |
2012-12-17 | tell upstart to reload configuration after writing an upstart job | Scott Moser | |
Invoking 'initctl reload-configuration' is only required if inotify does not work. overlayroot does not support inotify. So, we just call initctl always, which wont hurt anything. LP: #1080841 | |||
2012-11-22 | Allow mergers to take options. | Joshua Harlow | |
2012-11-22 | Add which files the yaml blob came from. | Joshua Harlow | |
2012-11-22 | Adjust naming and exception catching. | Joshua Harlow | |
2012-11-22 | Change the yaml merge header extraction to be in a sep. function that can ↵ | Joshua Harlow | |
look in more places. | |||
2012-11-22 | Continue work. | Joshua Harlow | |
2012-11-22 | Select merge-type from either header or content after loading as yaml. | Joshua Harlow | |
2012-11-22 | Continue working on merging prototype. | Joshua Harlow | |
2012-11-20 | Start allowing different merging types to be applied | Joshua Harlow | |
After user data handling splits apart all the different content types into there various mime messages it is nice to be able to have each message specify how it should be merged (mainly for cloud-config or cloud-archive) into the single cloud config that is eventually used. This starts to add a plugable merging framework and the needed components to activate said headers and merging. | |||
2012-11-06 | Do the append after escape. | Joshua Harlow | |
2012-11-06 | Use a method instead + at least | Joshua Harlow | |
attempt the unicode-escape path. | |||
2012-11-06 | Fix the case where a unknown type is seen and | Joshua Harlow | |
it has contents which are in unicode which seems to cause python to blow-up when this happens since 'string-escape' doesn't work on unicode (at least in 2.6). LP: #1075756 | |||
2012-08-22 | fix pep8 complaints. | Scott Moser | |
make pep8 now is silent on precise's pep8 ( 0.6.1-2ubuntu2). | |||
2012-07-12 | walker_callback: fix traceback on empty payload. | Scott Moser | |
A previous commit of mine here tried to apply a trivial fix to avoid a warning on empty content type. Instead, it made the empty content type call a handler which did not exist. This instead logs warning on unknown non-empty payload. It logs debug on empty payload. | |||
2012-06-29 | Ensure that only when incoming frequency is per-instance that this runs. | Joshua Harlow | |
2012-06-29 | [merge-from-trunk] remove warning message to console on empty user-data | Scott Moser | |
2012-06-21 | 1. Only register and increment the handler count after we have ensured it ↵ | Joshua Harlow | |
imports and call_begin passes. 2. Fixup the 'test__init__.py' file to now be working again. | |||
2012-06-21 | Remove a unused import. | Joshua Harlow | |
2012-06-20 | 1. Add an importer function that will search for a given module in a set of ↵ | Joshua Harlow | |
search module 'prefixes' that also has a potential set of required attributes. 2. Use this new importer to find the distro class, the userdata handler modules, the config modules and the datasource modules, if none can be found error out accordingly. | |||
2012-06-20 | Massive pylint + pep8 fixups! | Joshua Harlow | |
2012-06-17 | Log handler + info that is about to be called | Joshua Harlow | |