def pem_managed(name, text, backup=False, **kwargs):
 (file_args, kwargs) = _get_file_args(name, **kwargs)
 file_args['contents'] = __salt__['x509.get_pem_entry'](text=text)
 return __states__['file.managed'](**file_args)

def pem_managed ( name , text , backup = False , ** kwargs ) : ( file_args , kwargs ) = _get_file_args ( name , ** kwargs ) file_args [ 'contents' ] = __salt__ [ 'x509.get_pem_entry' ] ( text = text ) return __states__ [ 'file.managed' ] ( ** file_args )
manage the contents of a pem file directly with the content in text .