30045 Commits

Author SHA1 Message Date
Michael Marineau
65dc3955c0 Merge pull request #578 from marineam/tests
bump(coreos-base/coretest): Fixes for update related tests
2014-05-04 21:21:08 -07:00
Michael Marineau
06b9e2e158 bump(coreos-base/coretest): Fixes for update related tests 2014-05-04 21:19:26 -07:00
Michael Marineau
7c66ebe548 Merge pull request #577 from marineam/bump
bump(coreos-base/update_engine): Re-bump to resolve merge
2014-05-04 19:01:41 -07:00
Michael Marineau
53d01a5c21 bump(coreos-base/update_engine): Re-bump to resolve merge 2014-05-04 18:52:28 -07:00
Michael Marineau
80180dd952 Merge pull request #576 from marineam/fix
bump(coreos-base/coreos-init): Fix coreos-install regression
2014-05-04 18:26:20 -07:00
Michael Marineau
dff8965797 bump(coreos-base/coreos-init): Fix coreos-install regression 2014-05-04 18:25:55 -07:00
Fabrício Godoy
63d519b992 Script to create basic config-drive
New script that creates a basic config-drive, ideal to testing purpose.
2014-05-04 01:16:34 -03:00
Fabrício Godoy
8f3fc749c2 VirtualBox script changed to convert image untouched
With config drive there is no need to crack image to insert SSH keys. Then VirtualBox script was changed to just download CoreOS image and convert it to VDI format.
2014-05-04 01:16:34 -03:00
Michael Marineau
33858859fb Merge pull request #238 from marineam/insecure
fix(vm_image_util): Don't use the full vagrant OEM on vmware_insecure
2014-05-03 14:19:20 -07:00
Michael Marineau
6e32109b1d Merge pull request #575 from marineam/insecure
add(coreos-base/oem-vagrant-key): Add oem for vmware_insecure images.
2014-05-03 14:19:05 -07:00
Michael Marineau
fccefb278e Merge pull request #236 from marineam/vagrant
Vagrant related script updates
2014-05-03 14:18:39 -07:00
Michael Marineau
f323a0348e Merge pull request #568 from marineam/vagrant
Vagrant hackery redux
2014-05-03 14:18:21 -07:00
Brandon Philips
573e653dca Merge pull request #574 from philips/motdgen
motdgen bumps
2014-05-02 17:17:32 -07:00
Brandon Philips
ca1b73ec27 bump(sys-apps/baselayout): motdgen changes
This also pulls in the systemd-journal-gateway user.
2014-05-02 17:15:43 -07:00
Brandon Philips
25e2ca5483 bump(coreos-base/coreos-init): add motdgen 2014-05-02 17:15:43 -07:00
Michael Marineau
c4984b3c7c fix(vm_image_util): Don't use the full vagrant OEM on vmware_insecure
Only the key is needed, and currently the vagrant OEM is completely
broken outside of vagrant. This gets vmware_insecure images back into
the state that they were before cloud config came along. :)
2014-05-02 15:30:49 -07:00
Michael Marineau
a2c6016ca0 add(coreos-base/oem-vagrant-key): Add oem for vmware_insecure images.
vmware_insecure currently pulls in oem-vagrant which made more sense
back when that package only installed a ssh key. Now that it is oh so
much more and only works properly inside of Vagrant this new ebuild
provides a way to just get the ssh key again.
2014-05-02 15:06:01 -07:00
Brandon Philips
8a38039706 Merge pull request #573 from philips/locksmith-send-need-reboot
bump(app-admin/locksmith): grab the send-need-reboot command
2014-05-02 14:30:35 -07:00
Brandon Philips
3c3e748126 bump(app-admin/locksmith): grab the send-need-reboot command 2014-05-02 13:50:40 -07:00
Brandon Philips
d495a980c5 Merge pull request #572 from philips/change-default-locksmith-strategy
feat(app-admin/locksmith): change the default strategy
2014-05-02 13:48:46 -07:00
Brandon Philips
c8f59f1b50 feat(app-admin/locksmith): change the default strategy 2014-05-01 18:38:49 -07:00
Michael Marineau
33b54ee001 Merge pull request #237 from marineam/groups
Updates, keys, and groups
2014-05-01 18:02:04 -07:00
Michael Marineau
2b1106b825 Merge pull request #570 from marineam/key
Install update keys via ebuild
2014-05-01 18:01:46 -07:00
Brandon Philips
caeedfc05d Merge pull request #571 from philips/locksmith
add locksmith
2014-05-01 16:45:17 -07:00
Brandon Philips
e8e9c0ea06 feat(coreos-base/coreos): add locksmith 2014-05-01 14:38:45 -07:00
Brandon Philips
a5b17a1555 feat(app-admin/locksmith): Initial commit 2014-05-01 14:38:45 -07:00
Brandon Philips
ebe1662c5f bump(coreos-base/update_engine): latest version with new dbus API 2014-05-01 14:00:12 -07:00
Michael Marineau
1430315362 bump(coreos-base/cros-devutils): Sign updates generated by devserver 2014-05-01 11:09:29 -07:00
Michael Marineau
75999b5e2a fix(build_image): Add group prefix to image output directories. 2014-05-01 10:21:51 -07:00
Michael Marineau
4e85b172df feat(build_image): Optionally generate update payload with prod images. 2014-05-01 09:59:58 -07:00
Michael Marineau
67f1ae115e feat(coreos-base/coreos-au-key): Install signing key in SDK
This just means tools looking for the test key don't need to point at
the long and screwy path into the coreos-overlay repo.
2014-05-01 09:54:04 -07:00
Michael Marineau
e1d7b29436 feat(disk_util): Add support for extracting partitions.
This will simplify the process of generating update payloads.
2014-04-30 19:04:42 -07:00
Michael Marineau
7a7494e999 fix(prod_image_util): Do not install update test key anymore.
Leave this to the ebuild, no reason for it to be done here.
2014-04-30 17:12:59 -07:00
Michael Marineau
b3789e2f41 fix(coreos-base/update_engine): Install update signing key via ebuild.
This removes the need to perform this step during build_image.
2014-04-30 16:31:11 -07:00
Michael Marineau
38ea803ff9 Merge pull request #566 from marineam/clean
maint(profiles): Merge usr profile back into generic target.
2014-04-29 11:57:23 -07:00
Michael Marineau
3fdfe92b5d fix(vm_image_util): Fix building vagrant vmware fusion images. 2014-04-29 03:48:56 -04:00
Michael Marineau
c0b34b285c fix(coreos-base/oem-vagrant): Fix up comments
Fix some comments that were written for a previous iteration of code.
2014-04-29 03:26:54 -04:00
Michael Marineau
def1901f7e fix(coreos-base/oem-vagrant): Create directory for vagrant user-data.
This fixes compatibility with the existing Vagrantfile in
coreos-vagrant which expected the plugin code to create this directory.
Also, the units can be runtime since they are always written at boot.
2014-04-29 02:44:19 -04:00
Michael Marineau
10d98e7b32 fix(common): Switch to os-release style names in version.txt
The existing version.txt is kinda annoying. The common case of referring
to the current version requires joining three values and the names of
those values only make sense in ChromeOS. Instead just use version as a
string, using VERSION, VERSION_ID, and BUILD_ID just as they appear in
os-release. It is up to the few scripts that need the individual parts
to break the version apart.

The old values remain for the sake of compatibility.
2014-04-29 01:44:47 -04:00
Michael Marineau
20f191a804 maint(set_lsb_release): Remove gentoo-release (again)
We now require Vagrant 1.5.0 both in documentation and in code which
uses os-release instead of gentoo-release.
2014-04-29 01:44:47 -04:00
Michael Marineau
8183430f6c feat(vm_image_util): Add Vagrant metadata file
This is required for Vagrant to recognize box versions:
http://docs.vagrantup.com/v2/boxes/versioning.html
2014-04-29 01:44:47 -04:00
Michael Marineau
d7cfb39436 bump(coreos-base/oem-vagrant): Update revision, include box configs. 2014-04-28 21:44:37 -04:00
Michael Marineau
8ac5099b3a fix(coreos-base/oem-vagrant): Add hook to make it easy to set base_mac
The file `base_mac.rb` will be re-written when packing this into a box.
2014-04-28 21:44:37 -04:00
Michael Marineau
f16d776db2 fix(coreos-base/oem-vagrant): Add timeout for /etc/environment
The environment file will not be written if there are no public or
private networks defined since the configure_networks hook is never run.
Report an error after one minute to make this situation less confusing.
2014-04-28 21:44:36 -04:00
Michael Marineau
8b1ff15435 fix(coreos-base/oem-vagrant): Rework network configuration code.
- Only write configs for static networks, DHCP will work by default.
 - Match interfaces by MAC address if possible.
 - Use the configured netmask instead of always using a /24
 - Define default addresses in /etc/environment based on the type of
   network. Now using both a private and a public network works!
2014-04-28 21:44:36 -04:00
Michael Marineau
b1294b062d fix(coreos-base/oem-vagrant): Split up plugin, use change_host_name hook.
The old override-plugin.rb didn't actually properly monkey patch the
change host name function because it was missing a requires line
pointing to the file it is defined in upstream. To clarify things split
the code into two files that match the upstream names. Additionally
using this hook as it is intended means it works if a host name is
defined but additional networks are not.

As part of the split switch to starting the units directly. The
indirection through a path unit just adds complexity.
2014-04-28 21:44:36 -04:00
Michael Marineau
39951946ca feat(vm_image_util): Add new build steps, update vagrant builds
This adds two new optional build steps.  The first user of these is the
vagrant images but many of the targets can be simplified now.

- fs_hook: Anything that needs to happen before unmounting the image.
  This happens after the OEM is installed but before disk images are
  made. It can be used to copy any data out of the image.
- bundle_format: Many VM types ship as some sort of archive format
  rather than plain disk images as this script originally assumed.
  Adding this final step lets us stop using the conf step awkwardly.

Vagrant now ships with a Vagrantfile and related code included in the
OEM package. This lets us version our vagrant-side code along with the
images themselves as well making the coreos-vagrant repo optional again.
The coreos-vagrant code will still be useful for handling the fancier
cluster configuration stuff but no longer has to carry the plugin code.
2014-04-28 19:52:24 -04:00
Michael Marineau
9424a28ec3 fix(coreos-base/oem-vagrant): Move user config handling out of ruby code
There's no reason for handling vagrantfile-user-data in the Vagrant
plugin, move it to the OEM cloud-config.yml along side the user-data
handler. Use the generic user-config@ unit as well.
2014-04-28 16:54:30 -04:00
Michael Marineau
e6244ef10c add(coreos-base/oem-vagrant): Import code from coreos-vagrant
Import override-plugin.rb and some VirtualBox fixups from our published
Vagrantfile repo. The current Vagrant OEM depends on this code, making
it impossible to boot without using our special Vagrantfile. Using the
box as a stand-alone entity worked up until recently and is something
users expect to work.

Also bump the minimum Vagrant version to 1.5, matching our current
documentation.

Fixes https://github.com/coreos/bugs/issues/5
2014-04-28 16:54:30 -04:00
Michael Marineau
500e9c2693 add(coreos-base/coreos-vagrant): Import Vagrantfile template
This is the static piece of the Vagrantfile previously defined in
scripts/build_library/virtualbox_ovf.sh. Moving it here so we can start
maintaining the major Vagrant OEM pieces together.
2014-04-28 16:54:30 -04:00