Resolved FC034: Unused template variables

I pulled the on the fly configuration from the sentinel.rb file.
I used the attrubites already declaring it. It's more static but foodcritic and bats pass.
Resolved FC048: Prefer Mixlib::ShellOut

I converted the %x{blah} to Mixlib::ShellOut.new('blah')
Passed foodcritic and test-kitchen