Commit graph

1387 commits

Author SHA1 Message Date
Anders Ingemann
b52a45a6b8
Sphinx 1.5 fails with AttributeError, use != 1.5 instead
This is a workaround for #356
Let's assume they fix this in > 1.5
The exact error is
    AttributeError: 'Toctree' object has no attribute 'titles'

I should probably report this...
2016-12-12 22:42:36 +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
Anders Ingemann
5250f82332 Merge pull request #350 from vorlock/fix_aws_enhanced_networking
Disabling PIE during ixgbevf compilation for AWS +
2016-10-31 17:46:51 +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
Anders Ingemann
d99f345fa9 Merge pull request #346 from vorlock/master
Added tagging for the created images +
2016-10-31 16:43:06 +01: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
Anders Ingemann
4fbfd795a9 Merge pull request #344 from vorlock/master
Finishing touches for Stretch
2016-09-25 01:53:09 +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
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