Tiago Ilieve
8f43ee1dc7
Move AddBackports
to common.tasks.apt
...
The `AddBackports` task is needed by many different plugins, so is
better if it is available as a common task.
This closes #96 .
2014-07-12 14:42:52 -03:00
Anders Ingemann
e4a9cc837a
Differentiate installation of grub 1.99 and grub 2
2014-07-09 23:17:05 +02:00
Anders Ingemann
34bb45bb00
Factor release codename fetching out into common.tools
...
This allows code that runs before the bootstrapinformation object has been created
to also figure out the release codename
2014-07-09 23:17:05 +02:00
Anders Ingemann
376baae583
Take advantage of the YAML multiline notation
2014-07-09 23:17:04 +02:00
Anders Ingemann
03a0746299
Convert every JSON file to YAML
...
Lines removed: over 500. Readiblity gained: A shitload
Now you can actually get an overview of a manifest on a single screen height.
I am sure that it will also save a lot of hassle when modifying schema in the future.
No more "expected property name" etc. because of an extraneous comma
Comments are of course natively support, so there's no need for this minify_json hokey pokey
2014-07-09 23:17:04 +02:00
Jimmy Kaplowitz
19240dc201
Support executing commands in a specific cwd
...
Simply plumbed through to Popen(), which already supports this.
Change-Id: If1fdf0a33c96f3aad42407fdc7c9c9f7d4b95c00
2014-06-19 17:16:39 -07:00
Tiago Ilieve
aa1f8cf189
Update volume image path after move it
...
The `loopback.MoveImage` task wasn't updating `info.volume.image_path`
after moving the volume image file. That made `volume.Delete` to fail
when called, because it would try to remove a file that didn't exist
anymore.
2014-06-07 12:48:45 -03:00
Anders Ingemann
7fe72feb2c
Add --assume-yes to apt-get autoremove
2014-05-18 22:27:10 +02:00
Anders Ingemann
f50a8e66ce
Merge branch 'master' into development
...
Conflicts:
.gitignore
bootstrapvz/common/tasks/apt.py
bootstrapvz/plugins/cloud_init/__init__.py
bootstrapvz/plugins/cloud_init/tasks.py
tox.ini
2014-05-08 23:00:54 +02:00
Anders Ingemann
16b394d135
Fix fetching of packages.components
...
Add update from master
2014-05-08 22:58:29 +02:00
Dhananjay Balan
058d4d8627
Be pythonic.
...
Use sets.update method to add pacakge names.
2014-05-05 00:00:48 +05:30
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
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
40f208c151
Fix AdjustExpandRootScript
...
Also, only add it when it is required
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
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
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
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
6d2a52f7a0
Create security group (part of standard group)
2014-05-03 16:13:46 +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
Tiago Ilieve
47997b4b13
PEP8 fixes
2014-04-27 11:05:53 -03:00
Tiago Ilieve
51a3e488e3
PEP8 fixes
2014-04-27 10:14:02 -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
Tomasz Rybak
f8dd196e59
Add missing unstable configuration fixing EC2 image building problems.
2014-04-22 20:09:47 +02: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
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
a253e643b7
Fix some task descriptions
2014-04-08 23:12:08 +02:00
Anders Ingemann
71b28af3bd
Merge branch 'master' into development
2014-04-08 20:03:26 +02:00
Rory Finnegan
60571f66ad
Fixed formatting standards on files I've changed.
...
Used command `find . -name '*.py' | grep -v minify_json | xargs pep8 --ignore=E101,E221,E241,E501,W191`
2014-04-08 11:56:27 -05:00
Rory Finnegan
4b5c2d8c5f
Added YAML config support.
...
- Manifest format parsing is now checked by the file extension ie: .json, .yml or .yaml.
- load_yaml in common/tools is the same as the json version.
- schema checking of manifest still passes (and fails appropriately) like the json manifests.
- I've also included a sample yaml config based off of the debian test json manifest.
2014-04-08 14:45:12 +00:00
Anders Ingemann
6cafdbee14
Merge pull request #33 from JamesBromberger/master
...
Manifest, deb Descurity in apt sources.list
2014-04-08 15:37:52 +02:00
James Bromberger
b034ca8ed1
Correct merge/rebase. Fix handling of console to hvc0. Try and pre-seed cloud-init.
2014-04-08 10:09:02 +00:00
Anders Ingemann
b67b8b7260
Set volume dev_path to None when detaching
2014-04-07 21:52:20 +02:00
James Bromberger
334ef9209b
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
bootstrapvz/common/tasks/apt.py
2014-04-05 09:38:21 +00:00
Jan Brauer
8d399dade5
Add support for adding APT preferences
2014-04-04 12:22:46 +02:00
Anders Ingemann
33a430566b
bootstrap-vz is now a proper python package
...
logs/ was remove. logs are now placed in /var/logs/bootstrap-vz instead
2014-04-02 23:25:50 +02:00
Anders Ingemann
bbb06d717e
Properly fix imports and make bootstrapvz work like a package
2014-04-02 21:32:10 +02:00
Anders Ingemann
be96e4c13f
Move code into proper package folder
2014-04-02 21:26:13 +02:00