Skip to content

Instantly share code, notes, and snippets.

@robinbowes
Created June 20, 2012 10:01
Show Gist options
  • Save robinbowes/2959170 to your computer and use it in GitHub Desktop.
Save robinbowes/2959170 to your computer and use it in GitHub Desktop.
I want to define this in YAML:
ListenIP => '1.2.3.4',
ServerAlias => ['example.com', 'foo.example.com'],
config => 'DocumentRoot /var/www/sites/example
<Directory /var/www/sites/example/>
AllowOverride None
Options +Indexes
</Directory>'
I've got this far:
resources:
apache::website::instance:
'www.example.com':
ListenIP: '1.2.3.4'
ServerAlias:
- 'example.com'
- 'foo.example.com'
config: |-
DocumentRoot /var/www/sites/example
<Directory /var/www/sites/example/>
AllowOverride None
Options +Indexes
</Directory>"
Is that how arrays are defined?
How is multi-line text defined?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment