Commit graph

1493 commits

Author SHA1 Message Date
Alex Hegedus
c0350e7c8a Added security field to packages. 2017-11-27 18:48:57 -08:00
Anders Ingemann
9445273b8e
Merge pull request #414 from CMeza99/netbase
allow networking task when netbase pkg is present
2017-11-23 08:06:54 +01:00
Carlos Meza
5824d0775e allow networking task when netbase pkg is present 2017-11-22 20:28:01 -08:00
Anders Ingemann
38fc7c5240
Fix tabs vs. spaces in changelog 2017-11-09 20:23:16 +01:00
Anders Ingemann
fc8b8ab9a5
ec2: re-add 'copy' import from shutils 2017-11-09 20:18:16 +01:00
Anders Ingemann
df32bf4792
ec2: Move cloud-init mount tuning to cloud-init plugin
Fixes #406
2017-11-09 20:16:19 +01:00
Anders Ingemann
6dac2abd7b
pep8: Fix E722 do not use bare except' 2017-11-09 20:06:51 +01:00
Anders Ingemann
503b15d75e
Merge pull request #407 from zmarano/master
Remove the bits that disabled IPv6 for GCE.
2017-11-09 19:50:22 +01:00
Zach Marano
7804639f66 Remove the bits that disabled IPv6 for GCE. 2017-11-08 13:18:58 -08:00
Anders Ingemann
4cb1065551 Merge pull request #400 from Exy13/doc
Update misleading documentation
2017-10-02 13:50:12 +02:00
Anders Ingemann
58cd2facaf Merge pull request #398 from jmporcelg/issue-397
#397 fix: Installing networking kernel driver using DKMS fails in stretch
2017-09-21 08:03:24 +02:00
Jose Porcel
b2cc807475 #397 fix: Installing enhanced networking kernel driver using DKMS fails in stretch 2017-09-15 17:03:05 +01:00
Brendan Harley
1ee5f7deb8 Update doc 2017-09-11 16:45:31 +02:00
Anders Ingemann
56b95924de Merge pull request #396 from NeatNerdPrime/puppet_update_stretch
Stretch update commit
2017-09-03 15:49:49 +02: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
Anders Ingemann
fd4ebc34ef Merge pull request #395 from zmarano/master
Add GCE buster builds.
2017-08-31 08:42:07 +02:00
Zach Marano
79a1aa1616 Add GCE buster builds. 2017-08-30 17:50:27 -07:00
Anders Ingemann
4e06eb1f88 Merge pull request #392 from gplessis/empty-ami-names
Don’t crash on empty AMI name
2017-08-24 13:47:42 +02:00
Anders Ingemann
71bddda4b1 Merge pull request #393 from zmarano/master
Update Google Compute Engine package and repository structure.
2017-08-24 13:33:19 +02:00
Guillaume Plessis
7234be601b Fix flake8 tests 2017-08-23 14:42:31 -07:00
Guillaume Plessis
cb886fe3d6 Don’t crash on empty AMI name 2017-08-23 12:58:23 -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
Anders Ingemann
19e15d15bf
Partitions: Fix check for additional partitions on single part. 2017-08-20 10:37:28 +02:00
Anders Ingemann
8932f223b8 Merge pull request #391 from NeatNerdPrime/puppet_module_upgrade
Puppet tasks fix commit
2017-08-11 16:42:21 +02:00
Hugo Antonio Sepulveda Manriquez
390b59b22b Puppet tasks fix commit
* fixed an issue where apt sources get written before the 
  InstallPuppetlabsPC1ReleaseKey task is performed. added a successor
  to the task.
* tox is green
2017-08-11 16:09:29 +02:00
Anders Ingemann
fc04baba44 Merge pull request #390 from indigoid/readme-escaping-note
brief note about escaping braces in manifests
2017-08-04 09:13:54 +02: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
9364b18288
commands plugin: Run copy files before running commands
This is quite useful in situations where you want to do something
with the assets that you have copied into the image.
One could argue for the opposite case as well, but with the
commands plugin you always have the manual "cp" escape hatch.
2017-08-02 15:42:13 +02:00
Anders Ingemann
7913246c2d
ansible: Remove erroneous whitespace 2017-07-26 14:37:24 +02:00
Anders Ingemann
ddaf40289b
ansible: Fix extra_vars so that it actually works
Also remove tmp_cmd var and fix manifest schema
2017-07-26 14:09:55 +02:00
Anders Ingemann
84db19605a
ansible hosts -> groups 2017-07-14 19:48:45 +02:00
Anders Ingemann
18fb853b48
ansible: Change tags/skip-tags to be lists and shorten task 2017-07-14 19:23:14 +02:00
Anders Ingemann
bf7525426b
vbox: Make guest additions path relative to manifest 2017-07-14 18:27:16 +02:00
Anders Ingemann
ff48243c6e
ansible: Check for ansible availability before running 2017-07-14 18:26:52 +02:00
Anders Ingemann
ad6c89cb41
ansible: Make playbook path relative to manifest 2017-07-14 18:26:25 +02:00
Anders Ingemann
85a0e6a191
Make trusted-keys paths in manifest relative to manifest 2017-07-14 18:25:07 +02:00
Anders Ingemann
58c682818c Merge pull request #382 from Exy13/existing_commands
Fix unfailing CheckExternalCommands
2017-07-02 19:55:05 +02:00
Brendan Harley
acb17a98d0 Add executable check to find_executable
Find_executable returns a file in the path, so it must be checked for
executability.
2017-07-02 17:16:25 +02:00
Anders Ingemann
d062c9b31a Merge pull request #386 from liori/minimize-size-bindmount-permissions
minimize_size: make sure the permissions of bindmounts are preserved
2017-07-02 14:01:22 +02:00
Tomasz Melcer
1de10b2f4f minimize_size: make sure the permissions of bindmounts are preserved 2017-07-02 03:33:37 +02:00
Anders Ingemann
266e9e4ae3 Merge pull request #385 from liori/lone-dpkg
Fix lone minimize_size/dpkg without apt
2017-06-25 08:39:39 +02:00
Tomasz Melcer
5d43b9a0e7 Fix lone minimize_size/dpkg without apt 2017-06-25 01:39:17 +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
Anders Ingemann
334a16ee50
Fix equality & identity test for new Debian release 2017-06-17 00:57:19 +02:00
Anders Ingemann
1e36cc1338 Merge pull request #384 from zmarano/master
Promote stretch to stable, add buster as testing, jessie to oldstable.
2017-06-17 00:49:16 +02:00
Zach Marano
7066efe9d1 Add buster as testing and promote stretch to stable, jessie to oldstable. Stretch release to stable is June 17. 2017-06-16 12:31:58 -07:00
Anders Ingemann
c23e73c222 Merge pull request #383 from Exy13/qcow
Add qcow2 as a disk backend for KVM
2017-06-16 18:54:44 +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