Claudiu Popa b957aadc47 Refactor cloudconfig plugin, in order to simplify enhancements
The patch includes the following changes:

   * add a new folder for cloud-config plugins, in userdataplugins.
     It will contain plugins which can be processed by the cloud-config
     user data plugin, right now, only write-files is supported.

   * move the code related to cloudconfig functionalities in a
     executor class. The meaning of this class is plain and simple
     and it doesn't clutter the base plugin.

  * add a from_yaml classmethod to the newly added cloud config executor.
    In this way, we could add support for other formats as well,
    the only thing required being adding a new factory method for
    these formats.

  * the tests aren't relying too much on mock, they are written
    with feature-testing in mind.

Change-Id: I8f73e7aaafee74e8023bf7c5e13579982b5f9498
2015-02-11 17:36:44 +02:00

0 lines
0 B
Python

The file is empty.