update ansible tests to use wheezy

This commit is contained in:
Billie Cleek 2016-11-26 19:13:36 -08:00
parent 4dd0f51b14
commit c1591a8efa
6 changed files with 12 additions and 27 deletions

View File

@ -4,13 +4,6 @@
{ {
"type": "shell-local", "type": "shell-local",
"command": "echo 'TODO(bhcleek): write the public key to $HOME/.ssh/known_hosts and stop using ANSIBLE_HOST_KEY_CHECKING=False'" "command": "echo 'TODO(bhcleek): write the public key to $HOME/.ssh/known_hosts and stop using ANSIBLE_HOST_KEY_CHECKING=False'"
}, {
"type": "shell",
"inline": [
"apt-get update",
"apt-get -y install python openssh-sftp-server",
"ls -l /usr/lib"
]
}, { }, {
"type": "ansible", "type": "ansible",
"playbook_file": "./playbook.yml", "playbook_file": "./playbook.yml",
@ -34,8 +27,8 @@
"account_file": "{{user `account_file`}}", "account_file": "{{user `account_file`}}",
"project_id": "{{user `project_id`}}", "project_id": "{{user `project_id`}}",
"image_name": "packerbats-alloptions-{{timestamp}}", "image_name": "packerbats-alloptions-{{timestamp}}",
"source_image": "debian-7-wheezy-v20141108", "source_image": "debian-8-jessie-v20161027",
"zone": "us-central1-a", "zone": "us-central1-a",
"ssh_username": "root" "ssh_username": "debian"
}] }]
} }

View File

@ -12,9 +12,9 @@
"account_file": "{{user `account_file`}}", "account_file": "{{user `account_file`}}",
"project_id": "{{user `project_id`}}", "project_id": "{{user `project_id`}}",
"image_name": "packerbats-minimal-{{timestamp}}", "image_name": "packerbats-minimal-{{timestamp}}",
"source_image": "debian-7-wheezy-v20141108", "source_image": "debian-8-jessie-v20161027",
"zone": "us-central1-a", "zone": "us-central1-a",
"ssh_username": "root" "ssh_username": "debian"
} }
] ]
} }

View File

@ -2,8 +2,8 @@
- hosts: default:packer-test - hosts: default:packer-test
gather_facts: no gather_facts: no
tasks: tasks:
- name: touch /root/ansible-raw-test - name: touch
raw: touch /root/ansible-raw-test raw: touch /tmp/ansible-raw-test
- name: raw test - name: raw test
raw: date raw: date
- name: command test - name: command test

View File

@ -16,9 +16,9 @@
"account_file": "{{user `account_file`}}", "account_file": "{{user `account_file`}}",
"project_id": "{{user `project_id`}}", "project_id": "{{user `project_id`}}",
"image_name": "packerbats-scp-to-sftp-{{timestamp}}", "image_name": "packerbats-scp-to-sftp-{{timestamp}}",
"source_image": "debian-7-wheezy-v20141108", "source_image": "debian-8-jessie-v20161027",
"zone": "us-central1-a", "zone": "us-central1-a",
"ssh_username": "root", "ssh_username": "debian",
"ssh_file_transfer_method": "sftp" "ssh_file_transfer_method": "sftp"
} }
] ]

View File

@ -16,9 +16,9 @@
"account_file": "{{user `account_file`}}", "account_file": "{{user `account_file`}}",
"project_id": "{{user `project_id`}}", "project_id": "{{user `project_id`}}",
"image_name": "packerbats-scp-{{timestamp}}", "image_name": "packerbats-scp-{{timestamp}}",
"source_image": "debian-7-wheezy-v20141108", "source_image": "debian-8-jessie-v20161027",
"zone": "us-central1-a", "zone": "us-central1-a",
"ssh_username": "root" "ssh_username": "debian"
} }
] ]
} }

View File

@ -2,14 +2,6 @@
"variables": {}, "variables": {},
"provisioners": [ "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", "type": "ansible",
"playbook_file": "./playbook.yml", "playbook_file": "./playbook.yml",
"sftp_command": "/usr/lib/sftp-server -e -l INFO", "sftp_command": "/usr/lib/sftp-server -e -l INFO",
@ -22,9 +14,9 @@
"account_file": "{{user `account_file`}}", "account_file": "{{user `account_file`}}",
"project_id": "{{user `project_id`}}", "project_id": "{{user `project_id`}}",
"image_name": "packerbats-sftp-{{timestamp}}", "image_name": "packerbats-sftp-{{timestamp}}",
"source_image": "debian-7-wheezy-v20141108", "source_image": "debian-8-jessie-v20161027",
"zone": "us-central1-a", "zone": "us-central1-a",
"ssh_username": "root" "ssh_username": "debian"
} }
] ]
} }