Jimmy Kaplowitz
a352f4d576
Installing Cloud SDK which includes gcutil and gsutil. We still don't
...
have a package for it so laying out the tarball for now.
Change-Id: If66f0f1c074e6077e1ca57375cac9c4832bbd7fc
2014-08-01 20:05:23 -07:00
Jimmy Kaplowitz
e8f04d0baf
Install ca-certificates on GCE
...
Needed to fetch GCE startup scripts over HTTPS, among other reasons.
Change-Id: I89e3afb44f786539b5e3275b5f1f3b7201ab44fd
2014-07-25 09:49:52 -07:00
Tiago Ilieve
719a6c31b0
Reverting 210999f
, as asked by @jkaplowitz
2014-07-25 00:08:07 -03:00
Anders Ingemann
af3cca2644
Remove unused import
2014-07-12 19:56:30 +02:00
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
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
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
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
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
Anders Ingemann
4f45749e13
Check if qemu-img is available
2014-05-22 17:28:17 +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
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
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
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
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
e68ed9b66c
Fix import errors, again.
...
(A rebase swallowed a commit somewhere)
2014-05-03 17:04:37 +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
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
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
47997b4b13
PEP8 fixes
2014-04-27 11:05:53 -03:00
Tiago Ilieve
fe6a5047cd
Rename task_sets to task_groups
...
This closes #17
2014-04-26 17:13:41 -03:00
Tomasz Rybak
f8dd196e59
Add missing unstable configuration fixing EC2 image building problems.
2014-04-22 20:09:47 +02: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