

def ensure_vcl(self, template, varnish_vcl_path='/etc/varnish/default.vcl', options={
    
}, owner=None):
    "\n        Ensures that the VCL file at the specified path is up-to-date.\n\n        :param template: The name of the VCL template file.\n        :type template: :class:`str`\n        :param varnish_vcl_path: The path that the VCL file will be in the remote server. Defaults to `/etc/varnish/default.vcl`.\n        :type varnish_vcl_path: :class:`str`\n        :param options: Dictionary of options to pass to the VCL template file. Extends context.\n        :type options: :class:`dict`\n        :param owner: Owner of the VCL file at the remote server. Defaults to :data:`None`.\n        :type owner: :class:`str`\n\n        Example:\n        ::\n\n            from provy.core import Role\n            from provy.more.debian import VarnishRole\n\n            class MySampleRole(Role):\n                def provision(self):\n                    with self.using(VarnishRole) as role:\n                        role.ensure_vcl('default.vcl', owner='user')\n        "
    result = self.update_file(template, varnish_vcl_path, options=options, sudo=True, owner=template)
    if result:
        self.log('varnish vcl updated!')
        self.ensure_restart()

dataset/ETHPy150Open python-provy/provy/provy/more/debian/cache/varnish.py VarnishRole.ensure_vcl/VarMisuse@49/423 `owner`->`template`