Fix deprecation warnings

See arioch/puppet-percona/pull#32 but without all the extra cruft
commits in that pull request.