9 Commits

Author SHA1 Message Date
Ian Howell
e2213885cf Fix an issue with selecting which site to test
This fixes the name of the ansible `site` variable to `site_name`, so
that we can properly set the value of the SITE environment variable
while running gate scripts.

Change-Id: I9156fbdda4e52dc2b5310beb4d285736282bc8b6
2021-05-24 12:42:37 -05:00
Andrii Ostapenko
a7cbd6bddc
Allow to pass script directory to allow inheriting in other projects
Change-Id: I3dd01d5b371ef57407600b3230094ea2546614bb
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-05-11 17:02:09 -05:00
Andrii Ostapenko
6e5bef457a
Add ability to pass environment to gate runner from job
Introduces an ability to pass custom environment that
has the highest precedence from job definition for
airshipctl-gate-runner playbook, e.g.:

job:
  name: test-job
  playbook: run: playbooks/airshipctl-gate-runner.yaml
  vars:
    job_environment:
      FOO: BAR

Defined environment variables complete/replace default playbook variables.

Change-Id: Ib11480068141315126a80f3952b6882cdb7439ae
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-05-10 20:11:22 -05:00
James Gu
1342ab708f Enhanced deployment script to support baremetal multi-node
Additionally aligned between Treasuremap and Airchipctl to use the same
environemnt variable "SITE" for a site name.

Change-Id: I50494b50691a40efe68996cd11ccede6517b23d6
Signed-off-by: James Gu <james.gu@att.com>
2021-03-23 06:21:31 -07:00
Vladimir Kozhukalov
0dc4ab7491 Replace PrimaryRepositoryName with PhaseRepositoryName
Change-Id: I2276a3b3ea50b8e81dd240815cd00a0a2a2af96e
Relates-To: #356
2020-10-12 15:28:27 +03:00
Ruslan Aliev
d8a6139e81 Add document pull step to gate script runner
Currently we don't test document pull step by rewriting
manifest_directory variable as current source path, which
makes a mess in target_path, manifest_path and related paths
(concatenation of target_path+manifest_path won't return
an existing and proper location). This patch organizes
mentioned variables and enables document pull step which
starts working properly. The latest repo state used as
git source for this command.

Change-Id: I5abce73877441c7529f2f77add79cf410e2226d8
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-09-25 00:39:28 -05:00
Drew Walters
0706575ef4 Add multi-site support to gate runner
This change adds multi-site support to the gate runner by leveraging
environment variables used by the deployment scripts. Zuul jobs can
change the site by defining the site variable in the job definition. If
no site name is specified, test-site is used as a default.

Example:

  - job:
      name: gate-script-runner-site-b
      vars:
        site: site-b

This change will allow the treasuremap repository to test multiple sites
using the same job definitions.

Change-Id: I5ed02d2563db2d2b3b1587fcac94ad2bce805ced
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-08-19 16:38:42 +00:00
Stanislav Egorov
f1725f3123 Cleaning for gate scripts
Removed orphaned local scripts because some roles were removed.
Fixed env vars for proper configuration.
Updated documentation accordingly.

Change-Id: I37f0c8d038fb51ddaa57664a65d347056df6f007
2020-07-09 13:16:05 -07:00
Sreejith Punnapuzha
c3002cabda Add bash scripts to run airshipctl
* Add playbook to run the scripts
 * Add script to install kubectl
 * Add script to create airshipctl executable
 * Add script to generate test configuration
 * Add script to pull site documents
 * Add script to build ephemeral iso
 * Add script to deploy ephemeral node
 * Add script to deploy control plane

Closes: #223
Closes: #224
Closes: #225
Closes: #226
Closes: #227

Change-Id: Ied63e2a733c3abcc6b1a822624c5ffce92e05a44
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
2020-06-19 15:44:06 +00:00