Commit graph

735 commits

Author SHA1 Message Date
Michael Gerlach
e2606acbdc Modify Schema to enable mountopts 2016-12-10 16:10:37 +01:00
Michael Gerlach
35f1e44087 Fix Schema to require a type in partition-table definition 2016-12-10 16:09:58 +01:00
Peter Wagner
441786e8e1 Support ca-central-1
AMI? More like eh-MI
2016-12-09 08:39:17 +01:00
Anders Ingemann
273b5e0183
Fix linting error in file_copy plugin 2016-12-09 08:38:34 +01:00
Anders Ingemann
876ea7bd85
Fix bug in file_copy plugin that made copying files... not work 2016-12-01 16:00:04 +01:00
Anders Ingemann
ee18fc84ca
Fix some task ordering warnings 2016-12-01 15:59:51 +01:00
Anders Ingemann
c81eacf02f
PEP8 compliance
bootstrapvz/common/task_groups.py:137:1: E305 expected 2 blank lines after class or function definition, found
1
2016-12-01 15:08:47 +01:00
Anders Ingemann
00de1738d7
Fix indentation typo in ec2 network task 2016-12-01 15:06:28 +01:00
James Bromberger
0664bdd2ac
Get new SR IOV network driver. Update official manifest to generate tags on AMIs. 2016-12-01 15:03:22 +01:00
Marcin Kulisz
0d95674c36 Disabling PIE during ixgbevf compilation for AWS +
enhanced network instances Stretch upwards.
* For GCC >=6 in Debian PIE (Position Independent Executable) has being activated
  it is causing enhanced network driver for AWS images to fail at
  compilation time due to incompatibility with PIE options for the kernel
* To learn what PIE is read docs at
  https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
2016-10-31 16:18:44 +00:00
Marcin Kulisz
5267d95360 Added AMI tagging for AWS provider +
* minor syntax fixes
* added official Stretch manifest
2016-10-31 15:26:17 +00:00
Anders Ingemann
b63f19ec73 Rename schema.yaml to manifest-schema.yml
Fixes #347. Bug introduced in 90da634.
2016-09-28 18:26:41 +02:00
Marcin Kulisz
c3a6d4f232 Backports should be available for all releases <= stable 2016-09-24 19:05:29 +01:00
Marcin Kulisz
18f31df2f4 Stretch (9.0) patch #3 - EC2: fixing insserv & +
ssh keys removal for releases after Jessie
2016-09-24 19:03:28 +01:00
Marcin Kulisz
ee64a87889 Stretch (9.0) patch #2 - EC2: Removing backports +
if release >= jessie and not stable
2016-09-24 19:03:28 +01:00
Marcin Kulisz
6c0e2674e1 Stretch (9.0) patch #1 2016-09-24 19:03:28 +01:00
Marcin Kulisz
d3b954cf82 Fixing andsens/bootstrap-vz#338 2016-09-23 09:30:41 +01:00
Marcin Kulisz
27abceefc1 Plugin: ec2_launch ssh key, instance type, etc. +
* added ssh_key parameter to the manifest to connect with (have to be
  present in AWS)
* added readme
* changed instance type to something what can run outside VPC (m3.medium)
2016-09-21 14:56:00 +01:00
Anders Ingemann
e5c96195bb Merge pull request #341 from nbraud/rel_path
Use the rel_path utility function
2016-09-20 16:34:07 +02:00
Anders Ingemann
a86337cc69 Merge pull request #335 from nbraud/admin_user
admin_user & file_copy: Make paths relative to the manifest
2016-09-20 16:33:59 +02:00
James Bromberger
97c03a85f3 Rename debiancloud.conf to .cfg to match cloud-init requirements. 2016-09-19 15:42:52 +00:00
James Bromberger
ca636254a5 Rename cloud-init config file to match *.cfg
Change EC2 cloud-init config file to preserve apt sources (cloudfonrt.debian.net) and manage /etc/hosts
2016-09-19 15:21:32 +00:00
Nicolas Braud-Santoni
90da634226
Systematically use rel_path for relative paths 2016-09-12 19:11:20 +02:00
Nicolas Braud-Santoni
d8c831a7fa
common.tools: Make rel_path normalize the path 2016-09-12 18:15:56 +02:00
Nicolas Braud-Santoni
9f7038163f
file_copy: Properly apply file permissions
When dst was a directory, the file would be copied properly,
but the permissions would be applied to the parent directory
rather than the copied file.
2016-09-12 17:37:56 +02:00
Nicolas Braud-Santoni
9caf94ee42
file_copy: Make pathes relative to the manifest
To that effect, the file validation was moved
from validate_manifest to the validation phase.
2016-09-12 17:37:53 +02:00
Nicolas Braud-Santoni
7fd7ba5aa1
admin_user: Properly validate SSH keys 2016-09-12 17:37:50 +02:00
Nicolas Braud-Santoni
9de36b9d99
admin_user: Allow relative paths to pubkeys
The paths are relative to the manifest.

Also, the file validation happens during the validation phase.
2016-09-12 17:37:47 +02:00
Nicolas Braud-Santoni
734afd892b
common.tools: Add a function for relative pathes
rel_path(a, b) is the absolute path of b, taken relative to a.
If b is already an absolute path, rel_path(a, b) is b.
2016-09-12 17:37:44 +02:00
Anders Ingemann
f71eac2c39 Merge pull request #333 from nbraud/validate-trusted-keys
apt: Validate packages.trusted-keys
2016-09-12 07:38:31 +02:00
Nicolas Braud-Santoni
58a7011348
apt: Validate trusted keys
This checks that the specified keyrings exist, and are valid.

Closes #323
2016-09-12 01:13:39 +02:00
Nicolas Braud-Santoni
81778136bc
Moving host_dependencies tasks to the validation phase 2016-09-12 01:12:19 +02:00
Nicolas Braud-Santoni
9bf2c45ee2
Moving checking tasks to the validation phase 2016-09-12 00:52:10 +02:00
Nicolas Braud-Santoni
8cd0648e27
common: Add a validation phase
As discussed in [#335], the `validate_manifest` method checks the manifest's
  internal consistency.  The validation phase, on the other hand, can be used to
  check the consistency of the manifest with external ressources, for instance:

  - Checking if files or directories exist.
  - Checking if the content of a file is consistent with what was expected.
  - Checking if a network ressource (an APT proxy?) is reachable.

[#335]: https://github.com/andsens/bootstrap-vz/pull/335#issuecomment-239661077
2016-09-11 22:05:22 +02:00
The Fox in the Shell
eca54d6c21
docker: Use a standard escaping function.
The outer double-quotes (") were breaking things on some versions
of Docker, such as the one currently available on Travis.
2016-08-13 14:46:53 +02:00
Nicolas Braud-Santoni
a15c9ea309
tasks/apt: Don't use security.debian.org for obsolete releases 2016-08-09 22:34:34 +02:00
Nicolas Braud-Santoni
1000430aa0
file_copy: Allow copying directories 2016-08-09 22:34:32 +02:00
Zach Marano
1f747788c1 Fix missing source repo in GCE images. Add back baseline apt cache as
well. Add in additional GCE guest package into manifests (init files
were split into their own package to make the python package adhere to
pypi standards).
2016-07-21 14:14:42 -07:00
Anders Ingemann
96086329e6 ec2: Only enable systemd when grub is the bootloader
Right now we can only properly edit the linux bootparams,
when using grub. This should be fixed so that it works for extlinux
as well.

Fixes #328
2016-06-08 16:55:56 +02:00
Anders Ingemann
d222b267ce Also disable autostart for daemons started through upstart 2016-06-07 22:02:40 +02:00
Anders Ingemann
73c2305a4c Add log message about tasklist generation
Generating the tasklist takes >1s, so it's nice to
know what bootstrap-vz is actually doing.
2016-06-07 19:05:31 +02:00
Anders Ingemann
8b4b2701fb docker: Let the autostart of daemons by apt remain disabled 2016-06-05 19:06:16 +02:00
Anders Ingemann
49ddd3879f docker: Fix dockerfile creation 2016-06-05 17:19:27 +02:00
Anders Ingemann
0d54ad68ec prebootstrapped: Take minimize_size plugin into account
The dpkg tasks modify the volume before debootstrap,
so when re-creating a snapshot we need to remove them as well.
2016-06-05 13:35:01 +02:00
Anders Ingemann
df7df19fb9 prebootstrapped: Support folder backing (for docker) 2016-06-05 13:30:48 +02:00
Anders Ingemann
2ffc4dd6c3 grub: Prettier type checking when writing grub defaults 2016-06-05 13:20:34 +02:00
Anders Ingemann
e030b9f84f Fix bug with task list generation
Only tasks from the loaded provider and plugins were
considered, when creating the task graph.
This was a problem with the prebootstrapped plugin
specifically, which could be used with both ec2 and
vbox.
Fixed the problem by loading all known plugins and
providers and adding them to the taskgraph, nothing
less will do.
2016-06-05 11:41:18 +02:00
Anders Ingemann
bb41ba68dd Tiny fix for CheckExternalCommands 2016-06-05 10:45:19 +02:00
Justin Santa Barbara
0a8ececb20 Source ixgbevf driver from intel, not sourceforge
Sourceforge is often down at the moment, causing bootstrap-vz to fail.

Fix #287
2016-06-05 10:45:19 +02:00
Anders Ingemann
98de220f78 ec2: Add tasks for EC2 tuning
Snatched from PR #256 by @JamesBromberger
2016-06-05 10:45:19 +02:00