Commit graph

95 commits

Author SHA1 Message Date
Johan Euphrosine
f3a9a1b1ec docker_daemon: add pull_images option 2014-10-31 05:32:15 -07:00
Dave Bailey
bad378e28b fix test for DOCKER_NOFILE 2014-09-22 17:11:26 +00:00
Dave Bailey
107577cb16 allow custom ulimit -n for Docker 2014-09-17 18:12:49 +00:00
Tiago Ilieve
0f5de13bae Add version option to docker_daemon plugin
As requested on #147, there is now an option to specify the Docker
version to be installed when using the `docker_daemon` plugin. The
version string is validated against a pattern extracted from the
Docker's CHANGELOG. If the version is not present, it will just download
the latest available.

The download method was also changed from `urllib` to `wget`, so we can
see its progress if needed.

This closes #147.
2014-09-13 15:08:52 -03:00
Max Illfelder
3ff1bfb7d9 Removed a check to verify file type
The file command is not installed by bootstrap-vz by default.

Change-Id: I59d5f04145b7db517c28bfec1d4d758be468b398
2014-08-14 18:10:54 -07:00
Anders Ingemann
9f46bdc519 Merge pull request #131 from jkaplowitz/cloudsdk
Install Cloud SDK, which includes gcutil and gsutil.
2014-08-05 17:12:51 -06:00
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
c412c4cdcf Fix list of tasks and their ordering
- GCE provider wasn't including the GCE SetHostname task, without which
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=604883 was
  preventing the hostname from getting set after reboot.
- During the GCE build, one of the GCE cleaning tasks was trying to run
  an apt-get update after the build-time resolv.conf file was removed.
  Fix this ordering by moving the network.Remove* tasks to the
  system_cleaning phase as they should have been all along, and adding
  an appropriate ordering rule for the GCE cleaning task.
- Add the fallback http.debian.net mirror after, not before, our mirror.
- The puppet plugin's ApplyPuppetManifest task specified that it should
  run before the network.Remove* tasks within the system_modification
  phase. Now that those tasks have been moved to a later phase
  (system_cleaning), remove this dependency. I have no puppet manifest
  to test this change, but am including it in hopes of avoiding a
  breakage there. Hopefully someone who uses puppet can test this or at
  least confirm that it's correct.

Change-Id: Ieca97f288f456bab119989f4cbc4c3993a755830
2014-07-24 20:20:54 -07:00
Anders Ingemann
f925045e59 8f43ee1d removed a used import in the cloud-init and opennebula plugins, readded 2014-07-12 19:56:18 +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
Anders Ingemann
e4a9cc837a Differentiate installation of grub 1.99 and grub 2 2014-07-09 23:17:05 +02:00
Anders Ingemann
34bb45bb00 Factor release codename fetching out into common.tools
This allows code that runs before the bootstrapinformation object has been created
to also figure out the release codename
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
Victor Marmol
fb8507c0f4 Enable the memory cgroup for the Docker plugin.
This will allow for the enforcement and tracking of memory limits and usage.
2014-06-23 19:38:38 +00:00
Ilya Margolin
669ccc3a8b Added pip_install plugin
configuration is like

"pip_install": {"packages": ["a_package", "another_package==1.0.1"]}

Installs build-essential and python-dev
2014-06-06 17:24:20 +02:00
Anders Ingemann
08c0a88459 Might as well check apt proxy early
Moved CheckAptProxy to preparation phase
Changed the logging to output a warning instead of an error
Changed the error message a little
2014-05-23 20:19:09 +02:00
Tiago Ilieve
4ba701cfad Add CheckAptProxy task
Check if the specified APT proxy server can be reached, informing the
user if this can't be done. That will help them to debug the errors that
will be raised by `apt-get` because of the misleading proxy
configuration.

This closes #95.
2014-05-23 09:51:17 -03:00
Johan Euphrosine
6fda70a237 plugins/docker_daemon: initial import
A plugin that install the docker daemon w/ an init script.
2014-05-17 12:37:06 -03:00
Anders Ingemann
4caf5d1813 Make "assets" a required property in chef schema 2014-05-16 18:33:21 +02:00
Anders Ingemann
b03ec12c41 Make "stable" the salt install_source default.
Fix a few indentation things
2014-05-16 18:30:01 +02:00
Anders Ingemann
81659321af Fix name of chef plugin manifest schema name 2014-05-16 18:29:42 +02:00
Anders Ingemann
02c683120a Refactor tasklist for easier integration by taskoverview 2014-05-10 17:28:31 +02: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
Dhananjay Balan
064c4f24bd Add salt plugin
- uses salt bootstrap to install minion code
 - custom grains can be set.
 - option to specify master in the manifest.

e.g manifest (TODO: Add this to doc.)

"salt": {
            "install_source": "git",
            "version": "develop", \\ Only if the source is git
            "master": "", \\ salt master ip or fqdn
            "grains": {
                "custom_grain1": "custom_grain_value1",
                "custom_grain2": "custom_grain_value2",
            }
        }
2014-05-05 00:07:56 +05:30
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
03a9667c64 Add enable_agent option to puppet plugin 2014-05-03 21:50:00 +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
d5efec8885 Add ssh_group, which configures SSH properly 2014-05-03 16:13:07 +02:00
Anders Ingemann
aad9bc69c4 Require hostname setting for vagrant plugin
Also, fix reference to vbox src to a revision
2014-05-03 16:12:34 +02:00
Tiago Ilieve
47997b4b13 PEP8 fixes 2014-04-27 11:05:53 -03:00
Tiago Ilieve
51a3e488e3 PEP8 fixes 2014-04-27 10:14:02 -03:00
Tiago Ilieve
72492a6077 Fix SetMetadataSource predecessors
Added GenerateLocale as SetMetadataSource predecessor, to avoid any
potential locale warnings. Also fixed a space indentation flaw and a
string which was being formatted with a non-existent key-argument.

This closes #75.
2014-04-26 16:48:09 -03:00
Tiago Ilieve
e25276367b Fix apt_proxy/ntp/vagrant plugins manifests 2014-04-14 07:11:03 -03:00
Tiago Ilieve
18fce45d91 Move hostname setting from vagrant into common
This closes #19.
2014-04-13 21:18:02 -03:00
Anders Ingemann
69a76f2597 Fix PEP8 errors 2014-04-10 00:27:37 +02:00
Anders Ingemann
3b23ccf92c Don't use DictClass for provider namespaces
It's a hack only for the manifest vars and shouldn't be used for anything else
2014-04-10 00:20:35 +02:00
Anders Ingemann
9e748601b3 Use bootstrapinfo module namespace when applicable 2014-04-08 23:12:08 +02:00
Anders Ingemann
72323045d3 Delete metadata plugin.
It serves a too limited purpose to be included.
2014-04-08 21:58:48 +02:00
James Bromberger
9c759fe8bf ASwitch manifests ot explicitly use Ec2 for metadata. Swap S3 to use a 4GB root FS. 2014-04-08 12:34:25 +00:00
James Bromberger
b034ca8ed1 Correct merge/rebase. Fix handling of console to hvc0. Try and pre-seed cloud-init. 2014-04-08 10:09:02 +00:00
Tiago Ilieve
14682eb96d Moving remaining plugins to bootstrapvz/plugins/
Three of the last developed plugins remained on the old `plugins/`
folder. This probably happened because they didn't existed when the
`documentation` branch were created, so they weren't moved when it was
rebased against `master`.
2014-04-03 19:08:04 -03:00
Anders Ingemann
33a430566b bootstrap-vz is now a proper python package
logs/ was remove. logs are now placed in /var/logs/bootstrap-vz instead
2014-04-02 23:25:50 +02:00
Anders Ingemann
bbb06d717e Properly fix imports and make bootstrapvz work like a package 2014-04-02 21:32:10 +02:00
Anders Ingemann
be96e4c13f Move code into proper package folder 2014-04-02 21:26:13 +02:00