Adrien Delorme
e0e6b0b8f7
builder.cloudstack: use c.Comm for ssh
2018-08-29 14:40:33 +02:00
Adrien Delorme
51d2aac9f6
SSHPrivateKey => SSHPrivateKeyFile
2018-08-29 14:40:32 +02:00
Adrien Delorme
41f6e0334d
refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc
...
* still need to append the auth methods into an array for gracefullness
2018-08-22 17:02:23 +02:00
Sergio Millan Rodriguez
befdb59da6
renaming public_ssh_port to public_port
2018-08-22 10:17:46 +01:00
Sergio Millan Rodriguez
d90dfc096a
adding public_ssh_port flag to use a fixed port in the forwarding rules
2018-07-24 18:39:02 +01:00
Sergio Millan Rodriguez
f4020835d6
flag to setup networking without firewall rules
2018-07-16 13:06:51 +02:00
Sergio Millan Rodriguez
472a7820eb
Using UI keypair meaningful message
2018-07-16 11:39:15 +02:00
Sergio Millan Rodriguez
e729b21212
passing projectid to getRootVolumeID rather than the whole config struct
2018-07-16 11:38:14 +02:00
Sergio Millan Rodriguez
a41a4658ee
make packer builder honour projectid setting if provided
2018-07-13 17:58:46 +02:00
Sergio Millan Rodriguez
eae0556dc5
Add option to enable/disable create firewall/acl rules
2018-07-13 17:58:39 +02:00
Josh Soref
466f0d2be4
spelling: firewall
2018-03-13 07:49:46 +00:00
Josh Soref
33bf6de921
spelling: exceeds
2018-03-13 07:46:49 +00:00
Matthew Hooker
7a189a83a1
fix imports
...
`find . -type f -name '*.go' -not -path "./vendor/*" -exec goimports -w {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
a831d522be
change run signatures
...
Run now takes a context as well as a statebag. We'll assign the context
to the blank identifier to prevent namespace collisions. We'll let the
step authors opt-in to using the context.
`find . -iname "step_*.go" -exec gsed -i'' 's/func \(.*\)Run(/func \1Run(_ context.Context, /' {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
366dc3da0a
move multistep imports to helper.
...
gomvpkg -from "github.com/mitchellh/multistep" -to "github.com/hashicorp/packer/helper/multistep"
2018-01-24 17:09:15 -08:00
Matthew Hooker
b42c916f9a
cloudstack: check that template was created
2017-09-26 13:36:53 -07:00
Rickard von Essen
516bf52115
Merge pull request #5173 from rickard-von-essen/cloudstack-fixes
...
cloudstack: Move ipaddress, host port, and source to statebag
2017-09-05 06:29:22 +02:00
Rickard von Essen
cad3978e6a
cloudstack: Updated after review
2017-08-31 12:00:29 -07:00
Rickard von Essen
1a1ab3863c
cloudstack: Add support for Security Groups
...
Adds two new options:
- `create_security_group` which automatically creates a temporary SG.
- `security_groups` which takes a list of SGs to attach to the instance.
2017-08-31 12:00:03 -07:00
Vijaya Bhaskar Reddy Kondreddi
e45223a867
Fix -on-error issue not working.
...
When we supply -on-error flag for Packer with Hyper-v builder, it does not do anything.
2017-09-01 00:14:28 +05:30
Rickard von Essen
858f1227af
cloudstack: Updated after review (2)
2017-07-27 21:32:47 +02:00
Rickard von Essen
26cd27dc7c
cloudstack: Updated after review
2017-07-26 21:34:11 +02:00
Rickard von Essen
2fea167294
cloudstack: Updated after review
2017-07-26 19:01:12 +02:00
Rickard von Essen
89dcc93f1c
cloudstack: Print instance password if debug mode
2017-07-26 07:38:05 +02:00
Rickard von Essen
fc964bfab2
cloudstack: Setup temporary SSH keypair
2017-07-26 07:38:05 +02:00
Rickard von Essen
1bf8a0c6a1
cloudstack: Move ipaddress and host port to state
2017-07-18 21:40:36 +02:00
Rickard von Essen
07fffd7cd5
cloudstack: moved instanceSource to statebag
2017-07-18 16:39:28 +02:00
Rickard von Essen
f47c41372e
cloudstack: Add support for ssh_agent_auth
2017-07-14 21:25:20 +02:00
Rickard von Essen
285b1391ae
Merge pull request #5123 from rickard-von-essen/cloudstack-err
...
cloudstack: Improved error reporting
2017-07-14 13:22:18 +02:00
Rickard von Essen
4a6d029554
Merge pull request #5125 from rickard-von-essen/cloudstack-cidr
...
cloudstack: Add default cidr_list [ 0.0.0.0/0 ]
2017-07-14 11:14:51 +02:00
Rickard von Essen
89b9b4c456
cloudstack: Add default cidr_list [ 0.0.0.0/0 ]
2017-07-14 11:12:41 +02:00
Rickard von Essen
62dac4a168
cloudstack: some updates after review
2017-07-14 11:09:21 +02:00
Rickard von Essen
0d7c3ac171
cloudstack: Allow reading api_url, api_key, and secret_key from env vars
...
If unset reads:
- `api_url` from `CLOUDSTACK_API_URL`
- `api_key` from `CLOUDSTACK_API_KEY`
- `secret_key` from `CLOUDSTACK_SECRET_KEY`
2017-07-14 07:34:11 +02:00
Rickard von Essen
44089b2f55
cloudstack: Improved error reporting
...
Ensure that errors are shown when they happens.
2017-07-14 07:11:37 +02:00
Sander van Harmelen
3f444997b2
Make expunge optional and improve logging output ( #5099 )
2017-07-07 10:54:58 +02:00
Sander van Harmelen
c4ef9bcd3f
Make sure we always print and return any errors
2017-07-06 23:31:13 +02:00
Lars Tobias Skjong-Børsting
c01f6d8708
builder/cloudstack: Support http server ( #5017 )
...
builder/cloudstack: Added docs for http server
Closes hashicorp/packer#4949
2017-07-06 11:59:02 +02:00
Yamashita, Yuu
ab4636ae0f
Explicitly specify `zoneid` in CloudStack's `associateIpAddress` call ( #4995 )
...
Generally speaking, this must be harmless since the IP address
and the virtual machine need to be deployed to the same zone.
2017-06-09 21:11:52 +02:00
Matthew Hooker
ee5d13611f
update ssh client usage for new crypto/ssh version
2017-05-18 12:01:44 -07:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Matthew Hooker
35578d9ed1
remove unnecessary type conversions
2017-03-28 20:36:21 -07:00
Rickard von Essen
8257c2dabd
Merge pull request #4172 from rickard-von-essen/default-ssh-user
...
ssh: Remove ssh_username default values
2016-11-17 22:40:09 +01:00
Rickard von Essen
96e9a8e6e9
Removed default value for ssh_username
2016-11-17 22:30:34 +01:00
Sander van Harmelen
285ff6940e
Revert some changes made in #4149 ( #4175 )
...
After some more research and testing it turns out we can support the use case where you want to reuse an associated IP address that already has port 22 or 5985 forwarded, by using a random public port.
The correct port to open in the firewall is different for the type of firewall used. The standard firewall requires the public port to be opened and the network ACL requires the private port to be opened.
So by partially reverting this code and updating which ports to open in which cases, we can support all use cases again.
2016-11-16 10:30:32 +01:00
Sander van Harmelen
68c6835bb5
Do not create a random public port ( #4149 )
...
This is meant to be a gentle solution for a very specific use case, but is causing more issues then it solves.
If you have a port conflict when trying to use an already associated public IP, the easiest way around it is to let the builder associate a new temporary public IP address.
2016-11-10 13:59:58 +01:00
nyankichi820
d1eadd91bb
Fix cloudstack builder ( #4139 )
...
* add zone id when associate ip address in cloudstack
* configure keypair
* fix bug firewall port
2016-11-10 13:21:08 +01:00
Sander van Harmelen
33f430bf25
Use the private port for the firewall rules ( #4114 )
...
Because of how CloudStack configures the firerwall on the router VM, you need to allow traffic to the private port instead of the public port.
2016-11-04 09:56:49 +01:00
Sander van Harmelen
dbf3bf56d4
Add a CloudStack Builder
2016-10-16 15:29:18 +02:00