Skip to content

Instantly share code, notes, and snippets.

@larstobi
Created September 14, 2012 11:47
Show Gist options
  • Select an option

  • Save larstobi/3721468 to your computer and use it in GitHub Desktop.

Select an option

Save larstobi/3721468 to your computer and use it in GitHub Desktop.
# Old style
node 'app_portal' {
class {
'portal::foo':
db_host => $db_host;
'portal::bar':
require => Class['portal::foo'];
}
}
node 'portal123.domain' inherits 'app_portal' {
class {
'blahblah':
baz => 'qux';
}
}
---
# Newstyle
classes:
- 'portal::foo'
- 'portal::bar'
- 'blahblah'
db_host: 'db123.domain'
baz: 'quz'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment