Skip to content

Instantly share code, notes, and snippets.

@hlx98007
Created October 27, 2015 15:10
Show Gist options
  • Save hlx98007/3f322c804001df4c4f43 to your computer and use it in GitHub Desktop.
Save hlx98007/3f322c804001df4c4f43 to your computer and use it in GitHub Desktop.
---
driver:
name: opennebula
opennebula_endpoint: http://10.236.31.240/zone
oneauth_file: /tmp/auth
template_name: CHEF-TESTVM
vm_hostname: chef-testvm-001
public_key_path: /root/.ssh/id_rsa.pub
username: local
memory: 4096
user_variables:
CHEF_INSTALL_URL: "http://10.13.12.1/~chef/chef-client.deb"
ROOT: "http://10.13.12.5/~lab/chef/"
require_chef_omnibus: false
provisioner:
name: chef_solo
solo_rb:
ssl_verify_mode: verify_peer
environments_path: /mnt/desktop/workspace/init/environments/
roles_path: /mnt/desktop/workspace/init/roles/
platforms:
- name: ubuntu-12.04
suites:
- name: default
data_bags_path: /mnt/desktop/workspace/databags/data_bags/
provisioner:
run_list:
- recipe[test-kitchen]
attributes:
@hlx98007
Copy link
Author

I changed the above file to

---
driver:
  name: opennebula
  opennebula_endpoint: http://10.236.31.240/zone
  oneauth_file: /tmp/auth
  template_name: CHEF-TESTVM
  vm_hostname: chef-testvm-001
  public_key_path: /root/.ssh/id_rsa.pub
  username: local
  memory: 4096
  user_variables:
    CHEF_INSTALL_URL: "http://10.13.12.1/~chef/chef-client.deb"
    ROOT: "http://10.13.12.5/~lab/chef/"
  require_chef_omnibus: false

provisioner:
  name: chef_solo
  ssl_verify_mode: verify_peer
  environments_path: /mnt/desktop/workspace/init/environments/
  roles_path: /mnt/desktop/workspace/init/roles/

platforms:
  - name: ubuntu-12.04

suites:
  - name: default
    data_bags_path: /mnt/desktop/workspace/databags/data_bags/
    run_list:
       - recipe[test-kitchen]
    attributes:

This works. Removed some empty variables and it is green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment