1069 Commits

Author SHA1 Message Date
Monty Taylor
83acffb6b9
Replace hand-written slug with ansible_managed
There is an ansible_managed variable that can be referenced in templates
to add a comment about a file being managed by ansible. Use it.

Change-Id: I60c27cf0eb35dcd4805c3517b3b7e0c7d9a0b3ea
2017-07-12 06:26:04 -05:00
Monty Taylor
400ed600d2
Remove default value for mirror_host
A value always needs to be passed in, so don't set a default.

Change-Id: I062896762c9ec310a083ba3e94b173acca1948b6
2017-07-12 06:26:01 -05:00
Paul Belanger
9e464b6438
Enable verify_host for synchronize
There is no need to have this disabled (seems to be by default). We
already have ensured our SSH hostkeys have been setup properly.

Change-Id: I5f0ffea13b4adb053c10d56728bcf02c13255513
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-11 15:55:03 -04:00
Paul Belanger
8638ac3e2a
Create configure-mirrors role
This will be used to replace our current confgure_mirror.sh script
that we today as a ready-script in nodepool.

This only adds support for ubuntu today. As we move forward and
configuration openstack-infra from JJB to ansible, we'll need to add
more distros.

Attach the role to the unittests base job for now. It should ultimately
be attached to the base job, but adding it to the unittests job lets us
test it more easily.

Co-Authored-By: Monty Taylor <mordred@inaugust.com>
Change-Id: I9bfa28c87390c09bb2c4cd0de6ce4c7890f8d81a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-11 14:56:12 -04:00
Paul Belanger
5738468cd8
Add openstack-doc-build job for documentation testing
Start gating on documentation changes. Eventually add support for
publishing them.

Change-Id: I9e75fee12e7d74db51661b6a1071a510788cde74
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-11 11:13:13 -04:00
Monty Taylor
2dfb08a49e
Actually run the unittests post playbooks
Put the tasks into a role so that we can set zuul_work_dir in
defaults.yaml so that this also works if we're setting a directory in a
variable.

Change-Id: I638f7682d086781178f2dc7517eb0fb09a5f2acd
2017-07-10 16:50:18 -05:00
Monty Taylor
7f64bddb1d
Rename debug-ansible to validate-host
It's doing more than just outputting ansible information.

Change-Id: Icfbef10b1bcf36d75f961cd4319bc062a77efe2a
2017-07-09 11:26:50 -05:00
Monty Taylor
98c073171b
Move node debug information into a directory
Putting it all directly into logs is a bit noisy.

Depends-On: I9f03ea408085e3da3ddeb231264e45b1c1fb6896
Change-Id: I82289ec0b66502995278eb897257f345b6c44878
2017-07-09 11:26:50 -05:00
Monty Taylor
869d7f5744
Fail if traceroute doesn't work
If neither traceroute works, this is a host with broken networking and
doing anything else is a waste of time.

Change-Id: I042357c2d55596296ce2d570aa54433195a31b82
2017-07-09 11:26:49 -05:00
Monty Taylor
8b86f76ffd
Clean up debug-ansible role
Copy in the openstack info, generalize it, and get it to stop
spamming stdout. We'll use a python module to do this so that we can
control what's going on.

Change-Id: Iec3bcec75f28451284c3c7d94593bfca3830bc8b
2017-07-09 11:25:47 -05:00
Monty Taylor
242f0bfff4
Rework bindep role to be more ansible and less shell
There's still a chunk of shell, because it's honestly better than doing
the equiv with package manager modules would be.

Also, make zuul_work_dir a parameter we pass in from the playbook. The
bindep role itself is otherwise totally non-zuul specific.

Change-Id: I95e78dd25a1a54b3ce5f2ddb18228a183d3c06ad
2017-07-09 09:27:09 -05:00
Monty Taylor
1ba3e583f3
Make sure bindep is on the node
OpenStack nodes pre-install bindep, but other nodes may not. Check to
see if bindep is on the node. If so, use it. If not, make a temp dir
that we remove at the end of the role and install bindep into a virtualenv
in that tempdir.

Change-Id: I3f34c178254add2143dc7f1b9758844480d7d914
2017-07-09 07:46:07 -05:00
Monty Taylor
651c735a33
Delete run-bindep role
It's a leftover duplicate. The role is called bindep now.

Change-Id: I4c9f3dd74dc8a16ec421aaba468269ffea00f28c
2017-07-07 17:13:00 -05:00
Monty Taylor
055de47b4e
Add zuul_work_dir default to one-project roles
We'd like to be able to make some jobs that run tox on other projects
for ease of testing. This should allow us to do that.

Change-Id: I774a76eaaea16d8ea218b439a099b5c9335c2fc5
2017-07-07 17:04:46 -05:00
Monty Taylor
3dc03ee0d6
Rename zuul-revoke-sudo to revoke-sudo
Depends-On: If639d35ded59621c38d0ecb16344817fd176c31c
Change-Id: I51454b86b5d8b6c3c26615437a3b7ce386134435
2017-07-06 19:14:53 -05:00
Monty Taylor
4b9fc09a1c
Port in tox jobs from openstack-zuul-jobs
The original idea was that we'd have a "python27" job. But it turns out
that "python27" isn't actually as universal as you might think.
"tox-py27" on the other hand is a thing that can and should always work
for people who want to run tox with the py27 env.

Port in the jobs we had in openstack-zuul-jobs.

Also, copy in the text of the old shell scripts so that we can iterate on
them and make them better piecemeal.

These are named zuul-tox not tox because we already have tox jobs
defined elsewhere. We'll need to do the naming dance while we work on
them.

Change-Id: I813f3f2ae138c07918556bc81655518023527131
2017-07-06 11:18:47 -05:00
Monty Taylor
10a959d5e6
Add run-bindep role and add it to unittests pre
Before we revoke sudo, we need to run bindep in the project. Add
the run-bindep role.

Copy the content of the jenkins script for now. This way we can iterate
on the content in smaller chunks.

Change-Id: Ib893b06d05039af078e6eea22e882f6f1efae226
2017-06-27 15:32:36 -05:00
James E. Blair
7e0d13d1cb Add extra-test-setup role
Change-Id: Icad9896e524c69e92e9ceabd86c6ca28360887fa
Co-Authored-By: Paul Belanger <pabelanger@redhat.com>
2017-06-08 16:14:32 -07:00
James E. Blair
46684654cb Add revoke-sudo role
Also add a .gitignore and establish a documentation pattern.

Change-Id: Ib447ac13d03de4ab61171d50b19117ff654ad329
Co-Authored-By: Paul Belanger <pabelanger@redhat.com>
2017-06-08 15:19:43 -07:00