Skip to content

Instantly share code, notes, and snippets.

@dcarley
Last active December 19, 2015 02:29
Show Gist options
  • Save dcarley/5883522 to your computer and use it in GitHub Desktop.
Save dcarley/5883522 to your computer and use it in GitHub Desktop.
Puppet dependency patterns
class foo {
anchor { "${title}::begin": } ->
class { "${title}::one": } ->
class { "${title}::two": } ->
anchor { "${title}::end": }
}
class foo::one {
notify { $title: }
}
class foo::two {
notify { $title: }
}
class x {
notify { $title: }
}
class y {
notify { $title: }
}
class { 'x': } ->
class { 'foo': } ->
class { 'y': }
class foo {
class { "${title}::one": } ->
class { "${title}::two": } ->
Class[$title]
}
class foo::one {
notify { $title: }
}
class foo::two {
notify { $title: }
}
class x {
notify { $title: }
}
class y {
notify { $title: }
}
class { 'x': } ->
class { 'foo': } ->
class { 'y': }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment