blob: cd2660e4189f442d16af726d14950915c6a901ad [file] [log] [blame]
Lusheng Jid7350c62017-10-13 22:49:06 +00001CentOS VM
Lusheng Jibd115742017-10-13 19:18:52 +00002======================
Lusheng Jif82a6c42017-10-13 17:56:38 +00003
Jack Lucas3c9d4602017-11-02 15:35:39 +00004Note: This blueprint is intended to be deployed, automatically, as part of the
5DCAE bootstrap process, and is not normally invoked manually.
6
7This blueprint controls the deployment of a VM running the CentOS 7 operating system, used to
8run an instance of the Cloudify Manager orchestration engine.
9
10This blueprint is used to bootstrap an installation of Cloudify Manager. All other DCAE
11components are launched using Cloudify Manager. The Cloudify Manager VM and the Cloudify Manager
12software are launched using the Cloudify command line software in its local mode.
Lusheng Jif82a6c42017-10-13 17:56:38 +000013
Lusheng Jibd115742017-10-13 19:18:52 +000014Blueprint files
15----------------------
Lusheng Jif82a6c42017-10-13 17:56:38 +000016
Jack Lucas3c9d4602017-11-02 15:35:39 +000017The blueprint file is stored under source control in the ONAP ``dcaegen2.platform.blueprints`` project, in the ``blueprints``
18subdirectory of the project, as a template named ``centos_vm.yaml-template``. The build process expands
19the template to fill in certain environment-specific values. In the ONAP integration environment, the build process
20uploads the expanded template, using the name ``centos_vm.yaml``, to a well known-location in a Nexus artifact repository.
Lusheng Jif82a6c42017-10-13 17:56:38 +000021
Lusheng Jibd115742017-10-13 19:18:52 +000022Parameters
23---------------------
Lusheng Jif82a6c42017-10-13 17:56:38 +000024
Jack Lucas3c9d4602017-11-02 15:35:39 +000025This 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
126This 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 Jif82a6c42017-10-13 17:56:38 +0000137
Lusheng Jibd115742017-10-13 19:18:52 +0000138How To Run
139---------------------
Lusheng Jif82a6c42017-10-13 17:56:38 +0000140
Jack Lucas3c9d4602017-11-02 15:35:39 +0000141This blueprint is run as part of the bootstrapping process. (See the ``dcaegen2.deployments`` project.)
142Running it manually requires setting up a Cloudify 3.4 command line environment--something that's handled
143automatically by the bootstrap process.
Lusheng Jif82a6c42017-10-13 17:56:38 +0000144
Jack Lucas3c9d4602017-11-02 15:35:39 +0000145