Commit Graph

2137 Commits

Author SHA1 Message Date
Megan Marsh b52ba4557e add some example json to windows restart_check_command 2017-11-07 16:00:40 -08:00
Matthew Hooker a26ce0c4a2
Merge pull request #5555 from cheeseprocedure/docs-communicator-ssh-agent
Website: add ssh_agent_auth to ssh communicator docs
2017-11-06 17:27:31 -08:00
Matthew Hooker 4c66c823d6
Merge pull request #5554 from briancain/update-vagrant-cloud-docs
Update vagrantcloud token page URL
2017-11-06 17:25:47 -08:00
Matt Mercer 733d5b65e5 Website: add ssh_agent_auth to ssh communicator docs 2017-11-06 15:46:13 -08:00
Matthew Hooker bdb2509735
Merge pull request #5475 from ChrisLundquist/lxd-publish-properties
[Lxd] publish properties
2017-11-06 15:45:56 -08:00
Matthew Hooker 60b013f5af
Merge pull request #5439 from pkilar/socks5_proxy
SOCKS5 proxy support
2017-11-06 15:43:09 -08:00
Brian Cain d0c1d118ea Update vagrantcloud token page URL 2017-11-06 15:39:57 -08:00
Matthew Hooker 0172a5c82b
Merge pull request #5511 from hashicorp/fix5507
remove login_email from docker
2017-11-06 15:34:04 -08:00
James Nugent fdd9b952d1
Merge pull request #5538 from stack72/triton-image-data-source
builder/triton: Add a data source for source_machine_image
2017-11-02 15:33:22 -05:00
stack72 7776bf596b builder/triton: Add a data source for source_machine_image
fixes: #5476

Based on this new template addition:

```
{
    "variables": {
        "image_version": "",
        "triton_account": "",
        "triton_key_id": "",
        "triton_key_material": ""
    },
    "builders": [{
        "type": "triton",
        "triton_account": "{{user `triton_account`}}",
        "triton_key_id": "{{user `triton_key_id`}}",
        "triton_key_material": "{{user `triton_key_material`}}",
        "source_machine_package": "g4-highcpu-128M",
        "source_machine_image_filter": {
          "name": "ubuntu-16.04",
          "most_recent": "true"
        },
        "ssh_username": "root",
        "image_version": "{{user `image_version`}}",
        "image_name": "teamcity-server"
    }],
    "provisioners": [
        {
            "type": "shell",
            "start_retry_timeout": "10m",
            "inline": [
                "sudo apt-get update -y",
                "sudo apt-get install -y nginx"
            ]
        }
    ]
}

```

I got the following output from packer:

```
packer-testing % make image
packer build \
		-var "triton_account=stack72_joyent" \
		-var "triton_key_id=40:9d:d3:f9:0b:86:62:48:f4:2e:a5:8e:43:00:2a:9b" \
		-var "triton_key_material=""" \
		-var "image_version=1.0.0" \
		new-template.json
triton output will be in this color.

==> triton: Selecting an image based on search criteria
==> triton: Based, on given search criteria, Machine ID is: "7b5981c4-1889-11e7-b4c5-3f3bdfc9b88b"
==> triton: Waiting for source machine to become available...
==> triton: Waiting for SSH to become available...
==> triton: Connected to SSH!
==> triton: Provisioning with shell script: /var/folders/_p/2_zj9lqn4n11fx20qy787p7c0000gn/T/packer-shell797317310
    triton: Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
    triton: Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
```

I can verify from the triton cli tools that the id `7b5981c4` (from the packer output) is indeed the correct ID

```
terraform [master●] % triton images name=~ubuntu-16.04
SHORTID   NAME          VERSION   FLAGS  OS     TYPE        PUBDATE
49b22aec  ubuntu-16.04  20160427  P      linux  lx-dataset  2016-04-27
675834a0  ubuntu-16.04  20160505  P      linux  lx-dataset  2016-05-05
4edaa46a  ubuntu-16.04  20160516  P      linux  lx-dataset  2016-05-16
05140a7e  ubuntu-16.04  20160601  P      linux  lx-dataset  2016-06-01
e331b22a  ubuntu-16.04  20161004  P      linux  lx-dataset  2016-10-04
8879c758  ubuntu-16.04  20161213  P      linux  lx-dataset  2016-12-13
7b5981c4  ubuntu-16.04  20170403  P      linux  lx-dataset  2017-04-03 <------- THIS IS THE LATEST UBUNTU IMAGE
```
2017-11-02 16:10:16 +02:00
Lawrence 5509d0734b Added ipv6 option for digitalocean builder
the ipv6 option is already part of the godo package

Updated documentation to reflect new feature

Closes: https://github.com/hashicorp/packer/issues/5533
2017-11-01 15:41:25 -04:00
Matthew Hooker f64fa7b5ba
Merge pull request #5491 from BenPhegan/hyperv-disk_additional_size
Hyper-V disk_additional_size capability
2017-10-31 08:42:07 -07:00
Matthew Hooker 26c7188cf3
add community tools links from @geerlingguy 2017-10-25 14:53:18 -07:00
Matthew Hooker 1901c0385f
remove login_email from docker
adds fixer
removes documentation
removes from docker builder and docker-push pp
2017-10-25 10:53:06 -07:00
Manoj dbeb48a993 Update wording on manifest behaviour on build rerun 2017-10-24 11:27:22 +05:30
Matthew Hooker bd5d1fc53a
fix formatting; 2017-10-23 09:39:25 -07:00
Matthew Hooker f07b791a3f
revert eol whitespace changes 2017-10-23 09:29:03 -07:00
Ben Phegan 12fc928e1d Initial commit of Hyper-V disk_additional_size capability. Support a
maximum of 64 disks added to the SCSI controller.  Implement #4823.
2017-10-23 08:26:35 +11:00
Matthew Hooker b942c27b21
remove end of line spaces 2017-10-21 20:13:47 -07:00
SwampDragons 1563fb97c7 Merge pull request #5463 from atsushi-ishibashi/issue5323
Add clean_image_name for gcp
2017-10-20 14:16:11 -07:00
Megan Marsh 4721b48c70 add a couple of extra tests and reword documentation 2017-10-20 14:06:02 -07:00
Atsushi Ishibashi c3a00993d0 Don't truncate and replace with 'a', update docs 2017-10-19 10:45:48 +09:00
Chris Lundquist 76f0176f5e [lxd] add docs on publish properties 2017-10-18 05:05:46 +00:00
Matthew Hooker c4e83fc928 Merge pull request #5470 from aaron0browne/ecr-login-profile
Add aws_profile option to docker-push ecr_login
2017-10-17 16:07:05 -07:00
SwampDragons 940ebe0ddc Merge pull request #5473 from mprince/puppetdocs
Arguments sorting for Puppet provisioners docs
2017-10-17 13:14:08 -07:00
Matthew Hooker 265ae7026e
docs formatting 2017-10-17 11:29:11 -07:00
Marcel Prince 8244d8bfb9 Arguments sorting for Puppet provisioners docs 2017-10-17 08:25:40 -07:00
Matthew Hooker f73fbd81d2 Merge pull request #5469 from mayn/issue-5468
docs: reference generic integer/boolean datatype across docs
2017-10-16 16:30:28 -07:00
Aaron Browne 8df643c343 Add aws_profile option to docker-push ecr_login
An aws_profile option is added to the AWS ECR login credentials
configuration to allow using shared AWS credentials stored in
a non-default profile.

Signed-off-by: Aaron Browne <aaron0browne@gmail.com>
2017-10-16 16:55:34 -04:00
Matthew Hooker 8585e0ebf5
doc improvements 2017-10-16 13:27:26 -07:00
Matthew Hooker 6837bf8276
grammar and style fix 2017-10-16 13:04:53 -07:00
Matthew Hooker 178bdf1dbe Merge pull request #5460 from teadur/patch-1
Update documentation to avoid confusion
2017-10-16 13:03:23 -07:00
SwampDragons 734acd9935 Merge branch 'master' into examples-docs 2017-10-16 12:07:05 -07:00
Atsushi Ishibashi c22c7238ac Add doc 2017-10-17 04:05:18 +09:00
Matthew Aynalem 1967c4bc81 docs correct datatype inconsistencies int/integer => number (issue #5468) 2017-10-16 11:30:23 -07:00
Matthew Aynalem 3716effa75 docs: correct datatype inconsistencies bool => boolean (issue #5468) 2017-10-16 09:19:59 -07:00
DanHam c9e6ffa91c Add warning note about using the 'winrm quickconfig -q' command
A lot of examples out there on the web make use of this command to
configure the instance to allow connections over WinRM. Since the
danger is not immediately obvious and the failure because of its use
intermittent, we should do our best to advise against its use here.
2017-10-16 03:11:00 +01:00
DanHam 26319ee74b Additional explanations possibly needed by a user new to Packer or AWS 2017-10-16 03:10:52 +01:00
DanHam 400f210dc2 Set region to use user configured variable 2017-10-15 18:22:38 +01:00
DanHam 69393ef9bb No need to set execution policy. AWS default is unrestricted 2017-10-15 18:22:38 +01:00
DanHam 6d4e8ab583 Suggest Windows 2008 and 2016 and add name filter 2017-10-15 18:22:38 +01:00
DanHam e1d88ffaab Export of AWS creds for users who skipped over the GNU/Linux example 2017-10-15 18:22:38 +01:00
DanHam 10af3770c7 New sample output to match changes 2017-10-15 18:22:38 +01:00
DanHam 5eb68e0573 GNU to make a happy RMS 2017-10-15 18:22:13 +01:00
DanHam dc45bd381c Manually set up all required for remote management. Use in-built FW rules
Use of 'winrm quickconfig' can sometimes cause the Packer build to fail
shortly after the WinRM connection is established.

* When executed the 'winrm quickconfig -q' command configures the
  firewall to allow management messages to be sent over HTTP (port 5985)
* This undoes the previous command in the script that configured the
  firewall to prevent this access.
* The upshot is that the system is configured and ready to accept WinRM
  connections earlier than intended.
* If Packer establishes its WinRM connection immediately after execution
  of the 'winrm quickconfig -q' command, the later commands within the
  script that restart the WinRM service cause the established
  connection, and consequently, the overall build to fail.
2017-10-15 18:20:28 +01:00
DanHam e4985ae6f6 Set to use a basic Windows source AMI that qualifies for free tier usage 2017-10-15 18:20:11 +01:00
DanHam ed0a60bd61 Fix quotes. Use Write-Host in preference to Write-Output 2017-10-15 18:16:40 +01:00
DanHam 1b8238e35f Fix missing powershell tags around User Data script 2017-10-15 18:16:40 +01:00
DanHam 9daabf3b12 Fix some typo's; Fix markdown and formatting 2017-10-15 18:16:40 +01:00
Charlie Egan 159785e7b0 Fix build image section fenced example formatting 2017-10-15 16:49:56 +01:00