[TryMOS] Update image build fileset
* add ansible playbooks for image build/install
* move inventory files to Ansible folder
Related-Prod: PRODX-53424
Change-Id: I01d32082190ab20ac5bc3f64a2a268e063e33c68
diff --git a/trymos/image_build/template.json b/trymos/image_build/template.json
index be7d8b9..cc8e575 100644
--- a/trymos/image_build/template.json
+++ b/trymos/image_build/template.json
@@ -2,7 +2,7 @@
"variables": {
"user": "root",
"password": "r00tme",
- "disk_size": "2500M",
+ "disk_size": "16000M",
"images_cache": "{{ env `PACKER_IMAGES_CACHE` }}",
"image_base_url": "{{ env `IMAGE_BASE_URL` }}",
"image_md5_url": "{{ env `IMAGE_MD5_URL` }}",
@@ -13,7 +13,7 @@
{
"type": "shell",
"inline": [
- "mkdir -p /usr/share/trymos /srv"
+ "mkdir -p /usr/share/trymos /srv/trymos"
]
},
{
@@ -23,18 +23,34 @@
},
{
"type": "file",
- "source": "../rockoon/charts",
- "destination": "/srv/"
- },
- {
- "type": "file",
- "source": "../rockoon/virtual_lab",
+ "sources": [
+ "../rockoon/charts",
+ "../rockoon/virtual_lab"
+ ],
"destination": "/srv/"
},
{
"type": "file",
"source": "./scripts/launch.sh",
"destination": "/usr/share/trymos/"
+ },
+ {
+ "type": "file",
+ "sources": [
+ "./ansible",
+ "./scripts/build-image.sh",
+ "./scripts/install-trymos.sh"
+ ],
+ "destination": "/srv/trymos/"
+ },
+ {
+ "type": "shell",
+ "environment_vars": [
+ "INVENTORY_FILE=/srv/single_node.yaml"
+ ],
+ "inline": [
+ "/srv/trymos/build-image.sh"
+ ]
}
],
"builders": [