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
7c8e86c9
Commit
7c8e86c9
authored
Jun 22, 2015
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provisioner/*: fix interpolation context
parent
5241d8c6
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
24 additions
and
13 deletions
+24
-13
provisioner/ansible-local/provisioner.go
provisioner/ansible-local/provisioner.go
+2
-1
provisioner/chef-client/provisioner.go
provisioner/chef-client/provisioner.go
+2
-1
provisioner/chef-solo/provisioner.go
provisioner/chef-solo/provisioner.go
+2
-1
provisioner/file/provisioner.go
provisioner/file/provisioner.go
+2
-1
provisioner/powershell/provisioner.go
provisioner/powershell/provisioner.go
+2
-1
provisioner/puppet-masterless/provisioner.go
provisioner/puppet-masterless/provisioner.go
+2
-1
provisioner/puppet-server/provisioner.go
provisioner/puppet-server/provisioner.go
+2
-2
provisioner/salt-masterless/provisioner.go
provisioner/salt-masterless/provisioner.go
+2
-1
provisioner/shell-local/provisioner.go
provisioner/shell-local/provisioner.go
+2
-1
provisioner/shell/provisioner.go
provisioner/shell/provisioner.go
+2
-1
provisioner/windows-restart/provisioner.go
provisioner/windows-restart/provisioner.go
+2
-1
provisioner/windows-shell/provisioner.go
provisioner/windows-shell/provisioner.go
+2
-1
No files found.
provisioner/ansible-local/provisioner.go
View file @
7c8e86c9
...
...
@@ -57,7 +57,8 @@ type Provisioner struct {
func
(
p
*
Provisioner
)
Prepare
(
raws
...
interface
{})
error
{
err
:=
config
.
Decode
(
&
p
.
config
,
&
config
.
DecodeOpts
{
Interpolate
:
true
,
Interpolate
:
true
,
InterpolateContext
:
&
p
.
config
.
ctx
,
InterpolateFilter
:
&
interpolate
.
RenderFilter
{
Exclude
:
[]
string
{},
},
...
...
provisioner/chef-client/provisioner.go
View file @
7c8e86c9
...
...
@@ -69,7 +69,8 @@ type InstallChefTemplate struct {
func
(
p
*
Provisioner
)
Prepare
(
raws
...
interface
{})
error
{
err
:=
config
.
Decode
(
&
p
.
config
,
&
config
.
DecodeOpts
{
Interpolate
:
true
,
Interpolate
:
true
,
InterpolateContext
:
&
p
.
config
.
ctx
,
InterpolateFilter
:
&
interpolate
.
RenderFilter
{
Exclude
:
[]
string
{
"execute_command"
,
...
...
provisioner/chef-solo/provisioner.go
View file @
7c8e86c9
...
...
@@ -73,7 +73,8 @@ type InstallChefTemplate struct {
func
(
p
*
Provisioner
)
Prepare
(
raws
...
interface
{})
error
{
err
:=
config
.
Decode
(
&
p
.
config
,
&
config
.
DecodeOpts
{
Interpolate
:
true
,
Interpolate
:
true
,
InterpolateContext
:
&
p
.
config
.
ctx
,
InterpolateFilter
:
&
interpolate
.
RenderFilter
{
Exclude
:
[]
string
{
"execute_command"
,
...
...
provisioner/file/provisioner.go
View file @
7c8e86c9
...
...
@@ -32,7 +32,8 @@ type Provisioner struct {
func
(
p
*
Provisioner
)
Prepare
(
raws
...
interface
{})
error
{
err
:=
config
.
Decode
(
&
p
.
config
,
&
config
.
DecodeOpts
{
Interpolate
:
true
,
Interpolate
:
true
,
InterpolateContext
:
&
p
.
config
.
ctx
,
InterpolateFilter
:
&
interpolate
.
RenderFilter
{
Exclude
:
[]
string
{},
},
...
...
provisioner/powershell/provisioner.go
View file @
7c8e86c9
...
...
@@ -99,7 +99,8 @@ type ExecuteCommandTemplate struct {
func
(
p
*
Provisioner
)
Prepare
(
raws
...
interface
{})
error
{
err
:=
config
.
Decode
(
&
p
.
config
,
&
config
.
DecodeOpts
{
Interpolate
:
true
,
Interpolate
:
true
,
InterpolateContext
:
&
p
.
config
.
ctx
,
InterpolateFilter
:
&
interpolate
.
RenderFilter
{
Exclude
:
[]
string
{
"execute_command"
,
...
...
provisioner/puppet-masterless/provisioner.go
View file @
7c8e86c9
...
...
@@ -66,7 +66,8 @@ type ExecuteTemplate struct {
func
(
p
*
Provisioner
)
Prepare
(
raws
...
interface
{})
error
{
err
:=
config
.
Decode
(
&
p
.
config
,
&
config
.
DecodeOpts
{
Interpolate
:
true
,
Interpolate
:
true
,
InterpolateContext
:
&
p
.
config
.
ctx
,
InterpolateFilter
:
&
interpolate
.
RenderFilter
{
Exclude
:
[]
string
{
"execute_command"
,
...
...
provisioner/puppet-server/provisioner.go
View file @
7c8e86c9
...
...
@@ -44,7 +44,6 @@ type Config struct {
// If true, packer will ignore all exit-codes from a puppet run
IgnoreExitCodes
bool
`mapstructure:"ignore_exit_codes"`
}
type
Provisioner
struct
{
...
...
@@ -63,7 +62,8 @@ type ExecuteTemplate struct {
func
(
p
*
Provisioner
)
Prepare
(
raws
...
interface
{})
error
{
err
:=
config
.
Decode
(
&
p
.
config
,
&
config
.
DecodeOpts
{
Interpolate
:
true
,
Interpolate
:
true
,
InterpolateContext
:
&
p
.
config
.
ctx
,
InterpolateFilter
:
&
interpolate
.
RenderFilter
{
Exclude
:
[]
string
{},
},
...
...
provisioner/salt-masterless/provisioner.go
View file @
7c8e86c9
...
...
@@ -44,7 +44,8 @@ type Provisioner struct {
func
(
p
*
Provisioner
)
Prepare
(
raws
...
interface
{})
error
{
err
:=
config
.
Decode
(
&
p
.
config
,
&
config
.
DecodeOpts
{
Interpolate
:
true
,
Interpolate
:
true
,
InterpolateContext
:
&
p
.
config
.
ctx
,
InterpolateFilter
:
&
interpolate
.
RenderFilter
{
Exclude
:
[]
string
{},
},
...
...
provisioner/shell-local/provisioner.go
View file @
7c8e86c9
...
...
@@ -29,7 +29,8 @@ type Provisioner struct {
func
(
p
*
Provisioner
)
Prepare
(
raws
...
interface
{})
error
{
err
:=
config
.
Decode
(
&
p
.
config
,
&
config
.
DecodeOpts
{
Interpolate
:
true
,
Interpolate
:
true
,
InterpolateContext
:
&
p
.
config
.
ctx
,
InterpolateFilter
:
&
interpolate
.
RenderFilter
{
Exclude
:
[]
string
{
"execute_command"
,
...
...
provisioner/shell/provisioner.go
View file @
7c8e86c9
...
...
@@ -73,7 +73,8 @@ type ExecuteCommandTemplate struct {
func
(
p
*
Provisioner
)
Prepare
(
raws
...
interface
{})
error
{
err
:=
config
.
Decode
(
&
p
.
config
,
&
config
.
DecodeOpts
{
Interpolate
:
true
,
Interpolate
:
true
,
InterpolateContext
:
&
p
.
config
.
ctx
,
InterpolateFilter
:
&
interpolate
.
RenderFilter
{
Exclude
:
[]
string
{
"execute_command"
,
...
...
provisioner/windows-restart/provisioner.go
View file @
7c8e86c9
...
...
@@ -43,7 +43,8 @@ type Provisioner struct {
func
(
p
*
Provisioner
)
Prepare
(
raws
...
interface
{})
error
{
err
:=
config
.
Decode
(
&
p
.
config
,
&
config
.
DecodeOpts
{
Interpolate
:
true
,
Interpolate
:
true
,
InterpolateContext
:
&
p
.
config
.
ctx
,
InterpolateFilter
:
&
interpolate
.
RenderFilter
{
Exclude
:
[]
string
{
"execute_command"
,
...
...
provisioner/windows-shell/provisioner.go
View file @
7c8e86c9
...
...
@@ -76,7 +76,8 @@ type ExecuteCommandTemplate struct {
func
(
p
*
Provisioner
)
Prepare
(
raws
...
interface
{})
error
{
err
:=
config
.
Decode
(
&
p
.
config
,
&
config
.
DecodeOpts
{
Interpolate
:
true
,
Interpolate
:
true
,
InterpolateContext
:
&
p
.
config
.
ctx
,
InterpolateFilter
:
&
interpolate
.
RenderFilter
{
Exclude
:
[]
string
{
"execute_command"
,
...
...
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