2013-04-01 17:23:32 +00:00
|
|
|
==============================
|
|
|
|
Getting Started With Parallels
|
|
|
|
==============================
|
|
|
|
|
2014-12-11 15:51:43 +00:00
|
|
|
Parallels Cloud Server is a product by Parallels that delivers a cloud hosting
|
|
|
|
solution. The PARALLELS module for Salt Cloud enables you to manage instances
|
2013-04-01 17:23:32 +00:00
|
|
|
hosted by a provider using PCS. Further information can be found at:
|
|
|
|
|
|
|
|
http://www.parallels.com/products/pcs/
|
|
|
|
|
2013-04-02 18:25:45 +00:00
|
|
|
* Using the old format, set up the cloud configuration at ``/etc/salt/cloud``:
|
2013-04-01 17:23:32 +00:00
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
# Set up the location of the salt master
|
|
|
|
#
|
|
|
|
minion:
|
|
|
|
master: saltmaster.example.com
|
|
|
|
|
|
|
|
# Set the PARALLELS access credentials (see below)
|
|
|
|
#
|
|
|
|
PARALLELS.user: myuser
|
|
|
|
PARALLELS.password: badpass
|
|
|
|
|
|
|
|
# Set the access URL for your PARALLELS provider
|
|
|
|
#
|
|
|
|
PARALLELS.url: https://api.cloud.xmission.com:4465/paci/v1.0/
|
|
|
|
|
|
|
|
|
2014-12-11 15:51:43 +00:00
|
|
|
* Using the new format, set up the cloud configuration at
|
|
|
|
``/etc/salt/cloud.providers`` or
|
2013-04-02 18:25:45 +00:00
|
|
|
``/etc/salt/cloud.providers.d/parallels.conf``:
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
2013-04-06 14:08:24 +00:00
|
|
|
my-parallels-config:
|
2013-04-02 18:25:45 +00:00
|
|
|
# Set up the location of the salt master
|
|
|
|
#
|
|
|
|
minion:
|
|
|
|
master: saltmaster.example.com
|
|
|
|
|
|
|
|
# Set the PARALLELS access credentials (see below)
|
|
|
|
#
|
|
|
|
user: myuser
|
|
|
|
password: badpass
|
|
|
|
|
|
|
|
# Set the access URL for your PARALLELS provider
|
|
|
|
#
|
|
|
|
url: https://api.cloud.xmission.com:4465/paci/v1.0/
|
2013-04-03 00:51:26 +00:00
|
|
|
provider: parallels
|
2013-04-02 18:25:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-04-01 17:23:32 +00:00
|
|
|
Access Credentials
|
|
|
|
==================
|
2014-12-11 15:51:43 +00:00
|
|
|
The ``user``, ``password``, and ``url`` will be provided to you by your cloud
|
2013-04-01 17:23:32 +00:00
|
|
|
provider. These are all required in order for the PARALLELS driver to work.
|
|
|
|
|
|
|
|
|
|
|
|
Cloud Profiles
|
|
|
|
==============
|
2014-12-11 15:51:43 +00:00
|
|
|
Set up an initial profile at ``/etc/salt/cloud.profiles`` or
|
2013-04-02 18:25:45 +00:00
|
|
|
``/etc/salt/cloud.profiles.d/parallels.conf``:
|
|
|
|
|
|
|
|
|
|
|
|
* Using the old cloud configuration format:
|
2013-04-01 17:23:32 +00:00
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
parallels-ubuntu:
|
|
|
|
provider: parallels
|
|
|
|
image: ubuntu-12.04-x86_64
|
|
|
|
|
2013-04-02 18:25:45 +00:00
|
|
|
|
2014-12-11 15:51:43 +00:00
|
|
|
* Using the new cloud configuration format and the cloud configuration example
|
2013-04-02 18:25:45 +00:00
|
|
|
from above:
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
parallels-ubuntu:
|
2013-04-06 14:08:24 +00:00
|
|
|
provider: my-parallels-config
|
2013-04-02 18:25:45 +00:00
|
|
|
image: ubuntu-12.04-x86_64
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-04-01 17:23:32 +00:00
|
|
|
The profile can be realized now with a salt command:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
# salt-cloud -p parallels-ubuntu myubuntu
|
|
|
|
|
2014-12-11 15:51:43 +00:00
|
|
|
This will create an instance named ``myubuntu`` on the cloud provider. The
|
2013-04-01 17:23:32 +00:00
|
|
|
minion that is installed on this instance will have an ``id`` of ``myubuntu``.
|
2014-12-11 15:51:43 +00:00
|
|
|
If the command was executed on the salt-master, its Salt key will automatically
|
2013-04-01 17:23:32 +00:00
|
|
|
be signed on the master.
|
|
|
|
|
2014-12-11 15:51:43 +00:00
|
|
|
Once the instance has been created with salt-minion installed, connectivity to
|
2013-04-01 17:23:32 +00:00
|
|
|
it can be verified with Salt:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
# salt myubuntu test.ping
|
|
|
|
|
|
|
|
|
|
|
|
Required Settings
|
|
|
|
=================
|
|
|
|
The following settings are always required for PARALLELS:
|
|
|
|
|
2013-04-02 18:25:45 +00:00
|
|
|
|
|
|
|
* Using the old cloud configuration format:
|
|
|
|
|
2013-04-01 17:23:32 +00:00
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
PARALLELS.user: myuser
|
|
|
|
PARALLELS.password: badpass
|
|
|
|
PARALLELS.url: https://api.cloud.xmission.com:4465/paci/v1.0/
|
|
|
|
|
|
|
|
|
2013-04-02 18:25:45 +00:00
|
|
|
* Using the new cloud configuration format:
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
2013-04-06 14:08:24 +00:00
|
|
|
my-parallels-config:
|
2013-04-02 18:25:45 +00:00
|
|
|
user: myuser
|
|
|
|
password: badpass
|
|
|
|
url: https://api.cloud.xmission.com:4465/paci/v1.0/
|
2013-04-03 00:51:26 +00:00
|
|
|
provider: parallels
|
2013-04-02 18:25:45 +00:00
|
|
|
|
|
|
|
|
2013-04-01 17:23:32 +00:00
|
|
|
Optional Settings
|
|
|
|
=================
|
2014-12-11 15:51:43 +00:00
|
|
|
Unlike other cloud providers in Salt Cloud, Parallels does not utilize a
|
|
|
|
``size`` setting. This is because Parallels allows the end-user to specify a
|
|
|
|
more detailed configuration for their instances, than is allowed by many other
|
|
|
|
cloud providers. The following options are available to be used in a profile,
|
2013-04-01 17:23:32 +00:00
|
|
|
with their default settings listed.
|
|
|
|
|
2013-04-01 17:29:08 +00:00
|
|
|
.. code-block:: yaml
|
|
|
|
|
2013-04-01 17:23:32 +00:00
|
|
|
# Description of the instance. Defaults to the instance name.
|
|
|
|
desc: <instance_name>
|
|
|
|
|
|
|
|
# How many CPU cores, and how fast they are (in MHz)
|
|
|
|
cpu_number: 1
|
|
|
|
cpu_power: 1000
|
|
|
|
|
|
|
|
# How many megabytes of RAM
|
|
|
|
ram: 256
|
|
|
|
|
|
|
|
# Bandwidth available, in kbps
|
|
|
|
bandwidth: 100
|
|
|
|
|
|
|
|
# How many public IPs will be assigned to this instance
|
|
|
|
ip_num: 1
|
|
|
|
|
|
|
|
# Size of the instance disk (in GiB)
|
|
|
|
disk_size: 10
|
|
|
|
|
|
|
|
# Username and password
|
|
|
|
ssh_username: root
|
|
|
|
password: <value from PARALLELS.password>
|
|
|
|
|
|
|
|
# The name of the image, from ``salt-cloud --list-images parallels``
|
|
|
|
image: ubuntu-12.04-x86_64
|