Commit Graph

8 Commits

Author SHA1 Message Date
Jiří Suchomel d045def452 Get password for shipyard user for special variable if it exists
In case users have OS_PASSWORD set for a different cloud, it may
have sense to use different variable just for shiyard user's password.

Change-Id: I709df849e1109582917453c9fcec8bed565c2814
2019-06-12 15:22:25 +02:00
Crank, Daniel (dc6350) 0ab1bf552d Don't log OS_PASSWORD in auth.log
By default, all sudo commands are logged to auth.log with their
full command line. Previously, Shipyard scripts called 'sudo docker'
with -e OS_PASSWORD=foo, resulting in the password value appearing
in auth.log in plaintext. This change adds -E to the sudo command
to pass the user's environment through, and removes the value from
-e OS_PASSWORD which tells Docker to use the environment value
directly. This prevents the password value from being logged.

Change-Id: Ifcf7f6525876144a609ff42be42da57a3f7f6f60
2019-04-26 17:17:06 -05:00
Bryan Strassner 04906cce68 Workflow to support deployment groups
Updates the Shipyard/Airflow workflow for deploy_site and
update_site to use the deployment group/deployment strategy
information from the design.

This allows for baremetal nodes to be deployed in a design-
specified order, with criticality and success criteria driving
the success and failure of deployment.

Includes refactoring of service endpoints to reduce the need
for so much data passing.

Change-Id: Ib5e9fca535ca74d1819fe46959695acfed5b65c2
2018-06-20 09:55:15 -05:00
Scott Hussey bf22828f52 Updates to shipyard cli wrapper
- Don't change directory so that the volume mounted in the
  container at /home/shipayard/host is predictable
- Update image default to point at airshipit repo

Change-Id: If8b0988925921d7b54ec74ac73e12289d89d392e
2018-06-12 16:06:02 -05:00
Anthony Lin 8db6e6e7b5 Use Shipyard Docker Container for Tools Scripts
We will move away from installation of shipyard CLI/client
binaries and will make use of the shipyard docker container
instead for our CI/CD integration environment.

Change-Id: I253cbc1e2f9310b9c11195e1c68b97ee8d0efead
2018-03-20 23:35:18 -05:00
Anthony Lin b8bb66d412 Update Scripts
We will no longer need to manually update the '/etc/hosts' file
for 'in-cluster' scenario with the bug fix in [0]. This patch set
is meant to update the scripts in the tools directory to reflect
that change.

Note that user will still need to ensure that the DNS is set up or
'/etc/hosts' file is properly updated if he/she is executing the
workflow from outside the cluster, e.g. via jump server

[0] https://review.gerrithub.io/#/c/398739/

Change-Id: I0580cfc473b0f1b0ed824a578d3e6c89dd6f1443
2018-02-09 15:48:30 +00:00
Anthony Lin 3d0d84688b Update Ingress Controller namespace
[0] allows namespace specific ingress controllers and a
cluster wide ingress controller that acts as the external
front door to the cluster.

As the codes in OSH have been merged, we are removing the
workaround that was previously put in place for UCP namespace.

[0] https://review.openstack.org/#/c/533271/

Change-Id: Ia1c3e85e55678d62a4eb8506841dffc547012ef0
2018-01-16 17:31:19 +00:00
Anthony Lin 10c54eefda Add Wrapper Script for Shipyard CLI
Installing the Shipyard CLI on the Genesis host will introduce
large number of packages on the host machine and is not the
desired approach. Hence we will want to use a docker container
to execute Shipyard CLI whenever possible. However, it is
troublesome to pass all the required parameters everytime
when we execute the Shipyard CLI with docker command.

This patch set attempts to create a thin wrapper script to make
it easier for user.

Change-Id: I06235399cc7c9a22169f39edf948dc5e573652c5
2018-01-15 09:38:52 +00:00