Last active
October 5, 2019 08:18
-
-
Save dev-gwang/28e5c8eef967195578fca812a6f0eca1 to your computer and use it in GitHub Desktop.
CHEF kitchen test 사용 방법 정리
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
driver: | |
name: vagrant | |
driver_config: | |
box: centos/7 | |
# box_url: http:// | |
auto_update: false | |
Description: > | |
1. box_url | |
Box URL 설정이 필요할 경우 URL을 작성한다. (개인 사설 서버를 사용할 경우 유용함) | |
cloud에 등록되어 있는 box를 사용한다면, box_url을 설정하지 않아도 사용 가능함 | |
2. auto_update = false | |
kitchen test가 동작하면서, 처음 운영체제를 업데이트하는 과정이 기본으로 포함되어 있는데 | |
이를 수행하지 않도록 변경함 | |
provisioner: | |
name: chef_solo | |
verifier: | |
name: inspec | |
platforms: | |
- name: test-kitchen | |
run_list: | |
- recipe[python-cookbook::install-manage] | |
driver_config: | |
# ssh: | |
# port: "22" | |
# transport: | |
# - ["ssh", {port: "22"}] | |
customize: | |
memory: 2048 | |
cpus: 1 | |
network: | |
- ["private_network", {ip: "192.168.56.100"}] | |
driver: | |
provision: true | |
suites: | |
- name: python | |
run_list: [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment