Lusheng Ji | d7350c6 | 2017-10-13 22:49:06 +0000 | [diff] [blame] | 1 | CentOS VM |
Lusheng Ji | bd11574 | 2017-10-13 19:18:52 +0000 | [diff] [blame] | 2 | ====================== |
Lusheng Ji | f82a6c4 | 2017-10-13 17:56:38 +0000 | [diff] [blame] | 3 | |
Jack Lucas | 3c9d460 | 2017-11-02 15:35:39 +0000 | [diff] [blame] | 4 | Note: This blueprint is intended to be deployed, automatically, as part of the |
| 5 | DCAE bootstrap process, and is not normally invoked manually. |
| 6 | |
| 7 | This blueprint controls the deployment of a VM running the CentOS 7 operating system, used to |
| 8 | run an instance of the Cloudify Manager orchestration engine. |
| 9 | |
| 10 | This blueprint is used to bootstrap an installation of Cloudify Manager. All other DCAE |
| 11 | components are launched using Cloudify Manager. The Cloudify Manager VM and the Cloudify Manager |
| 12 | software are launched using the Cloudify command line software in its local mode. |
Lusheng Ji | f82a6c4 | 2017-10-13 17:56:38 +0000 | [diff] [blame] | 13 | |
Lusheng Ji | bd11574 | 2017-10-13 19:18:52 +0000 | [diff] [blame] | 14 | Blueprint files |
| 15 | ---------------------- |
Lusheng Ji | f82a6c4 | 2017-10-13 17:56:38 +0000 | [diff] [blame] | 16 | |
Jack Lucas | 3c9d460 | 2017-11-02 15:35:39 +0000 | [diff] [blame] | 17 | The blueprint file is stored under source control in the ONAP ``dcaegen2.platform.blueprints`` project, in the ``blueprints`` |
| 18 | subdirectory of the project, as a template named ``centos_vm.yaml-template``. The build process expands |
| 19 | the template to fill in certain environment-specific values. In the ONAP integration environment, the build process |
| 20 | uploads the expanded template, using the name ``centos_vm.yaml``, to a well known-location in a Nexus artifact repository. |
Lusheng Ji | f82a6c4 | 2017-10-13 17:56:38 +0000 | [diff] [blame] | 21 | |
Lusheng Ji | bd11574 | 2017-10-13 19:18:52 +0000 | [diff] [blame] | 22 | Parameters |
| 23 | --------------------- |
Lusheng Ji | f82a6c4 | 2017-10-13 17:56:38 +0000 | [diff] [blame] | 24 | |
Jack Lucas | 3c9d460 | 2017-11-02 15:35:39 +0000 | [diff] [blame] | 25 | This blueprint has the following required input parameters: |
| 26 | * ``centos7image_id`` |
| 27 | |
| 28 | This is the OpenStack image ID of the Centos7 VM image that will be |
| 29 | used to launch the Cloudify Manager VM. |
| 30 | |
| 31 | * ``ubuntu1604image_id`` |
| 32 | |
| 33 | This is not used by the blueprint but is specified here so that the blueprint |
| 34 | can use the same common inputs file as other DCAE VMs (which use an Ubuntu 16.04 image). |
| 35 | |
| 36 | * ``flavor_id`` |
| 37 | |
| 38 | This is the OpenStack flavor ID specifying the amount of memory, disk, and |
| 39 | CPU available to the Cloudify Manager VM. While the required values will be |
| 40 | largely application dependent, a minimum of 16 Gigabytes of memory is |
| 41 | strongly recommended. |
| 42 | |
| 43 | * ``security_group`` |
| 44 | |
| 45 | This is the OpenStack security group specifying permitted inbound and |
| 46 | outbound IP connectivity to the VM. |
| 47 | |
| 48 | * ``public_net`` |
| 49 | |
| 50 | This is the name of the OpenStack network from which a floating IP address |
| 51 | for the VM will be allocated. |
| 52 | |
| 53 | * ``private_net`` |
| 54 | |
| 55 | This is the name of the OpenStack network from which fixed IP addresses for |
| 56 | the VM will be allocated. |
| 57 | |
| 58 | * ``openstack`` |
| 59 | |
| 60 | This is the JSON object / YAML associative array providing values necessary |
| 61 | for accessing OpenStack. The keys are: |
| 62 | |
| 63 | * ``auth_url`` |
| 64 | |
| 65 | The URL for accessing the OpenStack Identity V2 API. (The version of |
| 66 | Cloudify currently being used, and the associated OpenStack plugin do |
| 67 | not currently support Identity V3). |
| 68 | |
| 69 | * ``tenant_name`` |
| 70 | |
| 71 | The name of the OpenStack tenant/project where the VM will be launched. |
| 72 | |
| 73 | * ``region`` |
| 74 | |
| 75 | The name of the OpenStack region within the deployment. In smaller |
| 76 | OpenStack deployments, where there is only one region, the region is |
| 77 | often named ``RegionOne``. |
| 78 | |
| 79 | * ``username`` |
| 80 | |
| 81 | The name of the OpenStack user used as a credential for accessing |
| 82 | OpenStack. |
| 83 | |
| 84 | * ``password`` |
| 85 | |
| 86 | The password of the OpenStack user. (The version of Cloudify currently |
| 87 | being used does not provide a mechanism for encrypting this value). |
| 88 | |
| 89 | * ``keypair`` |
| 90 | |
| 91 | The name of the ssh "key pair", within OpenStack, that will be given access, |
| 92 | via the ubuntu login, to the VMs. Note: OpenStack actually stores only the |
| 93 | public key. |
| 94 | |
| 95 | * ``key_filename`` |
| 96 | |
| 97 | The full file path, on the Cloudify Manager VM, |
| 98 | of the ssh private key file corresponding to the ``keypair`` input parameter. |
| 99 | |
| 100 | * ``location_domain`` |
| 101 | |
| 102 | The DNS domain/zone for DNS entries associated with the VM. |
| 103 | If, for example, location_domain is ``dcae.example.com`` then the FQDN for |
| 104 | a VM with hostname ``abcd`` would be ``abcd.dcae.example.com`` and a DNS |
| 105 | lookup of that FQDN would lead an A (or AAAA) record giving the floating |
| 106 | IP address assigned to that VM. |
| 107 | |
| 108 | * ``location_prefix`` |
| 109 | |
| 110 | The hostname prefix for hostname of the VM. The hostname |
| 111 | assigned to the VM is created by concatenating this prefix with a suffix |
| 112 | identifying the Cloudify Manager VM (``orcl00``). If the location prefix is ``jupiter`` then the hostname of |
| 113 | the Cloudify Manager VM would be ``jupiterorcl00``. |
| 114 | |
| 115 | * ``codesource_url`` and ``codesource_version`` |
| 116 | |
| 117 | This is not used by the blueprint but is specified here so that the blueprint |
| 118 | can use the same common inputs file as other DCAE VMs. Some of the other VMs use |
| 119 | combination of ``codesource_url`` and ``codesource_version`` to locate scripts |
| 120 | that are used at installation time. |
| 121 | * ``datacenter`` |
| 122 | |
| 123 | The datacenter name that is used by the DCAE Consul installation. This is needed so that the Consul agent |
| 124 | installed on the Cloudify Manager VM can be configured to register itself to the Consul service discovery system. |
| 125 | |
| 126 | This blueprint has the following optional inputs: |
| 127 | |
| 128 | * ``cname`` (default ``dcae-orcl``) |
| 129 | |
| 130 | A DNS alias name for the Cloudify Manager VM. In addition to creating a DNS A record for the Cloudify Manager VM, |
| 131 | the installation process also creates a CNAME record, using ``dcae-orcl`` by default as the alias. |
| 132 | For example, if the ``location_domain`` input is ``dcae.example.com``, the ``location_prefix`` input is ``jupiter``, |
| 133 | and the ``cname`` input is the default ``dcae-orcl``, then the installation process will create an A record for |
| 134 | ``jupiterorcl00.dcae.example.com`` and a CNAME record for ``dcae-orcl.dcae.example.com`` that points to |
| 135 | ``jupiterorcl00.dcae.example.com``. |
| 136 | |
Lusheng Ji | f82a6c4 | 2017-10-13 17:56:38 +0000 | [diff] [blame] | 137 | |
Lusheng Ji | bd11574 | 2017-10-13 19:18:52 +0000 | [diff] [blame] | 138 | How To Run |
| 139 | --------------------- |
Lusheng Ji | f82a6c4 | 2017-10-13 17:56:38 +0000 | [diff] [blame] | 140 | |
Jack Lucas | 3c9d460 | 2017-11-02 15:35:39 +0000 | [diff] [blame] | 141 | This blueprint is run as part of the bootstrapping process. (See the ``dcaegen2.deployments`` project.) |
| 142 | Running it manually requires setting up a Cloudify 3.4 command line environment--something that's handled |
| 143 | automatically by the bootstrap process. |
Lusheng Ji | f82a6c4 | 2017-10-13 17:56:38 +0000 | [diff] [blame] | 144 | |
Jack Lucas | 3c9d460 | 2017-11-02 15:35:39 +0000 | [diff] [blame] | 145 | |