https://github.com/jedi4ever/puppet-codeblock
Execute abritrary codeblocks in Puppet
https://github.com/jedi4ever/puppet-codeblock
Last synced: about 2 months ago
JSON representation
Execute abritrary codeblocks in Puppet
- Host: GitHub
- URL: https://github.com/jedi4ever/puppet-codeblock
- Owner: jedi4ever
- Created: 2012-04-04T09:29:47.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-04-04T09:35:21.000Z (about 13 years ago)
- Last Synced: 2025-01-18T09:30:38.799Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 79.1 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Experiment to execute an arbitrary codeblock in puppet
It's inspired on ruby_block in chef. It feels handy . But I might be totally wrong
Or so it brings a bit chef into puppet.codeblock { "stuff we do around here":
code => 'puts "blabla"'
}Or use a template as a code file
codeblock { "template stuff we do around here":
provider => 'ruby',
code => template("mymodule/awesome.rb")
}**Highly experimental..**