Hi I'm installing your module with puppet docker build and I get the following error :
Evaluation Error: A substring operation does not accept a String as a character index. Expected an Integer at /etc/puppetlabs/code/modules/vsftpd/manifests/init.pp:57:24 on node MyNode
I guess its because you specified $package_name to be an array here.
I cannot try to remove it unless by forking your module and publishing it on the forge so I can't do it just for debug.
EDIT: ressource names should be capitalized, it has nothing to do with package_name being an array