Day 23 in the #vDM30in30

Image from https://flic.kr/p/c5U1bW

So, previously we talked about the RAL as a Swan.

Let’s look at those legs kicking below the water.

RAL with a package installation

Let’s continue with our example of a resource on a system, a package called tree.

package {'tree':
  ensure => present,
}

Let’s look at how the RAL will manage this:

  • We’ve given the type as package.
  • I’m running this on a RHEL7 system, so the default provider is yum.
  • yum is a “child” provider of rpm: it uses the RPM command to check if the package is installed on the system.
  • This is a lot faster than running “yum info”, as it doesn’t make any internet calls, and won’t fail if a yumrepo is failing.
  • The install command however, will be yum install.

So previously we talked about how Puppet uses the RAL to both read and modify the state of resources on a system.

Peter Souter

Just some guy y’know?

Technical Account Manager

London, UK