File: common_prerequisites.rst

package info (click to toggle)
murano 1%3A6.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,644 kB
  • sloc: python: 34,127; sh: 717; pascal: 269; makefile: 83
file content (98 lines) | stat: -rw-r--r-- 2,447 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Prerequisites
-------------

Before you install and configure the Application Catalog service,
you must create a database, service credentials, and API endpoints.

#. To create the database, complete these steps:

   Murano can use various database types on the back end. For development
   purposes, SQLite is enough in most cases. For production installations, you
   should use MySQL or PostgreSQL databases.

   .. warning::

      Although murano could use a PostgreSQL database on the back end,
      it wasn't thoroughly tested and should be used with caution.
   ..


   * Use the database access client to connect to the database
     server as the ``root`` user:

     .. code-block:: console

        $ mysql -u root -p
     ..

   * Create the ``murano`` database:

     .. code-block:: mysql

            CREATE DATABASE murano;
     ..

   * Grant proper access to the ``murano`` database:

     .. code-block:: mysql

            GRANT ALL PRIVILEGES ON murano.* TO 'murano'@'localhost' IDENTIFIED BY 'MURANO_DBPASS';
     ..

     Replace ``MURANO_DBPASS`` with a suitable password.

   * Exit the database access client.

     .. code-block:: mysql

            exit;
     ..

#. Source the ``admin`` credentials to gain access to
   admin-only CLI commands:

   .. code-block:: console

      $ . admin-openrc
   ..

#. To create the service credentials, complete these steps:

   * Create the ``murano`` user:

     .. code-block:: console

        $ openstack user create --domain default --password-prompt murano
     ..

   * Add the ``admin`` role to the ``murano`` user:

     .. code-block:: console

        $ openstack role add --project service --user murano admin
     ..

   * Create the murano service entities:

     .. code-block:: console

        $ openstack service create --name murano --description "Application Catalog" application-catalog
     ..

#. Create the Application Catalog service API endpoints:

   .. code-block:: console

      $ openstack endpoint create --region RegionOne \
        application-catalog public http://<murano-ip>:8082
      $ openstack endpoint create --region RegionOne \
        application-catalog internal http://<murano-ip>:8082
      $ openstack endpoint create --region RegionOne \
        application-catalog admin http://<murano-ip>:8082
   ..

   .. note::

      URLs (publicurl, internalurl and adminurl) may be different
      depending on your environment.
   ..