This commit is contained in:
parent
91b2c473b6
commit
c1fcaf7cee
@ -58,10 +58,7 @@ local PipelineDeployment = {
|
|||||||
},
|
},
|
||||||
commands: [
|
commands: [
|
||||||
"/bin/bash /docker-entrypoint.sh",
|
"/bin/bash /docker-entrypoint.sh",
|
||||||
"molecule create --scenario-name ec2-centos-7",
|
"molecule test --scenario-name ec2-centos-7",
|
||||||
"molecule converge --scenario-name ec2-centos-7",
|
|
||||||
"molecule verify --scenario-name ec2-centos-7",
|
|
||||||
"molecule destroy --scenario-name ec2-centos-7",
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -55,10 +55,7 @@ steps:
|
|||||||
image: xoxys/molecule:ec2-linux-amd64
|
image: xoxys/molecule:ec2-linux-amd64
|
||||||
commands:
|
commands:
|
||||||
- /bin/bash /docker-entrypoint.sh
|
- /bin/bash /docker-entrypoint.sh
|
||||||
- molecule create --scenario-name ec2-centos-7
|
- molecule test --scenario-name ec2-centos-7
|
||||||
- molecule converge --scenario-name ec2-centos-7
|
|
||||||
- molecule verify --scenario-name ec2-centos-7
|
|
||||||
- molecule destroy --scenario-name ec2-centos-7
|
|
||||||
environment:
|
environment:
|
||||||
ANSIBLE_ROLES_PATH: /drone/src
|
ANSIBLE_ROLES_PATH: /drone/src
|
||||||
AWS_ACCESS_KEY_ID:
|
AWS_ACCESS_KEY_ID:
|
||||||
@ -114,6 +111,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 245fb3cb141388467c22c1fb0949baf109e53f11a8bb5d1547fa156040e7e692
|
hmac: 2956b26d8b75957c13cbfb8873356b4cc6b8c9935fa8efa2148f4473a604096d
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -8,10 +8,14 @@ platforms:
|
|||||||
image: ami-04cf43aca3e6f3de3
|
image: ami-04cf43aca3e6f3de3
|
||||||
instance_type: t2.micro
|
instance_type: t2.micro
|
||||||
vpc_subnet_id: subnet-9b6896f1
|
vpc_subnet_id: subnet-9b6896f1
|
||||||
|
lint:
|
||||||
|
name: yamllint
|
||||||
|
enabled: False
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
lint:
|
lint:
|
||||||
name: ansible-lint
|
name: ansible-lint
|
||||||
|
enabled: False
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
lint:
|
lint:
|
||||||
|
@ -13,8 +13,8 @@ def test_docker_is_installed(host):
|
|||||||
docker = host.package("docker")
|
docker = host.package("docker")
|
||||||
assert docker.is_installed
|
assert docker.is_installed
|
||||||
|
|
||||||
|
|
||||||
def test_docker_running_and_enabled(host):
|
def test_docker_running_and_enabled(host):
|
||||||
docker = host.service("docker")
|
docker = host.service("docker")
|
||||||
assert docker.is_running
|
assert docker.is_running
|
||||||
assert docker.is_enabled
|
assert docker.is_enabled
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user