forked from vmware/photon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update build machine to ubuntu 14.04.3
Change-Id: Ie6b8bf920fb2c47d24678c13fb6158041e35ac74 Reviewed-on: http://photon-jenkins.eng.vmware.com/291 Tested-by: jenkins-photon <[email protected]> Reviewed-by: Sharath George
- Loading branch information
Ivan Porto Carrero
authored and
Sharath George
committed
Jan 6, 2016
1 parent
f500105
commit 08594ed
Showing
8 changed files
with
154 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,62 @@ | ||
{ | ||
"builders": [ | ||
{ | ||
"name": "photon-build-machine", | ||
"vm_name": "photon-build-machine", | ||
"vmdk_name": "photon-build-machine-disk0", | ||
"type": "vmware-iso", | ||
"headless": true, | ||
"disk_size": 40960, | ||
"disk_type_id": 0, | ||
"guest_os_type": "ubuntu-64", | ||
"iso_url": "http://ubuntu.bhs.mirrors.ovh.net/ftp.ubuntu.com/releases/trusty/ubuntu-14.04.2-server-amd64.iso", | ||
"iso_checksum": "3bfa6eac84d527380d0cc52db9092cde127f161e", | ||
"iso_checksum_type": "sha1", | ||
"ssh_username": "vagrant", | ||
"ssh_password": "vagrant", | ||
"ssh_wait_timeout": "60m", | ||
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now", | ||
"http_directory": ".", | ||
"tools_upload_flavor": "linux", | ||
"boot_command": [ | ||
"<esc><esc><enter><wait>", | ||
"/install/vmlinuz noapic ", | ||
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/scripts/ubuntu-preseed.cfg ", | ||
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ", | ||
"hostname=photon-build-machine ", | ||
"fb=false debconf/frontend=noninteractive ", | ||
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ", | ||
"keyboard-configuration/variant=USA console-setup/ask_detect=false ", | ||
"initrd=/install/initrd.gz -- <enter>" | ||
] | ||
} | ||
], | ||
"provisioners": [ | ||
{ | ||
"type": "shell", | ||
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", | ||
"script": "scripts/ubuntu-vmware-tools_install.sh" | ||
}, | ||
{ | ||
"type": "shell", | ||
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", | ||
"script": "scripts/ubuntu-puppet_install.sh" | ||
}, | ||
{ | ||
"type": "puppet-masterless", | ||
"execute_command": "{{.FacterVars}}{{if .Sudo}} echo 'vagrant' | sudo -E -S {{end}} puppet apply --verbose --modulepath='{{.ModulePath}}' {{if ne .HieraConfigPath \"\"}}--hiera_config='{{.HieraConfigPath}}' {{end}} {{if ne .ManifestDir \"\"}}--manifestdir='{{.ManifestDir}}' {{end}} --detailed-exitcodes {{.ManifestFile}}", | ||
"manifest_file": "puppet/manifests/vagrant.pp", | ||
"manifest_dir": "puppet/manifests", | ||
"module_paths": [ | ||
"puppet/modules" | ||
] | ||
}, | ||
{ | ||
"type": "shell", | ||
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", | ||
"script": "scripts/ubuntu-vmware-final_cleanup.sh" | ||
} | ||
], | ||
"post-processors": [ | ||
{ | ||
"type": "vagrant", | ||
"compression_level": 9, | ||
"output": "{{.BuildName}}.box" | ||
} | ||
] | ||
"builders": [{ | ||
"name": "photon-build-machine", | ||
"vm_name": "photon-build-machine", | ||
"vmdk_name": "photon-build-machine-disk0", | ||
"type": "vmware-iso", | ||
"headless": true, | ||
"disk_size": 40960, | ||
"disk_type_id": 0, | ||
"guest_os_type": "ubuntu-64", | ||
"iso_url": "http://ubuntu.bhs.mirrors.ovh.net/ftp.ubuntu.com/releases/trusty/ubuntu-14.04.3-server-amd64.iso", | ||
"iso_checksum": "0501c446929f713eb162ae2088d8dc8b6426224a", | ||
"iso_checksum_type": "sha1", | ||
"ssh_username": "vagrant", | ||
"ssh_password": "vagrant", | ||
"ssh_wait_timeout": "60m", | ||
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now", | ||
"http_directory": ".", | ||
"tools_upload_flavor": "linux", | ||
"boot_command": [ | ||
"<esc><esc><enter><wait>", | ||
"/install/vmlinuz noapic ", | ||
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/scripts/ubuntu-preseed.cfg ", | ||
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ", | ||
"hostname=photon-build-machine ", | ||
"fb=false debconf/frontend=noninteractive ", | ||
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ", | ||
"keyboard-configuration/variant=USA console-setup/ask_detect=false ", | ||
"initrd=/install/initrd.gz -- <enter>" | ||
] | ||
}], | ||
"provisioners": [{ | ||
"type": "shell", | ||
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", | ||
"script": "scripts/ubuntu-vmware-tools_install.sh" | ||
}, { | ||
"type": "shell", | ||
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", | ||
"script": "scripts/ubuntu-puppet_install.sh" | ||
}, { | ||
"type": "puppet-masterless", | ||
"execute_command": "{{.FacterVars}}{{if .Sudo}} echo 'vagrant' | sudo -E -S {{end}} puppet apply --verbose --modulepath='{{.ModulePath}}' {{if ne .HieraConfigPath \"\"}}--hiera_config='{{.HieraConfigPath}}' {{end}} {{if ne .ManifestDir \"\"}}--manifestdir='{{.ManifestDir}}' {{end}} --detailed-exitcodes {{.ManifestFile}}", | ||
"manifest_file": "puppet/manifests/vagrant.pp", | ||
"manifest_dir": "puppet/manifests", | ||
"module_paths": [ | ||
"puppet/modules" | ||
] | ||
}, { | ||
"type": "shell", | ||
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", | ||
"script": "scripts/ubuntu-install-docker.sh" | ||
}, { | ||
"type": "shell", | ||
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", | ||
"script": "scripts/ubuntu-vmware-final_cleanup.sh" | ||
}], | ||
"post-processors": [{ | ||
"type": "vagrant", | ||
"compression_level": 9, | ||
"output": "{{.BuildName}}.box" | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ | |
'cifs-utils', | ||
'createrepo', | ||
'rpm', | ||
'git', | ||
'htop', | ||
'python-aptdaemon', | ||
'gdisk', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
echo "==> Setting up docker from apt.dockerproject.org" | ||
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | ||
echo 'deb https://apt.dockerproject.org/repo ubuntu-trusty main' | sudo tee /etc/apt/sources.list.d/docker.list | ||
sudo apt-get update | ||
sudo apt-get install -y docker-engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 9 additions & 11 deletions
20
support/packer-templates/scripts/ubuntu-vmware-tools_install.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
#!/bin/bash | ||
|
||
sudo mount -o loop ~/linux.iso /media/cdrom | ||
sudo cp /media/cdrom/VMwareTools*.tar.gz ~/ | ||
tar xfz VMwareTools*.tar.gz | ||
cd ~/vmware-tools-distrib | ||
sudo ./vmware-install.pl -d | ||
sudo umount /media/cdrom | ||
cd ~ | ||
rm -rf vmware-tools-distrib | ||
rm -f VMwareTools*.tar.gz | ||
rm linux.iso | ||
|
||
git clone https://github.com/rasa/vmware-tools-patches.git | ||
cd vmware-tools-patches | ||
sudo ./download-tools.sh 8.0.2 | ||
sudo ./untar-and-patch.sh | ||
cd vmware-tools-distrib | ||
sudo ./vmware-install.pl -f -d --clobber-kernel-modules=pvscsi,vmblock,vmci,vmhgfs,vmmemctl,vmsync,vmxnet,vmxnet3,vsock | ||
cd "$HOME" | ||
rm -rf vmware-tools-patches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters