2013-01-31 18:26:38 +00:00
|
|
|
Create Server
|
|
|
|
=============
|
|
|
|
|
2022-11-21 16:28:57 +11:00
|
|
|
The commands in this section should be run as root on the bastion
|
|
|
|
host.
|
2016-09-15 14:21:26 -07:00
|
|
|
|
2012-10-09 20:28:07 +00:00
|
|
|
To launch a node in the OpenStack CI account (production servers)::
|
|
|
|
|
2016-03-09 11:04:02 -06:00
|
|
|
export OS_CLOUD=openstackci-rax
|
2016-09-15 16:24:08 -05:00
|
|
|
export OS_REGION_NAME=DFW
|
2013-12-18 10:56:05 -08:00
|
|
|
export FLAVOR="8 GB Performance"
|
2019-02-15 10:59:56 -08:00
|
|
|
export FQDN=servername01.opendev.org
|
2022-11-21 16:28:57 +11:00
|
|
|
|
|
|
|
/usr/launcher-venv/bin/launch-node $FQDN --flavor "$FLAVOR" \
|
2016-09-15 16:24:08 -05:00
|
|
|
--cloud=$OS_CLOUD --region=$OS_REGION_NAME
|
2012-10-09 20:28:07 +00:00
|
|
|
|
|
|
|
Manually add the hostname to DNS (the launch script does not do so
|
2019-02-15 10:59:56 -08:00
|
|
|
automatically, but it prints the commands to run). Note that for
|
|
|
|
*.opendev.org hosts you'll only be able to add the reverse dns
|
|
|
|
records via the printed commands. Forward A and AAAA records should
|
2022-11-21 16:28:57 +11:00
|
|
|
be added to ``opendev/zone-opendev.org/zones/opendev.org/zone.db``.
|
2012-10-09 20:28:07 +00:00
|
|
|
|
2020-02-04 07:22:49 -06:00
|
|
|
We need to add the host to our static inventory file so that
|
|
|
|
the ansible runs see the new host. The launch script prints out
|
|
|
|
the appropriate lines to add to
|
2022-11-21 16:28:57 +11:00
|
|
|
``opendev/system-config:inventory/openstack.yaml``.
|
2020-02-04 07:22:49 -06:00
|
|
|
|
|
|
|
In order for Ansible to work, you also need to accept the root SSH
|
|
|
|
key for the new server. Once the new DNS entries have propagated,
|
2022-11-21 16:28:57 +11:00
|
|
|
as ``root`` on the bastion server::
|
2015-04-24 12:36:17 -07:00
|
|
|
|
|
|
|
ssh root@$FQDN
|
|
|
|
|
|
|
|
Verify the fingerprint of the new server and type "yes" to accept.
|
|
|
|
Then you can log out.
|
|
|
|
|
2013-01-31 18:26:38 +00:00
|
|
|
Add DNS Records
|
|
|
|
===============
|
2012-10-09 20:28:07 +00:00
|
|
|
|
2020-02-04 07:22:49 -06:00
|
|
|
The launch-node script will print the commands needed to be
|
2013-01-16 19:11:44 +00:00
|
|
|
run to configure DNS for a newly launched server. To see the commands
|
2022-11-21 16:28:57 +11:00
|
|
|
for an existing server, run::
|
2013-01-16 19:11:44 +00:00
|
|
|
|
2022-11-21 16:28:57 +11:00
|
|
|
/usr/launcher-venv/bin/show-dns $FQDN
|