Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "variables": {
- "ssh_keypair_name": "staging-0.1",
- "ssh_username": "ubuntu",
- "aws_subnet_id": "{{env `AWS_SUBNET_ID`}}",
- "aws_vpc_id": "{{env `AWS_VPC_ID`}}",
- "aws_region": null,
- "aws_instance_type": null,
- "aws_source_ami": null,
- "aws_target_ami": null,
- "aws_associate_public_ip_address": "false",
- "aws_enhanced_networking": "false",
- "appversion": "",
- "build_host": "",
- "repository": "",
- "package_type": "",
- "packages": "",
- "upgrade": "",
- "configDir": null
- },
- "builders": [{
- "type": "amazon-ebs",
- "ssh_keypair_name": "staging-0.1",
- "ssh_username": "ubuntu",
- "subnet_id": "{{user `aws_subnet_id`}}",
- "vpc_id": "{{user `aws_vpc_id`}}",
- "region": "{{user `aws_region`}}",
- "ssh_pty": true,
- "instance_type": "{{user `aws_instance_type`}}",
- "source_ami": "{{user `aws_source_ami`}}",
- "ami_name": "{{user `aws_target_ami`}}",
- "associate_public_ip_address": "{{user `aws_associate_public_ip_address`}}",
- "enhanced_networking": "{{user `aws_enhanced_networking`}}",
- "tags": {
- "appversion": "{{user `appversion`}}",
- "build_host": "{{user `build_host`}}",
- "build_info_url": "{{user `build_info_url`}}"
- },
- "run_tags": {"Packages": "{{user `packages`}}"}
- }],
- "provisioners": [{
- "type": "shell",
- "script": "{{user `configDir`}}/install_packages.sh",
- "environment_vars": [
- "repository={{user `repository`}}",
- "package_type={{user `package_type`}}",
- "packages={{user `packages`}}",
- "upgrade={{user `upgrade`}}"
- ],
- "pause_before": "30s"
- }]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement