Skip to content

Instantly share code, notes, and snippets.

@changtimwu
Created January 19, 2012 08:46
Show Gist options
  • Select an option

  • Save changtimwu/1638825 to your computer and use it in GitHub Desktop.

Select an option

Save changtimwu/1638825 to your computer and use it in GitHub Desktop.
an example setting file in yaml format
#simple key value
ip: 192.168.12.33
dmac: '55:33:44:22:11'
#array
hwifs:
- eth0
- eth1
- en2
monthes:
- jan
- feb
- march
- aprial
trunking_groups:
- groupid: 1
members: [1,2,3]
- groupid: 2
members: [4,5,6]
#hash
mtd0:
size: 30000
offset: 0x80000
name: 'kernel'
shop:
name: 'burger king'
address: 'victory st. east road'
#array in hash
dishes1:
- soda
- pepsi
- burger
#hash in array in hash
dishes2:
- name: soda
price: 30
- name: pepsi
price: 40
- name: burger
price: 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment