In OSC provider version 1.1.3 when using omi name automatic reformatting functions as specified on packer docs:
mybuild-{{isotime | clean_resource_name}}" will become mybuild-2017-10-18t02-06-30z
will raise an error: function "clean_resource_name" not defined
Replacing clean_resource_name by the Outscale plugin recommended clean_omi_name raises an error: function "clean_omi_name" not defined.
Reproduction Steps
Create a packer configuration with the OSC provider version 1.1.3
Setup timestamp naming on the image name with: omi_name = "$my-base-name-{{isotime | clean_resource_name}}"
Use command 'packer validate .' to validate your build
This will rise an error
Now try with omi_name = "$my-base-name-{{isotime | clean_omi_name}}"
Use command 'packer validate .' to validate your build
This will rise an error
Error: invalid 'omi_name': template: root:1: function "clean_resource_name" not defined in:
worker-{{isotime | clean_resource_name}}
on packer/quetzal_img.pkr.hcl line 28:
(source code not available)
Error: invalid 'omi_name': template: root:1: function "clean_omi_name" not defined in:
worker-{{isotime | clean_omi_name}}
on packer/quetzal_img.pkr.hcl line 28:
(source code not available)
Set the env var `PACKER_LOG=1` for maximum log detail.
Overview of the Issue
In OSC provider version 1.1.3 when using omi name automatic reformatting functions as specified on packer docs:
mybuild-{{isotime | clean_resource_name}}" will become mybuild-2017-10-18t02-06-30z
will raise an error:function "clean_resource_name" not defined
Replacingclean_resource_name
by the Outscale plugin recommendedclean_omi_name
raises an error:function "clean_omi_name" not defined
.Reproduction Steps
Create a packer configuration with the OSC provider version 1.1.3 Setup timestamp naming on the image name with: omi_name = "$my-base-name-{{isotime | clean_resource_name}}" Use command 'packer validate .' to validate your build This will rise an error
Now try with omi_name = "$my-base-name-{{isotime | clean_omi_name}}" Use command 'packer validate .' to validate your build This will rise an error
Plugin and Packer version
From
packer version
1.9.4Simplified Packer Buildfile
Operating system and Environment details
CENTOS 7 Outscale VM
Log Fragments and crash.log files