Merge pull request #89 from robszumski/doc-write-files

feat(docs): include write_files example
This commit is contained in:
Michael Marineau 2014-04-29 11:26:44 -07:00
commit 96e1cb5a7a

View File

@ -293,6 +293,16 @@ The `write-file` parameter defines a list of files to create on the local filesy
Explicitly not implemented is the **encoding** attribute.
The **content** field must represent exactly what should be written to disk.
```
#cloud-config
write_files:
- path: /etc/fleet/fleet.conf
permissions: 0644
content: |
verbosity=1
metadata="region=us-west,type=ssd"
```
### manage_etc_hosts
The `manage_etc_hosts` parameter configures the contents of the `/etc/hosts` file, which is used for local name resolution.