Skip to content

Commit

Permalink
Renamed packer template to make it shorter.
Browse files Browse the repository at this point in the history
* Removed vcore version string from packer templates
* Added locale based optional directory.
  • Loading branch information
hyamamoto committed Nov 24, 2013
1 parent 9b30c8f commit 4e2413e
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"vcore_version": "0.5",
"vcore_arch": "amd64",
"vcore_flavor": "core5.0.2"
"locale": "en_US.utf8",
"kmap": "pc110",
"tz": "GMT+8"
},
"provisioners": [
{
Expand All @@ -20,6 +23,11 @@
"source": "vcore/files/tce/optional/",
"destination": "/etc/sysconfig/tcedir/optional"
},
{
"type": "file",
"source": "vcore/files/i18n/optionals/{{user `locale`}}/tce/optional/",
"destination": "/etc/sysconfig/tcedir/optional"
},
{
"type": "file",
"source": "vcore/files/virtualbox/vbox-ga-amd64.tar.gz",
Expand All @@ -30,6 +38,7 @@
"type": "shell",
"scripts": [
"vcore/scripts/splash-vcore.sh",
"vcore/scripts/locale.sh",
"vcore/scripts/virtualbox.sh",
"vcore/scripts/postinstall.sh",
"vcore/scripts/cleanupfsync.sh"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"vcore_version": "0.5",
"vcore_arch": "i486",
"vcore_flavor": "core5.0.2",
"locale": "en_US.utf8",
"kmap": "pc110",
"tz": "GMT+8"
"command_mirror": "sudo echo http://kambing.ui.ac.id/tinycorelinux/ > /opt/tcemirror<enter><wait>"
},
"provisioners": [
Expand All @@ -16,6 +19,11 @@
"source": "vcore/files/tce/optional/",
"destination": "/etc/sysconfig/tcedir/optional"
},
{
"type": "file",
"source": "vcore/files/i18n/optionals/{{user `locale`}}/tce/optional/",
"destination": "/etc/sysconfig/tcedir/optional"
},
{
"type": "file",
"source": "vcore/files/virtualbox/vbox-ga.tar.gz",
Expand All @@ -26,11 +34,14 @@
"type": "shell",
"scripts": [
"vcore/scripts/splash-vcore.sh",
"vcore/scripts/locale.sh",
"vcore/scripts/virtualbox.sh",
"vcore/scripts/postinstall.sh",
"vcore/scripts/ram.10.open.sh",
"vcore/scripts/ram.20.encoding.sh",
"vcore/scripts/ram.30.close.sh",
"vcore/scripts/ram.13.virtualbox.sh",
"vcore/scripts/ram.15.copy.sh",
"vcore/scripts/ram.20.locale.sh",
"vcore/scripts/ram.50.close.sh",
"vcore/scripts/cleanupfsync.sh"
],
"override": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"source": "vcore/files/tce/optional/",
"destination": "/etc/sysconfig/tcedir/optional"
},
{
"type": "file",
"source": "vcore/files/i18n/optionals/{{user `locale`}}/tce/optional/",
"destination": "/etc/sysconfig/tcedir/optional"
},
{
"type": "file",
"source": "vcore/files/i18n/kmaps/{{user `locale`}}/kmaps",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"variables": {
"vcore_version": "0.5",
"vcore_arch": "i486",
"vcore_flavor": "tinycore5.0.2"
"vcore_flavor": "tinycore5.0.2",
"locale": "en_US.utf8",
"kmap": "pc110",
"tz": "GMT+8"
},
"provisioners": [
{
Expand All @@ -15,6 +18,11 @@
"source": "vcore/files/tce/optional/",
"destination": "/etc/sysconfig/tcedir/optional"
},
{
"type": "file",
"source": "vcore/files/i18n/optionals/{{user `locale`}}/tce/optional/",
"destination": "/etc/sysconfig/tcedir/optional"
},
{
"type": "file",
"source": "vcore/files/virtualbox/vbox-ga.tar.gz",
Expand All @@ -25,8 +33,14 @@
"type": "shell",
"scripts": [
"vcore/scripts/splash-vcore.sh",
"vcore/scripts/locale.sh",
"vcore/scripts/virtualbox.sh",
"vcore/scripts/postinstall.sh",
"vcore/scripts/ram.10.open.sh",
"vcore/scripts/ram.13.virtualbox.sh",
"vcore/scripts/ram.15.copy.sh",
"vcore/scripts/ram.20.locale.sh",
"vcore/scripts/ram.50.close.sh",
"vcore/scripts/cleanupfsync.sh"
],
"override": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!.gitignore
10 changes: 0 additions & 10 deletions packer/vcore/scripts/ram.20.encoding.sh

This file was deleted.

14 changes: 0 additions & 14 deletions packer/vcore/scripts/ram.30.close.sh

This file was deleted.

0 comments on commit 4e2413e

Please sign in to comment.