Commit graph

1423 commits

Author SHA1 Message Date
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
Anders Ingemann
5098aec137 Merge pull request #345 from vorlock/kula/new_mirror
Switching from httpredir.debian.org to deb.debian.org
2016-09-24 14:04:29 +02:00
Marcin Kulisz
d3b954cf82 Fixing andsens/bootstrap-vz#338 2016-09-23 09:30:41 +01:00
Anders Ingemann
22bb21f6fc tests: Increas delay in log_call unit test
Scheduling on travis-ci seems a bit iffy,
hopefully the increased delay fixes the problem.
2016-09-22 19:19:53 +02:00
Anders Ingemann
6cef2bd37c Merge pull request #343 from vorlock/upstream_start_instances
Plugin: ec2_launch ssh key, instance type, etc. +
2016-09-21 16:30:52 +02: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
Anders Ingemann
aac1de39c6 Merge pull request #342 from JamesBromberger/master
Fix cloud-init config
2016-09-20 16:29:46 +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
34479f06f1
docs/developers: Encourage using rel_path in validate_manifest 2016-09-12 19:20:22 +02: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
Anders Ingemann
ad2273a795 Merge pull request #339 from nbraud/validation_phase
Move checking tasks to the validation phase
2016-09-12 07:35:56 +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
Anders Ingemann
b9d63b701d Merge pull request #332 from hashbang/master
docker: Fix quoting that breaks some versions of Docker
2016-08-14 10:01:33 +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
Anders Ingemann
e0d92382fb tox: Require python2.7 for all testenv 2016-08-13 11:45:48 +02:00
Anders Ingemann
765430bfad Merge pull request #331 from nbraud/misc
Misc. fixes & improvements
2016-08-09 22:25:27 +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
Tiago Ilieve
611154a426 Merge pull request #330 from zmarano/master
Fix some GCE image issues.
2016-07-27 22:46:24 -03: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
70402229c5 docker: no need for date in reponame of example manifest
It's part of the docker image itself
2016-06-07 22:28:53 +02:00
Anders Ingemann
d222b267ce Also disable autostart for daemons started through upstart 2016-06-07 22:02:40 +02:00
Anders Ingemann
feea266210 docker: Add some more labeling to the example manifest
Also remove netbase as an explicit install.
It's only there because of the ping pkg
2016-06-07 22:02:39 +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
07bc3ddd8d docker: Add packages that are available in the official image (to the manifest) 2016-06-05 18:52:37 +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
4031fd6f84 ec2: Update official jessie 64-bit hvm manifest
Snatched from PR #256 by @JamesBromberger
2016-06-05 10:45:19 +02:00
Anders Ingemann
bb41ba68dd Tiny fix for CheckExternalCommands 2016-06-05 10:45:19 +02:00