Commit graph

214 commits

Author SHA1 Message Date
Carlos Meza
1ec736038c pylint E1608(old-octal-literal) 2018-04-09 22:27:43 -07:00
Carlos Meza
43e54d26cc pylint E1601(print-statement) 2018-04-09 22:27:29 -07:00
Carlos Meza
4e1a5922f7 pylint W0621(redefined-outer-name) 2018-02-25 10:27:53 +00:00
Carlos Meza
23ec568d3c pylint W0703(broad-except) 2018-02-25 09:43:47 +00:00
Carlos Meza
b180f66ef0 pylint E1101(no-member) 2018-02-25 09:34:12 +00:00
Carlos Meza
149173ef62 pylint W0622(redefined-builtin) 2018-02-25 08:37:24 +00:00
Carlos Meza
d86f9e94b5 pylint W0404(reimported) 2018-02-25 08:37:24 +00:00
Carlos Meza
4e1864aa2b fix pylint W0403(relative-import) paths 2018-02-25 08:37:17 +00:00
Carlos Meza
6e183914ac fix pylint W0403(relative-import) 2018-02-25 04:12:24 +00:00
Carlos Meza
c068ba07ab pylint len-as-condition 2018-02-19 00:31:12 -08:00
Anders Ingemann
febb7e8a1d
Merge pull request #458 from CMeza99/mobify
Add Docker specific settings
2018-02-14 07:28:10 +01:00
Carlos Meza
c19eb61bbf add docker specific settings 2018-02-14 03:53:33 +00:00
Carlos Meza
d31cc3a34c expose ability to no compress qcow 2018-02-11 23:15:32 +00:00
Carlos Meza
a1fc143059 compress qcow2 when shrinking 2018-02-11 00:04:16 +00:00
Carlos Meza
a3584e6de9 remove squeeze support 2018-02-08 06:02:20 +00:00
Marcin Engelmann
650b3b1f98 qemu-img also supports raw and qcow2 formats, so let's allow shrinking them too 2018-01-21 09:57:35 +01:00
Marcin Engelmann
44c5c17bf8 Change location of expand-root script and drop .sh extension 2018-01-20 20:02:30 +01:00
Marcin Engelmann
8e92cf7db9 Add comment-header to files deployed by bootstrap-vz (resolves #429) 2018-01-20 18:18:56 +01:00
Anders Ingemann
10f061ad13
Merge pull request #434 from liori/tmpfs_workspace
tmpfs_workspace: Plugin for having workspace on tmpfs for speed
2018-01-20 14:12:29 +01:00
Tomasz Melcer
152d122250 tmpfs_workspace: Plugin for having workspace on tmpfs for speed 2018-01-20 05:30:59 +01:00
Tomasz Melcer
c08a8cf344 minimize_size: Typo in temporary file name 2018-01-17 00:46:52 +01:00
Tomasz Melcer
75e0ce86f0 minimize_size: New option for qemu-img-based shrinking 2018-01-13 03:20:48 +01:00
Tomasz Melcer
6a96a2b5b1 minimize_size: Split AddRequiredCommands into command-specific tasks 2018-01-13 02:34:28 +01:00
Marcin Engelmann
aee8e63426 Change location of systemd unit from /lib/systemd/system to /etc/systemd/system 2018-01-08 17:55:39 +01:00
Alex Hegedus
fc569bcac5 Added password-cryped to root_password plugin 2017-11-28 22:15:48 -08:00
Alex Hegedus
f95f62588b Added password-crypted to root-password plugin 2017-11-28 09:38:15 -08: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
4cb1065551 Merge pull request #400 from Exy13/doc
Update misleading documentation
2017-10-02 13:50:12 +02:00
Brendan Harley
1ee5f7deb8 Update doc 2017-09-11 16:45:31 +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
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
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
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
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
Tomasz Melcer
9b15c52ed6 fix some typos in documentation 2017-04-23 16:59:37 +02:00
Anders Ingemann
0fa83961b8 Merge pull request #372 from zmarano/master
Fix an ordering issue with the expand-root plugin.
2017-04-15 21:07:31 +02:00
Zach Marano
70a2f93d41 Fix an ordering issue with the expand-root plugin. 2017-04-15 10:29:23 -07:00
Anders Ingemann
a40c639c3c
Move some package adding tasks into the preparation phase 2017-04-15 10:01:27 +02:00
Pritpal Sabharwal
87efcc812b Pass arguments for shell command as elements in a list. When shell=False, subprocess interprets the string as the name of an executable (including spaces) and fails to run. 2017-03-16 10:49:30 +00:00
Anders Ingemann
605febdeea
cloud-init: Clarify which values are possible for metadata sources
Fixes #364
2017-02-13 23:18:57 +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