Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (7 sloc) 266 Bytes
#!/usr/bin/ruby
nodefile = ARGV[0]
nodefile =~ /(.*)\.compiled_catalog_with_files/
nodename = $1
`tar -xvPf #{nodefile}`
modulepath = File.open("#{nodename}.modulepath").readlines.first
`puppet --debug --apply #{nodename}.catalog.pson --modulepath #{modulepath}`