Skip to content

Instantly share code, notes, and snippets.

View smortex's full-sized avatar
🌴
Eating 🥥 and ddrinking 🍹…

Romain Tartière smortex

🌴
Eating 🥥 and ddrinking 🍹…
View GitHub Profile
#!/opt/puppetlabs/puppet/bin/ruby
require "mcollective"
ddlfile = ARGV.shift
abort("Please specify an input DDL as argument") unless ddlfile
ddl = MCollective::DDL.new(File.basename(ddlfile, ".ddl"), :agent, false)
ddl.instance_eval(File.read(ddlfile))