Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

# Configure project


# Setting up hosts for provisioning

Firstly, modify `` to suit your needs and run ./ Note that the
output will be sent to the `outputPath` directory. Do not make this the same as the file.

This will create the host (in ansible_hosts) and required var files for one host. To create 
addtional hosts (perhaps remote) you need to add them to the ansible_hosts file and create 
corresponding var files for each role. You should also create an entry for each server in ~/.ssh/config

Setting up hosts is necessary for provisioning. Rather than use 
`vagrant provision` it is better to use the `dev/ <hostname>` 
as it allow you to add parameters and also provision remote servers.

In order to provision a host you need ssh access to it. It's best first to
create a record in your ~/.ssh/config file with a custom hostname and the IP
that matches the one you assigned in Vagrantfile. Something like:

 Host <host> # Just a shortcut/nickname. eg. VM IP address or alias configured in /etc/hosts.
 User vagrant # `vagrant` is the username for vagrant machines
 Hostname project.api # The hostname you have defined in /etc/hosts
 IdentityFile <working_dir>/.vagrant/somepath_to_private_key // find value with `vagrant ssh-config`

Once the ssh host has been configured, ssh into box with: `ssh <host>`. Once this
is successful you can then provision host.

# Run the provisioning script

The provisioning script lives in the dev path and you would call it
like `dev/ <host>` where <host> is the host defined
in ~/.ssh/config.


No description, website, or topics provided.



No releases published


No packages published