Skip to content

Commit 191130f

Browse files
authored
Merge branch 'main' into feature/molecule-gce-additional-disks
2 parents 4d68251 + 1555b61 commit 191130f

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/molecule_plugins/docker/driver.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ def sanity_checks(self):
255255
self._passed_sanity = True
256256

257257
def reset(self):
258-
import docker
258+
# maybe use self.sanity_check instead?
259+
try:
260+
import docker
261+
except ImportError:
262+
return
259263

260264
client = docker.from_env()
261265
for c in client.containers.list(filters={"label": "owner=molecule"}):

src/molecule_plugins/gce/playbooks/tasks/create_linux_instance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
subnetwork:
2222
selfLink: "{{ gcp_snet }}"
2323
access_configs: "{{ [{'name': 'instance_ip', 'type': 'ONE_TO_ONE_NAT'}] if molecule_yml.driver.external_access else [] }}"
24+
tags: "{{ item.tags | default(omit) }}"
2425
zone: "{{ item.zone | default(molecule_yml.driver.region + '-b') }}"
2526
project: "{{ gcp_project_id }}"
2627
scopes: "{{ molecule_yml.driver.scopes | default(['https://www.googleapis.com/auth/compute'], True) }}"

src/molecule_plugins/gce/playbooks/tasks/create_windows_instance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
subnetwork:
1414
selfLink: "{{ gcp_snet }}"
1515
access_configs: "{{ [{'name': 'instance_ip', 'type': 'ONE_TO_ONE_NAT'}] if molecule_yml.driver.external_access else [] }}"
16+
tags: "{{ item.tags | default(omit) }}"
1617
zone: "{{ item.zone | default(molecule_yml.driver.region + '-b') }}"
1718
project: "{{ gcp_project_id }}"
1819
scopes: "{{ molecule_yml.driver.scopes | default(['https://www.googleapis.com/auth/compute'], True) }}"

test/vagrant-plugin/scenarios/molecule/box_url/molecule.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ driver:
88
platforms:
99
- name: instance
1010
box: centos/stream9
11-
box_url: "https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-Vagrant-9-20230704.1.x86_64.vagrant-libvirt.box"
12-
box_download_checksum: "8a9fe7e8083421047e5404131daa007b4c1bcc466f3d9b29d0e7c7e432891a0e"
11+
box_url: "https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-Vagrant-9-20240930.0.x86_64.vagrant-libvirt.box"
12+
box_download_checksum: "0dd55e0d6d1686181e3ad2636f942d5295be4c3d01e0e1c824fc02ec58728375"
1313
box_download_checksum_type: "sha256"
1414
provisioner:
1515
name: ansible

0 commit comments

Comments
 (0)