Commit 10f8e674 authored by eric pellegrini's avatar eric pellegrini

removed environment. prefix for all manifest templates

parent 9f994e6f
...@@ -8,8 +8,8 @@ packer: ...@@ -8,8 +8,8 @@ packer:
iso_checksum_type: none iso_checksum_type: none
iso_checksum_url: none iso_checksum_url: none
disk_image: True disk_image: True
ssh_username: "{{ environment.ssh_username }}" ssh_username: "{{ ssh_username }}"
ssh_password: "{{ environment.root_password }}" ssh_password: "{{ root_password }}"
shutdown_command: "shutdown -P now" shutdown_command: "shutdown -P now"
provisioners: provisioners:
......
...@@ -8,44 +8,44 @@ packer: ...@@ -8,44 +8,44 @@ packer:
type: qemu type: qemu
format: qcow2 format: qcow2
iso_checksum_type: sha256 iso_checksum_type: sha256
iso_checksum_url: "{{ environment.ubuntu_mirror }}/{{ environment.ubuntu_codename }}-updates/main/installer-amd64/current/images/SHA256SUMS" iso_checksum_url: "{{ ubuntu_mirror }}/{{ ubuntu_codename }}-updates/main/installer-amd64/current/images/SHA256SUMS"
iso_url: "{{ environment.ubuntu_mirror }}/{{ environment.ubuntu_codename }}-updates/main/installer-amd64/current/images/netboot/mini.iso" iso_url: "{{ ubuntu_mirror }}/{{ ubuntu_codename }}-updates/main/installer-amd64/current/images/netboot/mini.iso"
ssh_username: "{{ environment.ssh_username }}" ssh_username: "{{ ssh_username }}"
ssh_password: "{{ environment.root_password }}" ssh_password: "{{ root_password }}"
ssh_timeout: 60m ssh_timeout: 60m
accelerator: kvm accelerator: kvm
headless: "{{ environment.headless }}" headless: "{{ headless }}"
shutdown_command: "shutdown -P now" shutdown_command: "shutdown -P now"
qemuargs: qemuargs:
- - "-m" - - "-m"
- "{{ environment.memory }}" - "{{ memory }}"
- - "-smp" - - "-smp"
- "{{ environment.cpus }}" - "{{ cpus }}"
boot_wait: 5s boot_wait: 5s
boot_command: boot_command:
- "<tab> " - "<tab> "
- "preseed/url=http://{% raw %}{{ .HTTPIP }}:{{ .HTTPPort }}{% endraw %}/{{ environment.preseed_file_name }} " - "preseed/url=http://%< .HTTPIP >%:%< .HTTPPort >%/{{ preseed_file_name }} "
- "auto-install/enable=true " - "auto-install/enable=true "
- "net.ifnames=0 " - "net.ifnames=0 "
- "netcfg/get_hostname={{ environment.vm_name }} " - "netcfg/get_hostname={{ vm_name }} "
- "netcfg/get_gateway={{ environment.gateway}} " - "netcfg/get_gateway={{ gateway}} "
- "netcfg/get_nameservers={{ environment.dns_servers }} " - "netcfg/get_nameservers={{ dns_servers }} "
- "netcfg/hostname={{ environment.vm_name }} " - "netcfg/hostname={{ vm_name }} "
- "mirror/http/proxy={{ environment.proxy}} " - "mirror/http/proxy={{ proxy}} "
- "passwd/user-fullname={{ environment.user }} " - "passwd/user-fullname={{ user }} "
- "passwd/username={{ environment.user_fullname }} " - "passwd/username={{ user_fullname }} "
- "passwd/user-password= {{ environment.user_password }} " - "passwd/user-password= {{ user_password }} "
- "passwd/user-password-again= {{ environment.user_password }} " - "passwd/user-password-again= {{ user_password }} "
- "passwd/root-password={{ environment.root_password }} " - "passwd/root-password={{ root_password }} "
- "passwd/root-password-again={{ environment.root_password }} " - "passwd/root-password-again={{ root_password }} "
- "no_proxy={% raw %}{{ .HTTPIP }}{% endraw %},{{ environment.no_proxy }} " - "no_proxy=%< .HTTPIP >%,{{ no_proxy }} "
- "<enter>" - "<enter>"
disk_size: "{{ environment.disk_size }}" disk_size: "{{ disk_size }}"
http_directory: "http" http_directory: "http"
provisioners: provisioners:
- type: file - type: file
source: "system/etc/apt/sources.list_{{ environment.ubuntu_codename }}" source: "system/etc/apt/sources.list_{{ ubuntu_codename }}"
destination: "/etc/apt/sources.list" destination: "/etc/apt/sources.list"
- type: file - type: file
......
...@@ -11,8 +11,8 @@ packer: ...@@ -11,8 +11,8 @@ packer:
iso_checksum_type: none iso_checksum_type: none
iso_checksum_url: none iso_checksum_url: none
disk_image: True disk_image: True
ssh_username: "{{ environment.ssh_username }}" ssh_username: "{{ ssh_username }}"
ssh_password: "{{ environment.root_password }}" ssh_password: "{{ root_password }}"
shutdown_command: "shutdown -P now" shutdown_command: "shutdown -P now"
provisioners: provisioners:
...@@ -22,4 +22,3 @@ packer: ...@@ -22,4 +22,3 @@ packer:
- type: file - type: file
source: system/etc/ntp.conf source: system/etc/ntp.conf
destination: /etc/ntp.conf destination: /etc/ntp.conf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment