-
Notifications
You must be signed in to change notification settings - Fork 1
Configuration
jaybuff edited this page Mar 10, 2011
·
2 revisions
Joot looks for the config file in these locations and uses the first file it finds:
- File pointed to by the environment variable
JOOT_CONFIG -
~/.jootwhere~denotes the user's home directory /etc/joot.cfg
| setting | default | description |
|---|---|---|
| joot_home | /var/joot | images and joots go here, so make sure this location has plenty of free space |
| sockets_dir | /var/run/joot | joot sometimes needs to create unix domain sockets. Those go here. |
| image_sources | none | array of URLs to index files pointing to images. See Publishing Images for a description of the index files |
| copy_from_root | none | array of files to be copied into the joot from the root at create time |
| pass_thru_env | none | joot will escalate to root (by calling sudo) for you. It will pass these environment variables to the cmd that sudo executes with the env cmd |
| plugins | none | See the Plugins documentation |
The config file format is "relaxed" JSON, which means it allows for shell-style '#'-comments and lists with trailing commas.
{
"joot_home": "/var/joot/",
"sockets_dir": "/var/run/joot/",
"image_sources": [
"http://getjoot.org/images/index.js",
],
"copy_from_root": [
"/etc/resolv.conf",
"/etc/localtime"
],
"pass_thru_env": [ "SSH_AUTH_SOCK", "JOOT_CONFIG" ],
"plugins": [
"QCOW",
"BindMount",
"Users",
"SudoUsers"
]
}