mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
oem-vmware: Add VMware OEM package, uses open-vm-tools
Originally contributed by Camilo Aguilar <camilo.aguilar@gmail.com>
This commit is contained in:
parent
54b9e0d1fc
commit
a1e3d135d3
3
sdk_container/src/third_party/coreos-overlay/app-emulation/open-vm-tools/README
vendored
Normal file
3
sdk_container/src/third_party/coreos-overlay/app-emulation/open-vm-tools/README
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
When updating the version of open-vm-tools the ebuild version of
|
||||||
|
oem-vmware must be updated to match as well. That way the reported "OEM"
|
||||||
|
version directly reflects the installed tools.
|
1
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/README
vendored
Normal file
1
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/README
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
The OEM version should match the current version of open-vm-tools.
|
21
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/files/cloud-config.yml
vendored
Normal file
21
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/files/cloud-config.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#cloud-config
|
||||||
|
|
||||||
|
coreos:
|
||||||
|
units:
|
||||||
|
- name: vmtoolsd.service
|
||||||
|
command: start
|
||||||
|
content: |
|
||||||
|
[Unit]
|
||||||
|
Description=VMware Tools Agent
|
||||||
|
Documentation=http://open-vm-tools.sourceforge.net/
|
||||||
|
ConditionVirtualization=vmware
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStartPre=/usr/bin/ln -sfT /usr/share/oem/vmware-tools /etc/vmware-tools
|
||||||
|
ExecStart=/usr/share/oem/bin/vmtoolsd
|
||||||
|
TimeoutStopSec=5
|
||||||
|
oem:
|
||||||
|
bug-report-url: "https://github.com/coreos/bugs/issues"
|
||||||
|
id: vmware
|
||||||
|
name: VMWare
|
||||||
|
version-id: "@@OEM_VERSION_ID@@"
|
31
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/oem-vmware-9.4.6.ebuild
vendored
Normal file
31
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/oem-vmware-9.4.6.ebuild
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
DESCRIPTION="OEM suite for VMware"
|
||||||
|
HOMEPAGE="https://github.com/coreos/coreos-overlay/tree/master/coreos-base"
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
app-emulation/open-vm-tools
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
# no source directory
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
|
||||||
|
"${FILESDIR}"/cloud-config.yml > ${T}/cloud-config.yml || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto "/usr/share/oem"
|
||||||
|
doins "${T}/cloud-config.yml"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user