31 lines
755 B
JSON
31 lines
755 B
JSON
{
|
|
"variables": {},
|
|
"provisioners": [
|
|
{
|
|
"type": "shell",
|
|
"inline": [
|
|
"apt-get update",
|
|
"apt-get -y install python openssh-sftp-server",
|
|
"ls -l /usr/lib",
|
|
"#/usr/lib/sftp-server -?"
|
|
]
|
|
}, {
|
|
"type": "ansible",
|
|
"playbook_file": "./playbook.yml",
|
|
"sftp_command": "/usr/lib/sftp-server -e -l INFO",
|
|
"use_sftp": true
|
|
}
|
|
],
|
|
"builders": [
|
|
{
|
|
"type": "googlecompute",
|
|
"account_file": "{{user `account_file`}}",
|
|
"project_id": "{{user `project_id`}}",
|
|
|
|
"image_name": "packerbats-sftp-{{timestamp}}",
|
|
"source_image": "debian-7-wheezy-v20141108",
|
|
"zone": "us-central1-a"
|
|
}
|
|
]
|
|
}
|