I have the following piece of manifest on Puppet Master :
exec { 'DatabaseCreation':
command => '/usr/bin/mysqladmin -u root --password="system" create gitHandson'
}
When I ran puppet agent --test on Puppet Agent, it gave the following error :
Notice: /Stage[main]/Deployment/Exec[DatabaseCreation]/returns: /usr/bin/mysqladmin: CREATE DATABASE failed; error: 'Can't create database 'gitHandson'; database exists'
Error: /usr/bin/mysqladmin -u root --password="system" create gitHandson returned 1 instead of one of [0]
Instead of giving error, it should ignore the error. For this purpose, we have 'ignore_failure' in Chef and 'ignore_errors' in Ansible. What is its Puppet equivalent?