What happens if the ensure attribute fails for a resource?
Under the Attributes section, ensure is defined as:
ensure (Property: This attribute represents concrete state on the target system.)
The basic property that the resource should be in.
Valid values are present, absent.
I wanted to know what happens in case the resource is not already present? Will it be installed? For example, for a resource "mlocate", I want to ensure that it is present and if it is not, I want to do a "yum install mlocate". Is this something that "ensure" enables me to do?