Day 24 in the #vDM30in30 Image from https://flic.kr/p/DY38HH
So, we’ve talked about how the RAL is a getter and setter, but let’s talk about a lesser known feature of puppet that uses the RAL: The puppet resource command.
The puppet resource command is basically a CLI for the RAL. Hey, it used to even be called “ralsh”, for RAL Shell.
What it’s doing is using that instances method from before, and running it on the system, and returning the current state as valid Puppet code.