PHP Class DataSift\Storyplayer\ProvisioningLib\Provisioners\AnsibleProvisioner

Inheritance: extends Provisioner
Datei anzeigen Open project: datasift/storyplayer

Public Methods

Method Description
__construct ( StoryTeller $st )
buildDefinitionFor ( $env )
provisionHosts ( DataSift\Storyplayer\ProvisioningLib\ProvisioningDefinition $hosts, $provConf )

Protected Methods

Method Description
getHostVarsFilename ( string $inventoryFolder, $hostId )
getInventoryFolder ( $ansibleSettings, string $inventoryFolder )
removeHostVarsFile ( string $inventoryFolder, $ipAddress )
writeHostVarsFile ( string $inventoryFolder, $ipAddress, $vars )
writeInventoryFile ( string $inventory ) : string

Method Details

__construct() public method

public __construct ( StoryTeller $st )
$st DataSift\Storyplayer\PlayerLib\StoryTeller

buildDefinitionFor() public method

public buildDefinitionFor ( $env )

getHostVarsFilename() protected method

protected getHostVarsFilename ( string $inventoryFolder, $hostId )
$inventoryFolder string

getInventoryFolder() protected method

protected getInventoryFolder ( $ansibleSettings, string $inventoryFolder )
$inventoryFolder string

provisionHosts() public method

public provisionHosts ( DataSift\Storyplayer\ProvisioningLib\ProvisioningDefinition $hosts, $provConf )
$hosts DataSift\Storyplayer\ProvisioningLib\ProvisioningDefinition

removeHostVarsFile() protected method

protected removeHostVarsFile ( string $inventoryFolder, $ipAddress )
$inventoryFolder string

writeHostVarsFile() protected method

protected writeHostVarsFile ( string $inventoryFolder, $ipAddress, $vars )
$inventoryFolder string

writeInventoryFile() protected method

protected writeInventoryFile ( string $inventory ) : string
$inventory string
return string