Commit graph

611 commits

Author SHA1 Message Date
Anders Ingemann
2cf6e8cbbd Merge pull request #82 from dbalan/expose_debootstrap_include
Expose debootstrap include/exclude in manifest.
2014-05-08 22:14:21 +02:00
Dhananjay Balan
058d4d8627 Be pythonic.
Use sets.update method to add pacakge names.
2014-05-05 00:00:48 +05:30
Anders Ingemann
ee3fe0bf42 Convert param docs into parseable format. 2014-05-04 19:31:53 +02:00
Anders Ingemann
ee6df57f3f Use RTD theme 2014-05-04 19:11:33 +02:00
Anders Ingemann
3cc84c95e8 Silly me, putting things where they don't belong 2014-05-04 19:09:34 +02:00
Dhananjay Balan
2982bfc629 Expose debootstrap include/exclude in manifest.
This is useful in many cases in which the next steps of bootstrapping the image depends on the packages, for e.g to use a non-conventional repository transports like https.
2014-05-04 22:12:03 +05:30
Anders Ingemann
6302d5d962 Fix log_call test to not give random outcomes.
We shouldn't play around with the carriage return char,
seems like using that together with readline gives undefined results (wrt ordering).
2014-05-04 15:01:45 +02:00
Anders Ingemann
f1994fab1e Don't use Queue to gather log messages in log_call
... instead we just log the messages directly
2014-05-04 14:36:43 +02:00
Anders Ingemann
20eabc8aca Fix #21, check the AWS user-id on S3 manifests 2014-05-04 14:02:38 +02:00
Anders Ingemann
a3b84737f1 HVM AMIs only work when EBS backed right now.
S3 backed AMIs only work when they are unpartitioned.
Remove json schema restriction and add some nicer messages in the validation function
2014-05-04 13:46:40 +02:00
Anders Ingemann
612fe46186 Add restriction on partition type for HVM AMIs 2014-05-04 13:41:16 +02:00
Anders Ingemann
2ebacf6a3a Fix MBR offset and add some comments to explain 2014-05-04 13:41:16 +02:00
Anders Ingemann
3e4882128e Fix wrong bootloader vs. virtualization check 2014-05-04 13:41:16 +02:00
Anders Ingemann
40f208c151 Fix AdjustExpandRootScript
Also, only add it when it is required
2014-05-04 13:41:16 +02:00
Anders Ingemann
a9558a729a Make the gpt_offset fiddling easier to understand 2014-05-04 13:41:16 +02:00
Anders Ingemann
f3d633780f Use string concatenation instead of format()
String concatenation can at times be easier to read that format().
One should choose whichever approach is more readable.
2014-05-04 13:41:15 +02:00
Anders Ingemann
7e03dbe35d Change order of expected output in log_call test
This will fail on OSX but work on Debian (no idea as to why, yet)
2014-05-04 09:34:26 +02:00
Anders Ingemann
858e325fac Fix minor mistakes in log_call 2014-05-03 23:15:10 +02:00
Anders Ingemann
b25e607388 Move "sections" setting into "packages" section.
Rename it to "components", which is the real name for it (see http://manpages.debian.org/cgi-bin/man.cgi?query=sources.list).
2014-05-03 21:57:12 +02:00
Anders Ingemann
03a9667c64 Add enable_agent option to puppet plugin 2014-05-03 21:50:00 +02:00
Anders Ingemann
00780844c7 Add a test for log_call.
Make log_call a little shorter as well, stream_readline() is now a closure.
2014-05-03 19:41:55 +02:00
Tiago Ilieve
f43f961de3 Add multiple threads to log_call
Conflicts:
	bootstrapvz/common/tools.py
2014-05-03 19:41:07 +02:00
Anders Ingemann
e68ed9b66c Fix import errors, again.
(A rebase swallowed a commit somewhere)
2014-05-03 17:04:37 +02:00
Anders Ingemann
7e944cb243 Add stuff to changelog 2014-05-03 16:20:25 +02:00
Anders Ingemann
7958950d19 Generalize "grub only on partitioned volumes" err
(move it into base manifest validation)
2014-05-03 16:13:49 +02:00
Anders Ingemann
0a2cd86b4b Add get_standard_rollback_tasks()
This simplifies the the providser rollback_tasks fn considerably
2014-05-03 16:13:49 +02:00
Anders Ingemann
26f0702ae1 Don't add initd installation task in vbox provider 2014-05-03 16:13:48 +02:00
Anders Ingemann
6d2a52f7a0 Create security group (part of standard group) 2014-05-03 16:13:46 +02:00
Anders Ingemann
c0292bf526 Remove unused imports 2014-05-03 16:13:09 +02:00
Anders Ingemann
d5efec8885 Add ssh_group, which configures SSH properly 2014-05-03 16:13:07 +02:00
Anders Ingemann
c81045cc6e Simplify adding tasks
There is now a get_standard_groups function
2014-05-03 16:12:35 +02:00
Anders Ingemann
aad9bc69c4 Require hostname setting for vagrant plugin
Also, fix reference to vbox src to a revision
2014-05-03 16:12:34 +02:00
Anders Ingemann
056f1968c1 Fixes #14 and #78
S3 images can now be bootstrapped outside EC2.
However, this fix adds the requirement of a "region" setting.
At some point we could make "region" optional and fail when bootstrap-vz
is run outside EC2 and no "region" is set.
2014-05-03 16:12:34 +02:00
Anders Ingemann
a1bc55fbff Fix import error with cloud_init task 2014-05-03 16:12:34 +02:00
Anders Ingemann
c4e19986dc Merge pull request #80 from rybaktomasz/gce_development
Add Google Cloud Engine (GCE) provider:
2014-05-03 14:44:03 +02:00
Tomasz Rybak
b327823261 Add Google Cloud Engine (GCE) provider:
* force kpartx to use synchronous mode, removing sleep(10)
 * get image configuration, use it during tarball creation and registration
 * add (non-working, path problems) image registration
 * add cleaning of image from Google keys and repositories
 * add NTP server address in manifest
 * add preference for backport kernels in manifest
 * disable IPv6
 * correctly set host name
2014-05-03 14:25:54 +02:00
Tiago Ilieve
ff79056522 Merge pull request #79 from Rory-Finnegan/testing
Testing
2014-04-30 19:30:54 -03:00
Rory Finnegan
128bce8fff Added manifest checking tests.
Overview:
1) fixed up .gitignore file to use absolute paths (to project dir).
2) updated tox to run both manifest tests and flake8
3) updated yml file cause NULL for aws credentials causes an error on validation.
4) actually added the tests under tests/integration
2014-04-30 17:21:32 -05:00
Tiago Ilieve
47997b4b13 PEP8 fixes 2014-04-27 11:05:53 -03:00
Tiago Ilieve
014e230221 Add Travis CI
By now, it will only test the coding style rules defined for the
project, which are basically a few exceptions to the PEP8.
2014-04-27 10:12:04 -03:00
Tiago Ilieve
fe6a5047cd Rename task_sets to task_groups
This closes #17
2014-04-26 17:13:41 -03:00
Tiago Ilieve
1d36255a78 bootstrap method searches for an existing tarball
The tarball bootstrap method now uses an existing tarball if it is
found, regardless of its settings on the manifest, although it will
create a new one only if `"tarball"` is `true`.

This closes #24.
2014-04-26 13:49:47 -03:00
Anders Ingemann
33d2e1df61 Merge pull request #73 from Rory-Finnegan/development
Fixed previous yaml load commit and added a tox.ini file.
2014-04-16 09:07:58 +01:00
Rory Finnegan
708c3d589e Fixed previous yaml load commit and added a tox.ini file.
DETAILS:
- Apparently a potential security issue with yaml.load vs yaml.safe_load.
  Like pickling, yaml.load could result in arbitrary code being run.
- tox.ini file includes the flake8 settings for this project, build spec for 2.7
  and line for eventually testing the project.
2014-04-15 20:29:01 -05:00
Tiago Ilieve
e25276367b Fix apt_proxy/ntp/vagrant plugins manifests 2014-04-14 07:11:03 -03:00
Tiago Ilieve
5502a5c3b1 Add hostname setting to azure provider 2014-04-13 21:57:10 -03:00
Tiago Ilieve
18fce45d91 Move hostname setting from vagrant into common
This closes #19.
2014-04-13 21:18:02 -03:00
Anders Ingemann
69a76f2597 Fix PEP8 errors 2014-04-10 00:27:37 +02:00
Anders Ingemann
3b23ccf92c Don't use DictClass for provider namespaces
It's a hack only for the manifest vars and shouldn't be used for anything else
2014-04-10 00:20:35 +02:00
Tiago Ilieve
d84e02247a Make use of $PATH wherever possible 2014-04-09 13:34:34 -03:00