Commit graph

583 commits

Author SHA1 Message Date
Anders Ingemann
b953cf7757 Merge pull request #120 from rybaktomasz/boto-credentials
Do not crash with KeyError when there is no credentials in manifest.
2014-07-12 19:47:03 +02:00
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
Tomasz Rybak
d6fe85e124 Do not crash with KeyError when there is no credentials in manifest. 2014-07-12 19:40:53 +02:00
Tiago Ilieve
210999ff5d Remove redundant code from GCE's tasks.apt
GCE's `tasks.apt.SetPackageRepositories` was adding duplicated entries
to apt `info.source_lists`, even ignoring the package mirror specified
on manifest.
2014-07-12 13:28:46 -03:00
Anders Ingemann
cca31b642f Add documentation for the run() function.
Also: Move the return statement in run() to the bottom
2014-07-09 23:31:16 +02:00
Anders Ingemann
0cc26d82d0 Allow passing data into the manifest.
This makes it possible to create dynamically created manifests
2014-07-09 23:17:05 +02:00
Anders Ingemann
7fe9c1ba36 Refactor logging setup to be more modular 2014-07-09 23:17:05 +02:00
Anders Ingemann
9d8821235f Clone packages-kernels.yml pattern to other providers
GCE also gets its own file.
For now, this scales - but we might want to refactor when there is more that just the kernel package we need to choose from
2014-07-09 23:17:05 +02:00
Anders Ingemann
e4a9cc837a Differentiate installation of grub 1.99 and grub 2 2014-07-09 23:17:05 +02:00
Anders Ingemann
1dc9ae18db Do a basic validation of the manifest before accessing it.
This prevents cryptic error messages
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
Anders Ingemann
ebba39f59b Convert "provider" into provider specific section
This is where all provider specific settings belong
like waagent on azure, guest additions iso path on vbox and virtualization type on ec2
2014-07-09 23:17:04 +02:00
Anders Ingemann
5bb0e5428e Merge pull request #117 from zeridon/fix-grub-options
Improvement in grub options for ec2
2014-07-09 23:13:07 +02:00
Tomasz Rybak
62b3e9c255 Jessie has different kernel for i386, fixing name for EC2. 2014-07-08 20:59:16 +02:00
Tomasz Rybak
ebee46b57f Fix wrong condition in dhcpcd configuration in Jessie. 2014-07-06 19:13:46 +02:00
Tomasz Rybak
5433963f4e Jessie contains dhcpcd5 instaed of dhcpcd; fixing configuration. 2014-07-06 19:05:00 +02:00
Anders Ingemann
55c853c348 Fix call to boto get_all_images() 2014-07-05 11:08:21 +02:00
Vladimir Vitkov
94b3e4605a Improvement in grub options
* Be more robust when setting GRUB_CMDLINE_LINUX_DEFAULT
 * Stop console from blanking
 * Switch elevator to noop as disks are not real disks and this yields
   better performance.
2014-07-02 15:04:54 +03:00
Anders Ingemann
8e9c94567e Merge pull request #116 from rybaktomasz/aws-credentials
Do not require AWS credentials in manifest file
2014-07-01 19:37:16 +02:00
Tomasz Rybak
7412ca26d0 Do not require AWS credentials in manifest file
Boto allows for storing credentials in ~/.boto file; user those
if user has not provider one in manifest file.
2014-06-30 20:23:44 +02:00
Tomasz Rybak
869d7d770c Return information about created image. 2014-06-30 20:02:50 +02:00
Victor Marmol
fb8507c0f4 Enable the memory cgroup for the Docker plugin.
This will allow for the enforcement and tracking of memory limits and usage.
2014-06-23 19:38:38 +00: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
a9a5be7717 Allow stable/oldstable on manifest
This closes #94.
2014-06-19 14:53:23 -03:00
Vladimir Vitkov
68d9ee1096 Improve ami listing performance
* no need to list all available ami's, just self owned should be enough
2014-06-19 17:55:05 +03:00
Tiago Ilieve
65bdb34d77 Save downloaded gsutil tarball to workspace
`gsutil` tarball was being downloaded to the current working directory
and wasn't removed after its extraction.

This will be useful until #87 is merged.
2014-06-07 13:31:10 -03:00
Tiago Ilieve
80d0dfb939 Add volume.Delete to GCE taskset
This closes #97.
2014-06-07 12:48:46 -03: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
Ilya Margolin
669ccc3a8b Added pip_install plugin
configuration is like

"pip_install": {"packages": ["a_package", "another_package==1.0.1"]}

Installs build-essential and python-dev
2014-06-06 17:24:20 +02:00
Anders Ingemann
1c54c5e8a8 Add .0 to version number 2014-06-04 23:49:13 +02:00
Jan Brauer
7371c1636b Incorporate feedback 2014-05-28 21:19:15 +02:00
Jan Brauer
18a85c157f AptUpdate has to explicitly depend on WritePreferences 2014-05-28 09:55:09 +02:00
Anders Ingemann
08c0a88459 Might as well check apt proxy early
Moved CheckAptProxy to preparation phase
Changed the logging to output a warning instead of an error
Changed the error message a little
2014-05-23 20:19:09 +02:00
Tiago Ilieve
4ba701cfad Add CheckAptProxy task
Check if the specified APT proxy server can be reached, informing the
user if this can't be done. That will help them to debug the errors that
will be raised by `apt-get` because of the misleading proxy
configuration.

This closes #95.
2014-05-23 09:51:17 -03:00
Anders Ingemann
4f45749e13 Check if qemu-img is available 2014-05-22 17:28:17 +02:00
Anders Ingemann
7fe72feb2c Add --assume-yes to apt-get autoremove 2014-05-18 22:27:10 +02:00
Johan Euphrosine
6fda70a237 plugins/docker_daemon: initial import
A plugin that install the docker daemon w/ an init script.
2014-05-17 12:37:06 -03:00
Anders Ingemann
4caf5d1813 Make "assets" a required property in chef schema 2014-05-16 18:33:21 +02:00
Anders Ingemann
b03ec12c41 Make "stable" the salt install_source default.
Fix a few indentation things
2014-05-16 18:30:01 +02:00
Anders Ingemann
81659321af Fix name of chef plugin manifest schema name 2014-05-16 18:29:42 +02:00
Anders Ingemann
53406e2b35 Merge pull request #88 from proppy/add-gce-init
add InstallInitScript task to gce provider
2014-05-13 01:02:17 +02:00
Anders Ingemann
02c683120a Refactor tasklist for easier integration by taskoverview 2014-05-10 17:28:31 +02:00
Johan Euphrosine
fdf11fcc1a providers/gce: add InstallInitScript task 2014-05-09 00:31:36 -07: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
Anders Ingemann
07dc9ec2a9 Don't allow target in include/exclude_packages
Fix indentation in schema
2014-05-08 22:20:48 +02:00
Anders Ingemann
1ee1e7b645 Merge pull request #84 from dbalan/saltstack_minion
Add salt plugin.
2014-05-08 22:18:41 +02:00
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