Commit graph

713 commits

Author SHA1 Message Date
Anders Ingemann
2291361a1c Fix code block example in commands plugin documentation 2016-05-22 09:14:31 +02:00
Anders Ingemann
16a680bb6b Fix order for AddManifestPackages
This ensures that the task also works with manually
added sources.
2016-05-22 08:59:46 +02:00
Anders Ingemann
65ad0a43fa Merge pull request #315 from thepwagner/cloud-init-groups
cloud-init: modify groups
2016-05-22 08:55:18 +02:00
andrewbogott
b9aad2d881 Set a default of GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0"
This needed changing to hvc0 for ec2, and was accidentally changed
for all other providers.  Since the ec2 provider overrides to hvc0
anyway, we can just change this default to the setting that works
for everyone else.

Fixes: #318
2016-05-10 01:56:27 -05:00
Justin Santa Barbara
3036eb41c1 GCE: Name the image as specified in the manifest
We were hard coding an image name format for GCE, but that doesn't match
what other providers (e.g. AWS) do.

Given that image upload did not work at all previously, no reason to
preserve the existing unusual behaviour.
2016-04-19 11:35:11 -04:00
Justin Santa Barbara
be595efd99 GCE: Rename image in tar file to disk.raw
To register with GCE, the image must be named disk.raw, or else the
gcloud create images command fails.
2016-04-19 11:34:53 -04:00
Justin Santa Barbara
4b34cb2615 GCE: Documentation improvements
Small tweaks
* Add note that gce_project only works with gcs_destination
* Google's storage is called "Google Cloud Storage"
* Minor grammar tweaks
2016-04-19 11:34:53 -04:00
Justin Santa Barbara
34ee0c1e8d GCE: Allow templating of image description
Expand the description template before passing it to gcloud
2016-04-19 11:34:53 -04:00
Justin Santa Barbara
3e3d59ddf1 GCE: Fix upload of image to gcloud
Two small fixes

* syntax is `gcloud compute images`, not `gcloud compute image`
* --source-uri=<uri> should be a single argument
2016-04-19 11:34:46 -04:00
Zach Marano
f1d6cd9d9e Disable SSH root login on GCE images. 2016-04-18 13:31:37 -07:00
Tiago Ilieve
12e6467f6d Bump version to '0.9.10' 2016-04-16 17:45:46 -03:00
Peter Wagner
c8ab73472f cloud-init: modify groups 2016-04-16 08:49:49 -04:00
Anders Ingemann
7a4903f9e0 Merge pull request #314 from thepwagner/fix-adjust-growpart-workaround
cloud_init disable AdjustGrowpartWorkaround
2016-04-15 08:20:21 +02:00
Peter Wagner
15a7eb0c85 cloud_init disable AdjustGrowpartWorkaround
AdjustGrowpartWorkaround modifies /etc/init.d/expand-root, which doesn't
exist if AddExpandRoot doesn't run.
2016-04-14 20:50:40 -04:00
Peter Wagner
dad66e15c0 AWS: support IAM role
Fixes #259
2016-04-14 19:42:11 -04:00
Tiago Ilieve
c6226f89ae Fix a few typos 2016-04-13 04:38:42 -03:00
Anders Ingemann
83b783976c Merge pull request #308 from pmarks-net/master
Do not remove ::1 from the loopback interface.
2016-04-04 23:00:27 +02:00
Zach Marano
070f678807 Add busybox as a required package for GCE. 2016-03-28 21:53:52 -07:00
Paul Marks
15c7d1ccb3 Do not remove ::1 from the loopback interface.
An environment with AF_INET6 sockets but no loopback interface creates
nothing but pain.

If an IPv4 server binds to 0.0.0.0:8080, clients may connect to
0.0.0.0:8080, which automatically picks 127.0.0.1 as a source address.
However, when a server binds to [::]:8080, the absence of ::1 causes
clients to fail with ENETUNREACH.

For a demonstration, run the following in a python shell:

import socket
s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM, 0)
s.bind(("", 0))
print s.getsockname()  # Example: ('::', 39079, 0, 0)
s.listen(10)
c = socket.socket(socket.AF_INET6, socket.SOCK_STREAM, 0)
c.connect(s.getsockname())
print c.getsockname(), c.getpeername()

This yields the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 101] Network is unreachable
2016-03-24 17:14:17 -07:00
The Fox in the Shell
aecb89aab5 Indent with 4 spaces 2016-03-15 18:01:41 +01:00
The Fox in the Shell
4cc9ec0d1b Add the 'apt.conf.d' manifest subsection 2016-03-15 18:01:41 +01:00
The Fox in the Shell
2b6dc47b90 manifest-schema.yml: Fixup uses of minItems in objects 2016-03-15 17:52:12 +01:00
hitsumabushi
ac7595bdfb fix document toctree 2016-03-15 11:13:05 +09:00
Anders Ingemann
218275a3b5 Also serialize metaschema in Manifest class
The remote bootstrapping process was broken, since
the metaschema was not loaded on the remote side.
2016-03-13 17:46:30 +01:00
Anders Ingemann
d62e20c763 Merge pull request #303 from zmarano/master
Again fix the expand-root script for GCE.
2016-03-04 01:26:07 +01:00
Anders Ingemann
df356ffad2 Fix docker provider bug
4fc3b69 converte the locale_group into a function.
This wasn't changed in the docker provider
2016-03-04 01:21:52 +01:00
Anders Ingemann
d7def9b942 Fix indentation in file_copy plugin docs 2016-03-04 01:21:52 +01:00
Anders Ingemann
6bb654b79f Compat with new sphinx
Changed a lot of code:: to code-block::
Also added sphinx_rtd_theme to deps in tox
2016-03-04 01:21:52 +01:00
Anders Ingemann
f8118b3f3e Rename integration tests to system tests, since they cover the entire system
*cough e82bdf4 *cough
2016-03-04 00:48:48 +01:00
Zach Marano
d485ef681a Fix typo 2016-03-03 14:29:42 -08:00
Zach Marano
b590a02a8c Fix import. 2016-03-03 14:14:54 -08:00
Zach Marano
2b629d784c Again fix the expand-root script for GCE. The volume is not /dev/loop0
but it should be /dev/sda.
2016-03-03 13:59:01 -08:00
Zach Marano
108fa9547e Move the >=jessie workaround out of the common task. 2016-03-03 10:14:02 -08:00
Zach Marano
ee12a3e340 Fix missing script line. 2016-03-02 16:30:53 -08:00
Zach Marano
31a98badcb Fix unused import. 2016-03-02 16:28:11 -08:00
Zach Marano
3f208b985f Move hack for growpart to its own task. 2016-03-02 16:19:57 -08:00
Zach Marano
6c03860eac Fix GCE expand-root since commit/2ece5a66e1e36f30bef3a675e8287ab8c1bcc04f 2016-03-02 12:54:06 -08:00
Anders Ingemann
f7cdc348dc Merge pull request #299 from nbraud/metaschema
manifest: Validate schemata before use
2016-03-01 21:56:05 +01:00
Anders Ingemann
aa4cab4084 Merge pull request #298 from nbraud/file_copy
file_copy: Fix manifest and document
2016-03-01 21:49:29 +01:00
Nicolas Braud-Santoni
bcd1c7b536 manifest: Load the metaschema only once 2016-03-01 21:26:46 +01:00
Nicolas Braud-Santoni
e5f32ba441 file_copy: Validate early
This validates the source file presence when the
  manifest is validated, rather than failing later.
2016-03-01 20:21:49 +01:00
Nicolas Braud-Santoni
de888c1b3c file_copy: Add documentation 2016-03-01 14:58:52 +01:00
Anders Ingemann
8a8d07991e Merge pull request #291 from nbraud/admin_user
admin_user plugin: Fix non-EC2 behaviour
2016-03-01 00:01:12 +01:00
Nicolas Braud-Santoni
324a2fb7d4 manifest: Validate schemata before use
This is probably suboptimal, as the metaschema is reloaded every time.
2016-02-29 21:22:24 +01:00
Nicolas Braud-Santoni
72a9975ed9 admin_user: Add warnings 2016-02-29 20:15:24 +01:00
Zach Marano
c34d7d11c8 Only include bare essential packages in the GCE provider task. Move
extras to the manifest files.
2016-02-29 10:38:34 -08:00
Nicolas Braud-Santoni
ed6ca6dd6e file_copy: Fix manifest 2016-02-29 19:08:42 +01:00
Zach Marano
74a8aae6ac Cleanup package list and add in packages that were being added outside
of bootstrap-vz. Remove i386 kernels that GCE does not support as well
as squeeze, and add in a stretch kernel.
2016-02-26 16:24:20 -08:00
Anders Ingemann
e961438904 chown/chgrp entire .ssh dir to admin_user
Fixes #295
2016-02-25 08:27:27 +01:00
Nicolas Braud-Santoni
79b3803d64 admin_user plugin: Fix non-EC2 behaviour 2016-02-24 03:20:52 +01:00