-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from yamamoto-febc/feature/hcl
packer v1.5.4: HCL対応
- Loading branch information
Showing
1,531 changed files
with
381,219 additions
and
53,855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
source "sakuracloud" "example" { | ||
zone = "is1b" | ||
|
||
os_type = "centos7" | ||
password = "TestUserPassword01" | ||
disk_size = 20 | ||
disk_plan = "ssd" | ||
|
||
core = 2 | ||
memory_size = 4 | ||
|
||
archive_name = "packer-example-centos" | ||
archive_description = "description of archive" | ||
} | ||
|
||
build { | ||
sources = [ | ||
"source.sakuracloud.example" | ||
] | ||
provisioner "shell" { | ||
inline = [ | ||
"yum update -y", | ||
"curl -fsSL https://get.docker.com/ | sh", | ||
"systemctl enable docker.service", | ||
] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
locals { | ||
password = "TestUserPassword01" | ||
} | ||
|
||
|
||
source "sakuracloud" "example" { | ||
zone = "is1b" | ||
|
||
os_type = "ubuntu" | ||
user_name = "ubuntu" | ||
password = local.password | ||
|
||
core = 2 | ||
memory_size = 4 | ||
|
||
archive_name = "packer-example-ubuntu" | ||
archive_description = "description of archive" | ||
} | ||
|
||
build { | ||
sources = [ | ||
"source.sakuracloud.example" | ||
] | ||
provisioner "shell" { | ||
execute_command = "echo '${local.password}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'" | ||
inline = [ | ||
"apt-get update -y", | ||
"apt-get install -y curl" | ||
] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,17 @@ | ||
module github.com/sacloud/packer-builder-sakuracloud | ||
|
||
require ( | ||
github.com/Azure/go-ntlmssp v0.0.0-20180810175552-4a21cbd618b4 // indirect | ||
github.com/ChrisTrenkamp/goxpath v0.0.0-20170625215350-4fe035839290 // indirect | ||
github.com/cheggaaa/pb v1.0.26 // indirect | ||
github.com/dylanmei/iso8601 v0.1.0 // indirect | ||
github.com/dylanmei/winrmtest v0.0.0-20190225150635-99b7fe2fddf1 // indirect | ||
github.com/hashicorp/consul v0.0.0-20181018204313-a06b825a2814 // indirect | ||
github.com/hashicorp/go-checkpoint v0.0.0-20171009173528-1545e56e46de // indirect | ||
github.com/hashicorp/go-immutable-radix v1.1.0 // indirect | ||
github.com/hashicorp/go-msgpack v0.5.5 // indirect | ||
github.com/hashicorp/memberlist v0.1.4 // indirect | ||
github.com/hashicorp/packer v1.3.2 | ||
github.com/hashicorp/serf v0.0.0-20180907130240-48d579458173 // indirect | ||
github.com/hashicorp/vault/api v1.0.4 // indirect | ||
github.com/kr/fs v0.1.0 // indirect | ||
github.com/masterzen/azure-sdk-for-go v0.0.0-20161014135628-ee4f0065d00c // indirect | ||
github.com/masterzen/simplexml v0.0.0-20160608183007-4572e39b1ab9 // indirect | ||
github.com/masterzen/winrm v0.0.0-20180224160350-7e40f93ae939 // indirect | ||
github.com/mattn/go-colorable v0.1.2 // indirect | ||
github.com/mattn/go-runewidth v0.0.3 // indirect | ||
github.com/mitchellh/go-fs v0.0.0-20180402235330-b7b9ca407fff // indirect | ||
github.com/hashicorp/hcl/v2 v2.3.0 | ||
github.com/hashicorp/packer v1.5.4 | ||
github.com/mitchellh/go-vnc v0.0.0-20150629162542-723ed9867aed | ||
github.com/mitchellh/iochan v1.0.0 // indirect | ||
github.com/mitchellh/mapstructure v1.1.2 | ||
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect | ||
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58 // indirect | ||
github.com/pkg/errors v0.8.0 // indirect | ||
github.com/pkg/sftp v0.0.0-20160930220758-4d0e916071f6 // indirect | ||
github.com/sacloud/ftps v0.0.0-20171205062625-42fc0f9886fe | ||
github.com/sacloud/libsacloud/v2 v2.1.8 | ||
github.com/stretchr/testify v1.3.0 | ||
github.com/ugorji/go v0.0.0-20151218193438-646ae4a518c1 // indirect | ||
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 | ||
golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3 // indirect | ||
gopkg.in/cheggaaa/pb.v1 v1.0.28 // indirect | ||
github.com/stretchr/testify v1.4.0 | ||
github.com/zclconf/go-cty v1.2.1 | ||
golang.org/x/crypto v0.0.0-20200117160349-530e935923ad | ||
) | ||
|
||
replace github.com/zclconf/go-cty => github.com/azr/go-cty v1.1.1-0.20200203143058-28fcda2fe0cc | ||
|
||
go 1.13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:generate mapstructure-to-hcl2 -type Config | ||
|
||
package sakuracloud | ||
|
||
import ( | ||
|
Oops, something went wrong.