parallels.rst 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. ==============================
  2. Getting Started With Parallels
  3. ==============================
  4. Parallels Cloud Server is a product by Parallels that delivers a cloud hosting
  5. solution. The PARALLELS module for Salt Cloud enables you to manage instances
  6. hosted using PCS. Further information can be found at:
  7. http://www.parallels.com/products/pcs/
  8. * Using the old format, set up the cloud configuration at ``/etc/salt/cloud``:
  9. .. code-block:: yaml
  10. # Set up the location of the salt master
  11. #
  12. minion:
  13. master: saltmaster.example.com
  14. # Set the PARALLELS access credentials (see below)
  15. #
  16. PARALLELS.user: myuser
  17. PARALLELS.password: badpass
  18. # Set the access URL for your PARALLELS host
  19. #
  20. PARALLELS.url: https://api.cloud.xmission.com:4465/paci/v1.0/
  21. * Using the new format, set up the cloud configuration at
  22. ``/etc/salt/cloud.providers`` or
  23. ``/etc/salt/cloud.providers.d/parallels.conf``:
  24. .. code-block:: yaml
  25. my-parallels-config:
  26. # Set up the location of the salt master
  27. #
  28. minion:
  29. master: saltmaster.example.com
  30. # Set the PARALLELS access credentials (see below)
  31. #
  32. user: myuser
  33. password: badpass
  34. # Set the access URL for your PARALLELS provider
  35. #
  36. url: https://api.cloud.xmission.com:4465/paci/v1.0/
  37. driver: parallels
  38. .. note::
  39. .. versionchanged:: 2015.8.0
  40. The ``provider`` parameter in cloud provider definitions was renamed to ``driver``. This
  41. change was made to avoid confusion with the ``provider`` parameter that is used in cloud profile
  42. definitions. Cloud provider definitions now use ``driver`` to refer to the Salt cloud module that
  43. provides the underlying functionality to connect to a cloud host, while cloud profiles continue
  44. to use ``provider`` to refer to provider configurations that you define.
  45. Access Credentials
  46. ==================
  47. The ``user``, ``password``, and ``url`` will be provided to you by your cloud
  48. host. These are all required in order for the PARALLELS driver to work.
  49. Cloud Profiles
  50. ==============
  51. Set up an initial profile at ``/etc/salt/cloud.profiles`` or
  52. ``/etc/salt/cloud.profiles.d/parallels.conf``:
  53. .. code-block:: yaml
  54. parallels-ubuntu:
  55. provider: my-parallels-config
  56. image: ubuntu-12.04-x86_64
  57. The profile can be realized now with a salt command:
  58. .. code-block:: bash
  59. # salt-cloud -p parallels-ubuntu myubuntu
  60. This will create an instance named ``myubuntu`` on the cloud host. The
  61. minion that is installed on this instance will have an ``id`` of ``myubuntu``.
  62. If the command was executed on the salt-master, its Salt key will automatically
  63. be signed on the master.
  64. Once the instance has been created with salt-minion installed, connectivity to
  65. it can be verified with Salt:
  66. .. code-block:: bash
  67. # salt myubuntu test.version
  68. Required Settings
  69. =================
  70. The following settings are always required for PARALLELS:
  71. * Using the old cloud configuration format:
  72. .. code-block:: yaml
  73. PARALLELS.user: myuser
  74. PARALLELS.password: badpass
  75. PARALLELS.url: https://api.cloud.xmission.com:4465/paci/v1.0/
  76. * Using the new cloud configuration format:
  77. .. code-block:: yaml
  78. my-parallels-config:
  79. user: myuser
  80. password: badpass
  81. url: https://api.cloud.xmission.com:4465/paci/v1.0/
  82. driver: parallels
  83. Optional Settings
  84. =================
  85. Unlike other cloud providers in Salt Cloud, Parallels does not utilize a
  86. ``size`` setting. This is because Parallels allows the end-user to specify a
  87. more detailed configuration for their instances than is allowed by many other
  88. cloud hosts. The following options are available to be used in a profile,
  89. with their default settings listed.
  90. .. code-block:: yaml
  91. # Description of the instance. Defaults to the instance name.
  92. desc: <instance_name>
  93. # How many CPU cores, and how fast they are (in MHz)
  94. cpu_number: 1
  95. cpu_power: 1000
  96. # How many megabytes of RAM
  97. ram: 256
  98. # Bandwidth available, in kbps
  99. bandwidth: 100
  100. # How many public IPs will be assigned to this instance
  101. ip_num: 1
  102. # Size of the instance disk (in GiB)
  103. disk_size: 10
  104. # Username and password
  105. ssh_username: root
  106. password: <value from PARALLELS.password>
  107. # The name of the image, from ``salt-cloud --list-images parallels``
  108. image: ubuntu-12.04-x86_64