DataSift\Storyplayer\ProvisioningLib\Provisioners\AnsibleProvisioner::getHostVarsFilename PHP Method

getHostVarsFilename() protected method

protected getHostVarsFilename ( string $inventoryFolder, $hostId )
$inventoryFolder string
    protected function getHostVarsFilename($inventoryFolder, $hostId)
    {
        // what are we doing?
        $log = usingLog()->startAction("determine host_vars filename for host '{$hostId}'");
        // get our ansible settings
        $ansibleSettings = fromConfig()->getModuleSetting('ansible');
        // get our inventory folder
        $invFolder = $this->getInventoryFolder($ansibleSettings, $inventoryFolder);
        // what is the path to the file?
        $filename = $invFolder . DIRECTORY_SEPARATOR . 'host_vars' . DIRECTORY_SEPARATOR . $hostId;
        // all done
        $log->endAction("filename is: " . $filename);
        return $filename;
    }