Commit graph

191 commits

Author SHA1 Message Date
Carlos Meza
adda5fd34e add example manifest for a stretch cloud image 2018-02-11 23:15:39 +00:00
Anders Ingemann
803ec8e987
Merge pull request #450 from CMeza99/bootstraper_gpg
Expose gpg flags for debootstrap
2018-02-10 23:11:40 +01:00
Carlos Meza
98c68e35ce fix example docker manifest 2018-02-09 22:26:11 +00:00
Carlos Meza
5727550ad4 expose gpg flags for debootstrap 2018-02-09 22:19:59 +00:00
Anders Ingemann
1d755abfc6
Merge pull request #449 from CMeza99/remove_eol
Remove squeeze support
2018-02-08 09:45:19 +01:00
Carlos Meza
a3584e6de9 remove squeeze support 2018-02-08 06:02:20 +00:00
Anders Ingemann
6b99432ac7
Merge pull request #445 from vmlintu-nosto/mountpoint_permissions
Allow setting permissions on mountpoints
2018-02-08 00:06:14 +01:00
Veli-Matti Lintu
a0007b48a9 Add new attribute 'mode' for partitions to set the permissions of the
mountpoints. Without this having /tmp on separate partition results
in error as the permissions of /tmp are 0755. Setting them to 01777
fixes the setup.
2018-02-06 15:56:24 +02:00
Anders Ingemann
ad2c455c4c
Merge pull request #437 from octivi/yamllint
Add yamllint linter to check manifests files
2018-01-20 14:14:36 +01:00
Marcin Engelmann
af83f645dd Add yamllint linter to check manifests files 2018-01-20 10:30:37 +01:00
Marcin Engelmann
ad0428a3c6 Add to the KVM provider option to set output of the init process to a virtual or serial console 2018-01-19 09:32:44 +01:00
Anders Ingemann
105ff17e08
Merge pull request #417 from ashegedus/password-crypt
Add password-crypt to root password plugin
2017-11-29 19:56:43 +01:00
Alex Hegedus
ae8194967c Updated Readme and example manifest for jessie-lvm kmv 2017-11-28 21:51:55 -08:00
Alex Hegedus
f95f62588b Added password-crypted to root-password plugin 2017-11-28 09:38:15 -08:00
Hugo Antonio Sepulveda Manriquez
8e8d4249ec Stretch update commit
* updated module to allow for puppetlabs PC1 release install in
  Debian Stretch. Tox is green.
2017-09-03 14:50:37 +02:00
Zach Marano
79a1aa1616 Add GCE buster builds. 2017-08-30 17:50:27 -07:00
Zach Marano
b3f5716ab7 Update Google Compute Engine package and repository structure.
GCE packages are now Debian policy compliant.
2017-08-23 10:37:57 -07:00
John Slee
84ee0f3d9a manifest escapes: better wording as suggested 2017-08-04 09:34:41 +10:00
John Slee
a2cf71344d brief note about escaping braces in manifests 2017-08-03 22:35:08 +10:00
Anders Ingemann
85a0e6a191
Make trusted-keys paths in manifest relative to manifest 2017-07-14 18:25:07 +02:00
NeatNerdPrime
1f1ebcedb8 Puppet module update (#365)
* #347 - Fix for debconf validator pointing to wrong file.

* reported in https://github.com/andsens/bootstrap-vz/issues/347

  flake8: commands succeeded
  congratulations :)

* # development commit

* trying to fix the packages install with a forced apt-update prior to
installing packages. should fix any issues prior to

* # dev commit

* Trying to parse the commands with a chrotted log_check_call

* # dev commit

* "TypeError: sequence item 2: expected string, list found" , trying to
fix this

* # dev commit - changed the way local packages get installed

This commit changes the way local deb packages get installed.

* rationale: a local deb package mostly includes a deb to configure apt,
e.g.: Puppet apt package. Therefore, after a local dep pkg install , apt
should update itself to be able to install packages that come with the
repo's configured from the local deb package. This assumes you install
LOCAL packages (deb files) first (as a rule of thumb) and AFTER the
REMOTE packages (you include other packages by name)

* reverted command plugin tasks code

* # Dev commit - puppet module update

Goal is to install a puppet 4 agent on the bootstrapped image

* limitations: Only for debian Jessie, installs only puppet4

* # Feature improvement - Puppet module

* a new way to install and configure puppet on a debian jessie
* only tested on debian jessie, for now it only installs the PC1 agent
package.
* future endeavors include all mentioned todo's:
* TODO: plugin must be able to install on any debian release
* TODO: plugin must be able to offer choice of distro package or
apt.puppetlabs.com package
* TODO: plugin must be able to select release version package (vanilla
or PC1)
* TODO: plugin must be able to set up a puppet SERVER , puppetDB
optional
* TODO: plugin have proper linting
* TODO: write test cases

* # Derp commit

* added project files in GitIgnore

* # Dev commit

* added release detection and installs appropriate package.

* # derp commit

* removed unnecessary class parameter.

* # derp dev commit

* add predecessor to ensure repo package gets installed BEFORE the
agent.

* # derp fixes commit

* i must use info.manifest.release
* a little bit refactoring

* # derp commit

* fixed correct predecessor

* # feature & derp dev commit

* added feature to install puppet modules with the plugin

* # Version upgrade commit

New puppet plugin module update

* Plugin can select proper debian release package to install
* Plugin can install modules directly from forge.puppetlabs.com
* Updated documentation with working example 
* Limitations TL;DR: agent software only, PC1 package only, Absolute
pathing, wheezy/jessie only, assumes production environment for modules.
* Several ugly derp bugs squashed.

* * PR fix commit

* Modified puppet readme file as recommended
* added small description in changelog
https://github.com/andsens/bootstrap-vz/pull/365#discussion_r101378921
https://github.com/andsens/bootstrap-vz/pull/365#discussion_r101379039

* # PR fix commit

* Cleaned debugging leftovers
https://github.com/andsens/bootstrap-vz/pull/365#discussion_r101379293

* # PR fix commit

* Removed todo's from code, creating issues on the project issue
tracker.
https://github.com/andsens/bootstrap-vz/pull/365#discussion_r101381742

* # PR fix commit

* Moved EnableAgent task to the bottom as requested
https://github.com/andsens/bootstrap-vz/pull/365#discussion_r101382775

* # PR fix commit

* Removed gitignore file, I have absolutely no idea how that got there.

* # PR fix commit

* Fixed several TOX issues, it's all green now

* #MR-365 - dev commit 

* first try at installing agent with sources/key injection
* New tasks in puppet module: AddPuppetlabsPC1SourcesList;
InstallPuppetlabsPC1ReleaseKey
* it does NOT do any checks. it assumes the url is correct.

* #MR-365 - derp commit

* removed some unused code in tasks

* #365 - tox fix commit

* fixed several tox warnings

* #365 - tox fix commit

* missed one line...

* #365 - tox fix commit

* Noticed the nature of the tox warnings of 'undefined name', fixed.

* # 365 - Task order fix commit

* Some tasks had some invalid predecessors defined, removed.
* when running a test manifest, it fails due to 'NO_PUBKEY
7F438280EF8D349F', trying a hacky way to address this

* #365 - Puppet module update - install with source-key combo

* It now properly installs puppet agent package with sources/keys
instead of package
* Tox is green

* Delete .project

* Delete .pydevproject

* #365 - Puppet module update 

General puppet module update.

* Fixed several issues discussed in the pull request.
* Tox is all green

* General puppet module update.

* This update allows for the installation of the puppetlabs.com agent VERSION 4 from the official apt.puppetlabs.com repo
* Allows for the installation of puppet modules. Useful for masterless setups.
* Puppet modules you declare in your bootstrap-vz manifest are installed with the --force flag.

Limitations and gotcha's:

* Only works for Debian Wheezy & Jessie.
* The Puppetlabs.com agents are only released for i386 and amd64 architectures.
* If you require the puppet 3.x agent, you should not use this module but add "puppet-agent" into the packages list
* You need to add your own puppet.conf file to fit your needs, this can be easily included in the assets directive.
* Assets path is absolute.

* General puppet module update.

* This update allows for the installation of the puppetlabs.com agent VERSION 4 from the official apt.puppetlabs.com repo
* Allows for the installation of puppet modules. Useful for masterless setups.
* Puppet modules you declare in your bootstrap-vz manifest are installed with the --force flag.

Limitations and gotcha's:

* Only works for Debian Wheezy & Jessie.
* The Puppetlabs.com agents are only released for i386 and amd64 architectures.
* If you require the puppet 3.x agent, you should not use this module but add "puppet-agent" into the packages list
* You need to add your own puppet.conf file to fit your needs, this can be easily included in the assets directive.
* Assets path is absolute.

* #365 - Changed the way trusted keys are fetched.

* @andsens is right, keyrings are better added by injecting them into
the image, removing the need to install package 'ca-certificates'

* * Added new feature: puppet module version can now be included in the
manifest.
* modified manifest-schema to reflect proper module installation
* Updated documentation.
* Example manifest added to demonstrate changes
* @andsens is right, keyrings are better added by injecting them into
the image, removing the need to install package 'ca-certificates'

* Fix several requests

* Example manifest moved to a more suitable location, documentation
changed as well.
* A bit more efficient programming.
* reverted file_copy to it's proper state
2017-06-25 00:29:00 +02:00
Brendan Harley
cc69173e52 Add qcow2 as a disk backend for KVM
This allows to build an image with qcow2 as a disk backend.

The update implements a new class that inherits from QEMUVolume and just
needs the extention and file format.
2017-06-16 15:54:51 +02:00
Anders Ingemann
3e5c94f0d4 Merge pull request #381 from Exy13/lvm
Add LVM as a disk backend
2017-06-08 21:55:34 +02:00
Brendan Harley
511a44f72e Add LVM as a disk backend
Enables the use of Logical Volumes as disk backends.

It uses an existing volume group and has no support for creating a new one.
It will not override an existing logical volume and fail gracefully.

The lv is created, activated and then mounted as a loop device.
The boostraping process is then launched on the loop device.
Once the process is completed, the lv is unmounted and desactivated.

The created lv will be deleted should the boostraping process fail.

The lv must be activated before use.

A manifest has been included for testing purposes.
2017-06-08 17:05:48 +02:00
Tomasz Melcer
9b15c52ed6 fix some typos in documentation 2017-04-23 16:59:37 +02:00
Zach Marano
4d979dfb6b Add the file package which many tests expect to exist- it seems to have
disappeared in some recent upstream dependency change.
2017-03-07 09:54:50 -08:00
Anders Ingemann
a4e4ad9954 Merge pull request #355 from n3ph/master
Add mountopts and enable definition of additional partitions
2017-02-13 23:16:08 +01:00
Michael Gerlach
029fc221a1 add additional partitions to docs 2017-01-31 21:54:10 +01:00
Zach Marano
74a58c6829 Create a plugin for expand_root to replace the internal common task.
Switch GCE to use this plugin.
2017-01-26 10:18:04 -08:00
Marcin Kulisz
d92123c9dd Small update to Stretch EC2 manifest 2017-01-21 21:14:12 +00:00
Zach Marano
84f258e748 Fixes to create stretch images. Add stretch manifest for GCE. 2017-01-10 13:30:31 -08:00
Michael Gerlach
3b0b8f2aeb switch to stretch release and add boot and swap parttition 2016-12-12 20:01:39 +01:00
Michael Gerlach
22d3d3e235 Add new example for kvm virtio stretch version with granular partitions 2016-12-10 16:45:40 +01:00
Michael Gerlach
b6bd3c7b12 Add description for mount_opts with examples 2016-12-10 16:42:52 +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
5267d95360 Added AMI tagging for AWS provider +
* minor syntax fixes
* added official Stretch manifest
2016-10-31 15:26:17 +00:00
Marcin Kulisz
d3b954cf82 Fixing andsens/bootstrap-vz#338 2016-09-23 09:30:41 +01: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
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
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
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
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
4cbeed5263 Add manifest, kernel and NIC config for stretch 2016-06-04 18:19:49 +02:00
Anders Ingemann
2d6a026160 Fix a slew of indentation & spacing issues 2016-06-04 11:38:16 +02:00
Zach Marano
40ec27ad16 Overhaul GCE image build. 2016-06-02 18:16:57 -07:00
Tiago Ilieve
bc1d5464f4 Add jessie-virtio.yml KVM example manifest 2016-05-09 22:07:32 -03:00
Tiago Ilieve
5d4036d938 Remove GCE's 'jessie-backports.yml'
This file was duplicated, as there was never a GCE Jessie image with
backports.

This closes #310.
2016-04-13 13:56:29 -03: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
5dba70cf36 manifests: Fix documentation
The documentation for packages.sources didn't mention
  that the key “main” is special.
2016-03-15 17:52:12 +01:00