Commit Graph

24 Commits

Author SHA1 Message Date
Paul Belanger 97ee6c828b Drop molecule support
This was an experiment to see if using molecule was something we wanted
to do. However, a lot of tihs logic is duplicated by zuul.

Change-Id: Ie59edff5825496bb1f34825ae2f916afdf198593
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-09-09 17:43:42 -04:00
Paul Belanger 93157d2f9e Clean up references to openstack.org
With opendev.org now online, we can start using it over openstack.org.

Change-Id: Ia28113926efd70bee28aec7b88edcfdb365e6665
Depends-On: https://review.opendev.org/654017
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-04-20 14:02:59 -04:00
Paul Belanger 17e04fb576 Switch to yamllint for tox -elinters
It was a lot of overhead, with little gain, to run molecule lint.
Switch back to just using yamllint.

Change-Id: Ie4e4d5d77dcb864f7b76cd356cab7adf9516d1b3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-08 10:10:34 -05:00
Paul Belanger 4666971ac5 Switch to molecule for testing
Molecule is the defacto testing tool for ansible roles. Switch to it to
make it easier for users to test.

Change-Id: I881e895877c9702e62c4415d48b0f33f34f7487b
Depends-On: https://review.openstack.org/593369
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-19 11:32:19 -04:00
Paul Belanger efc9d57e2c Switch to testinfra for role validation
We can switch to using testinfra to help ensure ansible did everything
properly.

Change-Id: I9e21cd16f1149d76308043a97658c93e7f14ac42
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-16 20:26:51 -04:00
Paul Belanger e4a7b6c70d
Limit linters to current working directory
Change-Id: Ia50f351327ba90be8b8d846318cfa014560067c0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-26 15:24:04 -04:00
Paul Belanger 5e57ef60e1
Remove tox functional
This is no longer needed.

Change-Id: Ia2a26a4109b3a7116dbc7453ca3367fcc5de1236
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-19 14:22:17 -04:00
Paul Belanger 9105363441
Update tox -edocs settings
Clean up our README.rst file and use variables right from
defaults/main.yaml. This will ensure they are always up to date.

Change-Id: If2f8bf5b04491f54590f840cbaa98f2d67faf8d0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-27 21:30:36 -04:00
Paul Belanger 22befecd1f
Initial support for zuulv3
Now that zuulv3 is live, we can start having in repo jobs.

Change-Id: I0463d440abac26b4592fce0e26960be33c0a4efc
Depends-On: I7db3518f6dbd9c9315ebb5d4c40c6e18764b4e94
Depends-On: I3bff01ebac17c40988df60e7e4dd6e7fdc88a896
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-10-20 09:52:32 -04:00
Paul Belanger ef178a3788 Fix sudo permissions for elements and scripts dir
The reason we didn't catch this is because the jenkins slaves already
have these folders created. In a future patch we should move these
into /var/lib/nodepool

Change-Id: I01349f6bc21002e638ecbd301f4fb6269df37376
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-13 13:14:46 -05:00
Jesse Pretorius c444df1bf9 Move all lints tests to consolidated 'linters' tox environment
OpenStack-Infra has requested that lint tests be pipelined into the 'linters'
tox target in order to make more efficient use of nodepool resources.

This patch:
- adds a 'linters' target which executes all required lint tests.
- removes previously seperated tox targets for lint tests.

Change-Id: I8e8ff6f16eb46f9d62159d2ac6c1ff8deeafe3b5
2016-02-08 16:40:14 +00:00
Paul Belanger bc99142d33 Switch to testenv:functional
This brings our tox.ini files inline with other OpenStack projects.

Change-Id: I19bf33f54c8aa3e5eddd6823fe6d273acecd27bd
Depends-On: I376e51824c46f9b5eb4a4cff01aaa176632087dd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-18 15:25:52 -05:00
Paul Belanger f43e3edc8e Add missing flake8 environment
Change-Id: I3653f0c90c79f47daab64bc969974f871728fb35
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-08 16:05:38 -05:00
Paul Belanger e3db618938 Drop minversion (tox.ini) for centos7
Change-Id: I8827a609bdc4f54e40630b7145d71fcb2d023a1a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-23 19:57:52 -05:00
Paul Belanger 18b8f87a6e Add documentation requirements for gate
Change-Id: I83ae3bb426c1a951216e2ca0509d1b5ab5020ecc
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-21 17:59:29 -05:00
Paul Belanger 27d3428548 Move dynamic rolename into test.yaml
Change-Id: I187b73aad550f01711db84aff9d46234a216e15e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-18 21:03:59 -05:00
Paul Belanger b611a875eb Use ANSIBLE_CONFIG for tox -eansible-functional
Change-Id: I21e3f5f5adfef4642817049e5dd6c997384e3226
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-18 19:42:24 -05:00
Paul Belanger 39daa4ca2d Disable buffering for ansible-playbook
Force stdin, stdout and stderr to be totally unbuffered. This will
help with our gate jobs being run under Jenkins.

Change-Id: I334b164fa2fbb32f5a5fc56b7bb873a71cb2984c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-18 19:16:38 -05:00
Paul Belanger ceb2d3643a Add tox -epep8 support
Change-Id: I1815c42f74df237e810332b55c0e890d80ebada9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-17 17:07:39 -05:00
Paul Belanger 16989eac87 Drop --sudo from ansible-functional
Change-Id: I1a32802f09949ece40a23a972cda715882f3a276
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-17 14:15:53 -05:00
Paul Belanger 622cbcb1d3 Add tox -eansible-functional job
Change-Id: Ica8813503c2692a41212266b9bca3fe74e5ed108
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-17 13:29:23 -05:00
Paul Belanger 463ed2346a Better trapping of errors for ansible-lint
Change-Id: I6ccea21ad14842c20d61ea142727130853a0a2c0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-13 20:55:55 -05:00
Paul Belanger bbffbc01d9 Add ansible-syntax to tox -eansible-lint
Here we are using ansible-playbook to validate the syntax of our role.

Change-Id: I751392769774b44b9cf8d6f0cddf60b591c345cd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-12 18:40:47 -05:00
Paul Belanger 65242d65ab Add tox -eansible-lint support
This is our first of many tests that we'll be gating on.

Change-Id: I79bee90bc989463a115b4e58c8c5226be6fe4f6f
Depends-On: Ia0d691baca3d9ef7386b2748bc6042a546e6d5f6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-11 21:32:54 -05:00