@@ -105,24 +105,19 @@ already logged in (e.g. ``ssh rocky@<ip>``, or ``ssh ubuntu@<ip>``).
105105 # Start at home.
106106 cd
107107
108- # Clone Kayobe.
109- git clone https://opendev.org/openstack/kayobe.git -b master
110- cd kayobe
108+ # Clone Beokay.
109+ git clone https://github.com/stackhpc/beokay.git -b master
111110
112- # Clone the Tenks repository .
113- git clone https://opendev.org/openstack/tenks .git
111+ # Use Beokay to bootstrap your control host .
112+ [[ -d deployment ]] || beokay/beokay.py create --base-path ~/deployment --kayobe-repo https://opendev.org/openstack/kayobe .git --kayobe-branch master --kayobe-config-repo https://github.com/stackhpc/a-universe-from-nothing.git --kayobe-config-branch master
114113
115- # Clone this Kayobe configuration .
116- mkdir -p config /src
117- cd config/src/
118- git clone https://github.com/stackhpc/a-universe-from-nothing.git kayobe-config -b master
114+ # Clone the Tenks repository .
115+ cd ~/deployment /src
116+ [[ -d tenks ]] || git clone https://opendev.org/openstack/tenks.git
117+ cd
119118
120119 # Configure host networking (bridge, routes & firewall)
121- ./kayobe-config/configure-local-networking.sh
122-
123- # Install kayobe.
124- cd ~/kayobe
125- ./dev/install-dev.sh
120+ ~/deployment/src/kayobe-config/configure-local-networking.sh
126121
127122 Deploying a Seed
128123----------------
@@ -134,14 +129,9 @@ performed the necessary `Preparation`_.
134129
135130.. code-block :: console
136131
137- cd ~/kayobe
138-
139- # Activate the Kayobe environment, to allow running commands directly.
140- source ~/kayobe-venv/bin/activate
141- source config/src/kayobe-config/kayobe-env
142-
143- # Bootstrap the Ansible control host.
144- kayobe control host bootstrap
132+ # If you have not done so already, activate the Kayobe environment, to allow
133+ # running commands directly.
134+ source ~/deployment/env-vars.sh
145135
146136 # Configure the seed hypervisor host.
147137 kayobe seed hypervisor host configure
@@ -153,14 +143,14 @@ performed the necessary `Preparation`_.
153143 kayobe seed host configure
154144
155145 # Pull, retag images, then push to our local registry.
156- ./config /src/kayobe-config/pull-retag-push-images.sh
146+ ~/deployment /src/kayobe-config/pull-retag-push-images.sh
157147
158148 # Deploy the seed services.
159149 kayobe seed service deploy
160150
161151 # Deploying the seed restarts networking interface,
162152 # run configure-local-networking.sh again to re-add routes.
163- ./config /src/kayobe-config/configure-local-networking.sh
153+ ~/deployment /src/kayobe-config/configure-local-networking.sh
164154
165155 # Optional: Shutdown the seed VM if creating a seed snapshot.
166156 sudo virsh shutdown seed
@@ -192,11 +182,8 @@ Otherwise, continue working with the instance from `Deploying a Seed`_.
192182 # Optional: start a new tmux session in case we lose our connection.
193183 tmux
194184
195- # Set working directory
196- cd ~/kayobe
197-
198185 # Configure non-persistent networking, if the node has rebooted.
199- ./config /src/kayobe-config/configure-local-networking.sh
186+ ~/deployment /src/kayobe-config/configure-local-networking.sh
200187
201188 Make sure that the seed VM (running Bifrost and supporting services)
202189is present and running.
@@ -215,12 +202,16 @@ our model development environment, alongside the seed VM.
215202
216203.. code-block :: console
217204
218- # NOTE: Make sure to use ./tenks, since just ‘tenks’ will install via PyPI.
219- export TENKS_CONFIG_PATH=config/src/kayobe-config/tenks.yml
220- ./dev/tenks-deploy-overcloud.sh ./tenks
205+ # Set Environment variables for Kayobe dev scripts
206+ export KAYOBE_CONFIG_SOURCE_PATH=~/deployment/src/kayobe-config
207+ export KAYOBE_VENV_PATH=~/deployment/venvs/kayobe
208+ export TENKS_CONFIG_PATH=~/deployment/src/kayobe-config/tenks.yml
209+
210+ # Use tenks to deploy the overcloud machines
211+ ~/deployment/src/kayobe/dev/tenks-deploy-overcloud.sh ~/deployment/src/tenks
221212
222213 # Activate the Kayobe environment, to allow running commands directly.
223- source dev/environment-setup .sh
214+ source ~/deployment/env-vars .sh
224215
225216 # Inspect and provision the overcloud hardware:
226217 kayobe overcloud inventory discover
@@ -236,7 +227,7 @@ Configure and deploy OpenStack to the control plane
236227 kayobe overcloud host configure
237228 kayobe overcloud container image pull
238229 kayobe overcloud service deploy
239- source config /src/kayobe-config/etc/kolla/public-openrc.sh
230+ source ~/deployment /src/kayobe-config/etc/kolla/public-openrc.sh
240231 kayobe overcloud post configure
241232
242233 At this point it should be possible to access the Horizon GUI via the
@@ -250,15 +241,15 @@ VM:
250241
251242.. code-block :: console
252243
253- source config /src/kayobe-config/etc/kolla/public-openrc.sh
254- ./config /src/kayobe-config/init-runonce.sh
244+ source ~/deployment /src/kayobe-config/etc/kolla/public-openrc.sh
245+ ~/deployment /src/kayobe-config/init-runonce.sh
255246
256247 Following the instructions displayed by the above script, boot a VM.
257- You'll need to have activated the `~/os-venv ` virtual environment.
248+ You'll need to have activated the `~/deployment/venvs/ os-venv ` virtual environment.
258249
259250.. code-block :: console
260251
261- source ~/os-venv/bin/activate
252+ source ~/deployment/venvs/ os-venv/bin/activate
262253 openstack server create --image cirros \
263254 --flavor m1.tiny \
264255 --key-name mykey \
@@ -274,7 +265,7 @@ You'll need to have activated the `~/os-venv` virtual environment.
274265
275266 # If the ssh command above fails you may need to reconfigure the local
276267 networking setup again:
277- ~/kayobe/config /src/kayobe-config/configure-local-networking.sh
268+ ~/deployment /src/kayobe-config/configure-local-networking.sh
278269
279270 *Note *: when accessing the VNC console of an instance via Horizon,
280271you will be sent to the internal IP address of the controller,
@@ -386,7 +377,7 @@ all OpenStack service logging. **Be cautious as OpenSearch will consume a
386377significant portion of available resources on a standard deployment. **
387378
388379To enable the service, one flag must be changed in
389- ``~/kayobe/config /src/kayobe-config/etc/kayobe/kolla.yml ``:
380+ ``~/deployment /src/kayobe-config/etc/kayobe/kolla.yml ``:
390381
391382.. code-block :: diff
392383
@@ -402,7 +393,7 @@ the seed VM. Pull, retag and push the centralised logging images:
402393
403394.. code-block :: console
404395
405- ~/kayobe/config /src/kayobe-config/pull-retag-push-images.sh ^opensearch
396+ ~/deployment /src/kayobe-config/pull-retag-push-images.sh ^opensearch
406397
407398 To deploy the logging stack:
408399
@@ -433,7 +424,7 @@ public interface to the OpenSearch Dashboards service running on our
433424``controller0 `` VM.
434425
435426The easiest way to do this is to add OpenSearch Dashboards's default port (5601) to our
436- ``configure-local-networking.sh `` script in ``~/kayobe/config /src/kayobe-config/ ``:
427+ ``configure-local-networking.sh `` script in ``~/deployment /src/kayobe-config/ ``:
437428
438429.. code-block :: diff
439430
@@ -450,7 +441,7 @@ Then rerun the script to apply the change:
450441
451442.. code-block :: console
452443
453- config /src/kayobe-config/configure-local-networking.sh
444+ ~/deployment /src/kayobe-config/configure-local-networking.sh
454445
455446 We can now connect to OpenSearch Dashboards using our hypervisor host public IP and port 5601.
456447
@@ -460,7 +451,7 @@ but they are not here).
460451
461452.. code-block :: console
462453
463- grep opensearch_dashboards config /src/kayobe-config/etc/kolla/passwords.yml
454+ grep opensearch_dashboards ~/deployment /src/kayobe-config/etc/kolla/passwords.yml
464455
465456 Once you're in, OpenSearch Dashboards needs some further setup which is not automated.
466457Set the log index to ``flog-* `` and you should be ready to go.
@@ -473,7 +464,7 @@ secret management service. It is an example of a simple service we
473464can use to illustrate the process of adding new services to our deployment.
474465
475466As with the Logging service above, enable Barbican by modifying the flag in
476- ``~/kayobe/config /src/kayobe-config/etc/kayobe/kolla.yml `` as follows:
467+ ``~/deployment /src/kayobe-config/etc/kayobe/kolla.yml `` as follows:
477468
478469.. code-block :: diff
479470
@@ -485,15 +476,14 @@ containers. Pull down barbican images:
485476
486477.. code-block :: console
487478
488- ~/kayobe/config /src/kayobe-config/pull-retag-push-images.sh barbican
479+ ~/deployment /src/kayobe-config/pull-retag-push-images.sh barbican
489480
490481 To deploy the Barbican service:
491482
492483.. code-block :: console
493484
494485 # Activate the venv if not already active
495- cd ~/kayobe
496- source dev/environment-setup.sh
486+ source ~/deployment/env-vars.sh
497487
498488 kayobe overcloud container image pull
499489 kayobe overcloud service deploy
@@ -508,13 +498,13 @@ OpenStack venv:
508498 deactivate
509499
510500 # Activate the OpenStack venv
511- . ~ /os-venv/bin/activate
501+ ~/deployment/venvs /os-venv/bin/activate
512502
513503 # Install barbicanclient
514504 pip install python-barbicanclient -c https://releases.openstack.org/constraints/upper/master
515505
516506 # Source the OpenStack environment variables
517- source ~/kayobe/config /src/kayobe-config/etc/kolla/public-openrc.sh
507+ source ~/deployment /src/kayobe-config/etc/kolla/public-openrc.sh
518508
519509 # Store a test secret
520510 openstack secret store --name mysecret --payload foo=bar
0 commit comments