Created
September 19, 2012 16:02
-
-
Save hcoyote/3750494 to your computer and use it in GitHub Desktop.
example usage of ops::install_file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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