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
4ab4dbac
Commit
4ab4dbac
authored
Sep 30, 2013
by
Matthew Hooker
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
5f196482
b00e3955
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
CHANGELOG.md
CHANGELOG.md
+3
-0
builder/digitalocean/api.go
builder/digitalocean/api.go
+1
-1
provisioner/chef-solo/provisioner.go
provisioner/chef-solo/provisioner.go
+2
-2
scripts/build.sh
scripts/build.sh
+3
-0
website/source/docs/builders/digitalocean.html.markdown
website/source/docs/builders/digitalocean.html.markdown
+0
-5
No files found.
CHANGELOG.md
View file @
4ab4dbac
...
...
@@ -4,8 +4,11 @@ BUG FIXES:
*
core: default user variable values don't need to be strings. [GH-456]
*
builder/amazon-chroot: Fix errors with waitin for state change. [GH-459]
*
builder/digitalocean: Use proper error message JSON key (DO API change).
*
communicator/ssh: SCP uploads now work properly when directories
contain symlinks. [GH-449]
*
provisioner/chef-solo: Data bags and roles path are now properly
populated when set. [GH-470]
## 0.3.8 (September 22, 2013)
...
...
builder/digitalocean/api.go
View file @
4ab4dbac
...
...
@@ -227,7 +227,7 @@ func NewRequest(d DigitalOceanClient, path string, params url.Values) (map[strin
}
if
status
==
"ERROR"
{
status
=
decodedResponse
[
"
error_
message"
]
.
(
string
)
status
=
decodedResponse
[
"message"
]
.
(
string
)
}
lastErr
=
errors
.
New
(
fmt
.
Sprintf
(
"Received error from DigitalOcean (%d): %s"
,
...
...
provisioner/chef-solo/provisioner.go
View file @
4ab4dbac
...
...
@@ -212,7 +212,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
rolesPath
:=
""
if
p
.
config
.
RolesPath
!=
""
{
rolesPath
:
=
fmt
.
Sprintf
(
"%s/roles"
,
p
.
config
.
StagingDir
)
rolesPath
=
fmt
.
Sprintf
(
"%s/roles"
,
p
.
config
.
StagingDir
)
if
err
:=
p
.
uploadDirectory
(
ui
,
comm
,
rolesPath
,
p
.
config
.
RolesPath
);
err
!=
nil
{
return
fmt
.
Errorf
(
"Error uploading roles: %s"
,
err
)
}
...
...
@@ -220,7 +220,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
dataBagsPath
:=
""
if
p
.
config
.
DataBagsPath
!=
""
{
dataBagsPath
:
=
fmt
.
Sprintf
(
"%s/data_bags"
,
p
.
config
.
StagingDir
)
dataBagsPath
=
fmt
.
Sprintf
(
"%s/data_bags"
,
p
.
config
.
StagingDir
)
if
err
:=
p
.
uploadDirectory
(
ui
,
comm
,
dataBagsPath
,
p
.
config
.
DataBagsPath
);
err
!=
nil
{
return
fmt
.
Errorf
(
"Error uploading data bags: %s"
,
err
)
}
...
...
scripts/build.sh
View file @
4ab4dbac
...
...
@@ -92,3 +92,6 @@ for PLUGIN in $(find ./plugin -mindepth 1 -maxdepth 1 -type d); do
done
waitAll
# Reset signal trapping to avoid "Terminated: 15" at the end
trap
- SIGINT SIGTERM EXIT
website/source/docs/builders/digitalocean.html.markdown
View file @
4ab4dbac
...
...
@@ -35,11 +35,6 @@ Required:
Optional:
*
`event_delay`
(string) - The delay, as a duration string, before checking
the status of an event. DigitalOcean's current API has consistency issues
where events take time to appear after being created. This defaults to "5s"
and generally shouldn't have to be changed.
*
`image_id`
(int) - The ID of the base image to use. This is the image that
will be used to launch a new droplet and provision it. Defaults to "284203",
which happens to be "Ubuntu 12.04 x64 Server."
...
...
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