Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
8c36684e
Commit
8c36684e
authored
Feb 24, 2015
by
Seth Vargo
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1846 from lalyos/patch-1
docs/templates: add note about escaping
parents
06e73691
68a94f9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
website/source/docs/templates/configuration-templates.html.markdown
...urce/docs/templates/configuration-templates.html.markdown
+19
-0
No files found.
website/source/docs/templates/configuration-templates.html.markdown
View file @
8c36684e
...
@@ -121,6 +121,25 @@ isotime = June 7, 7:22:43pm 2014
...
@@ -121,6 +121,25 @@ isotime = June 7, 7:22:43pm 2014
{{
isotime
"Hour15Year200603"
}}
= Hour19Year201407
{{
isotime
"Hour15Year200603"
}}
= Hour19Year201407
```
```
Please note that double quote characters need escaping inside of templates:
```
javascript
{
"
builders
"
:
[
{
"
type
"
:
"
amazon-ebs
"
,
"
access_key
"
:
"
...
"
,
"
secret_key
"
:
"
...
"
,
"
region
"
:
"
us-east-1
"
,
"
source_ami
"
:
"
ami-de0d9eb7
"
,
"
instance_type
"
:
"
t1.micro
"
,
"
ssh_username
"
:
"
ubuntu
"
,
"
ami_name
"
:
"
packer {{isotime
\"
2006-01-02
\"
}}
"
}
]
}
```
## Amazon Specific Functions
## Amazon Specific Functions
Specific to Amazon builders:
Specific to Amazon builders:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment