cake function provisioning¶
After the servers are created by the cloud provider they are still pretty bare bone and we have to setup a few basics to be able to interact with them using Ansible. This step is usually only required once in a servers lifetime.
For this the cake
function provisioning
is used. The provisioning
function simply includes many other functions named provisioning_something
, which can be viewed by executing:
CAKE master * cake --search provisioning
provisioning_accept_ssh
provisioning_cloud_provider_hetzner
provisioning_apt
provisioning_locales
[...]
The following chapters describe each individual provisioning_
function.
Complete provisioning run¶
To execute all provisioning functions in the correct order for the brand new group of servers cus_www_prod:
cake -f provisioning -i pub -l cus_www_prod -nc
Arguments:
-i pub
: use the public IPs defined innic_pub_ip
to connect ot the servers-l cus_www_prod
: only execute on the servers in the group cus_www_prod
cake
will ask for your confirmation before actually doing things on the servers, hence the individual steps are not described here. Read the terminal output carefully.
Specific provisioning_ function¶
CAKE master * cake -s provisioning_
provisioning_accept_ssh
provisioning_cloud_provider_hetzner
provisioning_apt
provisioning_locales
[...]
CAKE master * cake -f provisioning_apt -i pub -l cus_www_prod -nc