day01 Updates
* Day01:
- remove reclass data from node
- Force maas in unconfigured state
- if you will try to run maas - it will automatically start
import processes = > which fail.
- If you will try to wrap and disable imports (formula allow to do it)
=> maas_config step will never pass.
* Misc:
- for to use freezed bootstrap.saltstack.com.sh
- add qemu-packer disk_compression true - require packer 1.10 +
- decrease mirror image size to 100gb
- apt_preserve_sources_list - force cloud-init to not re-create sources.list
Change-Id: If7c731284f3fd6ca21fe253c05c8ab78213cf9c5
diff --git a/day01-image/template.json b/day01-image/template.json
index 6cc5ce5..4db83f2 100644
--- a/day01-image/template.json
+++ b/day01-image/template.json
@@ -52,7 +52,8 @@
"GIT_SALT_FORMULAS_SCRIPTS={{ user `git_salt_formulas_scripts` }}",
"APT_REPOSITORY={{ user `apt_repository` }}",
"APT_REPOSITORY_GPG={{ user `apt_repository_gpg` }}",
- "APT_MIRANTIS_SALT_REPO={{ user `apt_mirantis_salt_repo` }}"
+ "APT_MIRANTIS_SALT_REPO={{ user `apt_mirantis_salt_repo` }}",
+ "PACKER_OFFLINE_BUILD=true"
],
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
@@ -119,6 +120,7 @@
"vm_name": "{{ user `image_name` }}-{{ isotime \"200601021504\" }}",
"output_directory": "images/{{ user `image_name` }}-qemu-{{ isotime \"200601021504\" }}",
"format": "qcow2",
+ "disk_compression": true,
"iso_checksum": "566efef1d6f12e7d3a994c2405bdb642",
"iso_checksum_type": "md5",
"iso_url": "http://cloud-images.ubuntu.com/releases/xenial/release-20180306/ubuntu-16.04-server-cloudimg-amd64-disk1.img",
@@ -128,6 +130,8 @@
"headless": true,
"ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}",
+ "ssh_host_port_min": 7000,
+ "ssh_host_port_max": 7050,
"shutdown_command": "shutdown -P now",
"boot_wait": "2s",
"ssh_wait_timeout": "360s"