Skip to content

Commit f3626ca

Browse files
committed
Better pulp deployment automation
1 parent a3a2476 commit f3626ca

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

README.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,6 @@ To set up a local pulp service on the seed, first obtain/generate a set of Ark c
254254
pulp_username: admin
255255
pulp_password: <randomly-generated-password-to-set-for-local-pulp-admin-user>
256256
257-
Run the command below to automatically comment out the overrides in ``stackhpc-ci.yml`` for pointing to test pulp.
258-
259-
.. code-block:: console
260-
261-
sed -i -e 's/^resolv_/#resolv_/g' -e 's/^stackhpc_repo_/#stackhpc_repo_/g' -e 's/^stackhpc_include/#stackhpc_include/g' -e 's/^stackhpc_docker_registry:/#stackhpc_docker_registry:/g' ~/src/kayobe-config/etc/kayobe/environments/ci-multinode/stackhpc-ci.yml
262-
263257
Deploy OpenStack
264258
----------------
265259

templates/deploy-openstack.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ if $(which apt 2>/dev/null >/dev/null); then
4848
sudo apt -y install uuid-runtime
4949
fi
5050

51+
# Edit config when deploying a local pulp repository
52+
%{ if deploy_pulp } sed -i -e 's/^resolv_/#resolv_/g' -e 's/^stackhpc_repo_/#stackhpc_repo_/g' -e 's/^stackhpc_include/#stackhpc_include/g' -e 's/^stackhpc_docker_registry:/#stackhpc_docker_registry:/g' $KAYOBE_CONFIG_PATH/environments/$KAYOBE_ENVIRONMENT/stackhpc-ci.yml %{ endif }
53+
5154
# Configure hosts
5255
kayobe control host bootstrap
5356
kayobe seed host configure

0 commit comments

Comments
 (0)