Skip to content

Instantly share code, notes, and snippets.

@hcoyote
Created September 19, 2012 16:02
Show Gist options
  • Save hcoyote/3750494 to your computer and use it in GitHub Desktop.
Save hcoyote/3750494 to your computer and use it in GitHub Desktop.
example usage of ops::install_file
# this calls ops::install_file to install each file in our directory defined in
# ops::install_file ... in our case, /usr/local/ops/bin by default.
class ops::mysql_scripts {
ops::install_file{[
"mye",
"mysql-init",
"mysql-vars",
]:}
}
# in our ops class, we have ops/templates/<some path structure>. We just stick our
# scripts in there and invoke. We have hundreds of scripts. This has caused a significant
# amount of runtime speedup for us.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment