You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using hashicorp/packer container with a HCL file that contains token:
Setting domain_id (without domain_name) ask to remove it because is not required while using token
If neither domain_name or domain_id is used then error asking for one of them
If neither domain_name or domain_id is used but OS_DOMAIN_ID env var exported then is OK
Reproduction Steps
packer validate test.pkr.hcl
If domain_id = "default" + token = '...' then:
packer validate vault-raft.pkr.hcl
Error: 1 error(s) occurred:
* DomainID may not be provided when authenticating with a TokenID
on vault-raft.pkr.hcl line 1:
(source code not available)
If #domain_id = "default" = token = '...' then:
Error: 1 error(s) occurred:
* You must provide exactly one of DomainID or DomainName in a Scope with ProjectName
on vault-raft.pkr.hcl line 1:
(source code not available)
Overview of the Issue
Using hashicorp/packer container with a HCL file that contains
token
:domain_id
(withoutdomain_name
) ask to remove it because is not required while usingtoken
domain_name
ordomain_id
is used then error asking for one of themdomain_name
ordomain_id
is used butOS_DOMAIN_ID
env var exported then is OKReproduction Steps
If
domain_id = "default"
+token = '...'
then:If
#domain_id = "default"
=token = '...'
then:If
#domain_id = "default"
=token = '...'
+export OS_DOMAIN_ID=default
then:Plugin and Packer version
Simplified Packer Buildfile
test.pkr.hcl
file:Operating system and Environment details
Docker image
hashicorp/packer
running in GitlabCI runner ignoring the entrypointAlso tested in a Debian 11 laptop running the same Packer version.
The text was updated successfully, but these errors were encountered: