layout | title | category | publish | abstract | pageord |
---|---|---|---|---|---|
bt_wiki |
Bootstrapping on an Existing VM |
Installation |
true |
Tutorial for bootstrapping on an existing VM |
400 |
{%summary%} So, you already have a VM running somewhere and you want to use it to quickly bootstrap a manager on it and start playing around with Cloudify. Hold on tight, because this part is for you. {%endsummary%}
First off, in an empty directory, run this from within the shell:
{% highlight sh %} cfy init simple_provider {%endhighlight%}
You should now have a file named cloudify-config.yaml
in this directory which is a configuration skeleton. It should look something along the lines of:
{% highlight yaml %} public_ip: Enter-Public-IP-Here private_ip: Enter-Private-IP-Here ssh_key_path: Enter-SSH-Key-Path-Here ssh_username: Enter-SSH-Username-Here context: {} # Optional provider context
{%endhighlight%}
public_ip
The ip used to ssh into the VMprivate_ip
The ip that will be used by services in the manager network to connect to its services (RabbitMQ, etc...)ssh_key_path
The path to the key file used to ssh into the VMssh_username
The username to ssh into the VM withcontext
Metadata that should be available to all components/services/agents managed by this manager. Generally, unless you have a good reason for doing otherwise, you can leave this property as it iscloudify.agents.config.user
For now this should be the same username entered inssh_username
. The need to configure this again will be removed in upcoming versions.
When you're done filling in the proper configuration, run this from within the shell, in the same directory as before:
{% highlight sh %} cfy bootstrap {%endhighlight%}
{%note title=Note%}
The bootstrap
command might take some time. If you want to see whats going on during this process, you can run
cfy bootstrap -v
{%endnote%}