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