Commit Graph

27 Commits

Author SHA1 Message Date
Paul Belanger e467267dd2 Move files into windmill-config
This breaks out all configuration / inventory files into the
windmill-config repo.

Change-Id: I54233307afbe2b76e4456ab1d55073c79da718f5
Depends-On: https://review.openstack.org/640857
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-04 23:35:05 -05:00
Paul Belanger 609e460994 Create ansible virtualenv on bastion
Change-Id: I7b925ae283d25d42b2079d9ee5789b9fef97aab6
Depends-On: https://review.openstack.org/638208
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-04 13:57:22 -05:00
Paul Belanger 88eacbed7a Add ansible.cfg to inventory folder
We should provide a default ansible.cfg file that users can either use
or modify.

Change-Id: Id6258e7a5250428de85693184e51df41094f170c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-01 15:03:45 -05:00
Paul Belanger 36ddb0a7ce Move back to bastion group
This allows for use to run multiple bastion servers, if wanted.

Change-Id: I715d52effd24b1cec110791735547ff6b7d8e2d6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-02-22 22:51:26 -05:00
Paul Belanger 7f5b2ca3f5 Use zuul[zuul_executor] for zuul_pip_name for executor
This entry point includes ARA and openstacksdk dependencies, which are
helpful for base jobs.

Change-Id: Icb7287dfc68c8599d35ac4991c9729c0da963395
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-22 11:45:38 -05:00
Paul Belanger f0016d1505 Invert nodepool logic to manage services
This now matches how we deal with zuul services.

Change-Id: I6cbd6df46470c8a6c754132cd2af1939c8194de8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-20 22:04:16 -05:00
Paul Belanger 14c6144ee9 Add the ability to disable hosts in inventory
It is possible, you don't want to run windmill on a specific host.
Rather then removing the host from the inventory file, you can now place
it in the disabled inventory group and our playbooks will skip it.

This logic is used by the opendev team when running ansible-playbooks
against their control plane.

Change-Id: I717fc4b951c16c5df6286bfe13f0fe5701cf7abb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-18 13:30:03 -05:00
Paul Belanger a5a7ebe8f5 Only install zuul config files if enable
Default zuul config files to false, then enable per group for files that
are actually needed.

Change-Id: Id79ae0a84071e5705a445eedd89e9d07d8fd421a
Depends-On: https://review.openstack.org/629052
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-07 17:24:28 -05:00
Paul Belanger 61c0df4078 Create zuul-connections host group to manage SSH keys
This group will be used to manage SSH keys needed for github / gerrit
connections.

Change-Id: I17364e75e107cfb1bbe8fed7c3f0fff6c0eb5771
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-04 23:58:52 +00:00
Zuul c8fa5ce581 Merge "Switch virtualenv_install_method to package" 2018-12-22 16:53:32 +00:00
Paul Belanger 5887dc051b Switch virtualenv_install_method to package
Default to the distro version of virtualenv, we don't want to get into
the process of managing this dependency.

Change-Id: Ic10ff74ff1bdf99a2d37475abe5434eba3214d4b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-22 10:56:40 -05:00
Paul Belanger a83b7a5cdb Refactor zuul group_vars
We can cut down on some logic if we first disable all zuul services,
then only enabled what we need for each host.

Change-Id: I437a8f80f4dedb4e46074cfbc47310cd8455b237
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-21 20:19:32 -05:00
Paul Belanger daf7e1cd23 Don't manage launcher / builder logging for specific nodepool hosts
If launcher or builder is disabled, don't install logging for it too.

Change-Id: I9aea0143d41fc1dd253f4a2f10774ab410bd0a16
Depends-On: https://review.openstack.org/626649
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-20 14:57:42 -05:00
Paul Belanger ec7a464e2a Add yamllint to tox -elinters
This adds and enabled strict yamllinting on our playbooks / roles.

Change-Id: Ie66ab53c7d6ed4dee1d18a30bdadd9c679549d47
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-12 20:59:38 -05:00
Paul Belanger 74fae84e26 Have openstacksdk manage our clouds.yaml file
We can move this logic into the role now.

Change-Id: I7bcc2b700a3d06ce662dc5a7fb3c938657a7fbf1
Depends-On: https://review.openstack.org/623532
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-07 15:23:35 -05:00
Paul Belanger c26ccf3c7f Default nodepool / zuul users to /bin/bash
Personal preference when trying to debug issues using these accounts.

Change-Id: Ie65b77b41aa97607c0d654af86dd078357974414
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-04 20:50:21 -05:00
Paul Belanger 8a0415d871
Replace shade with openstacksdk
Nodepool no longer depends on shade. It has been updated to use
openstacksdk.

Change-Id: I0b3b021eebd31e5fb176da95f6726ffbe2f5d625
Depends-On: https://review.openstack.org/588413
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-02 21:29:24 -04:00
Artem Goncharov 419e46ea0c
enable gear logging configuration
Geard logging configuration is not enabled by default. This results in
geard floods /var/log/messages with debug info.
Change 568234 provides default geard logging configuration file. With
this change this configuration is being enabled.

Also collect additional logs for gear.

Depends-On: https://review.openstack.org/568234/
Change-Id: I0bfdb398dd806ec92f15eaff67ca5f8251ec193f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-05-16 17:13:47 -04:00
Paul Belanger f2a7f8e55b
Add statsd requirement for gear
Until we fix gear to install statsd, we need to manually install it.

Change-Id: If1e411dc8890969891b8caef779220b3ac38f4bd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-05-16 16:15:10 -04:00
Zuul 1cf09f6031 Merge "Add example zuul connection and main.yaml file" 2018-05-15 20:32:24 +00:00
Paul Belanger e8254a3b54
Add example zuul connection and main.yaml file
Expose the ability for a user to configure these settings.

Change-Id: I999f727b46c60485ce69d06af4189fc9628e63e3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-05-15 14:25:13 -04:00
Paul Belanger 94910113d9
Remove bastion inventory group
There is actually no need for this, it also removes an ansible
warning.

Change-Id: If1ec679c3cb193414acc397226f307f524becc7a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-16 23:13:57 -04:00
Paul Belanger bae56af14b
Use synchronize for nodepool elements
This allows us to purge out of date data on the remote node.

Change-Id: I55fe331ed58eaba5df7472977c7ed4a84272c891
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-10 11:35:29 -04:00
Paul Belanger ec40b725da
Use groups of group over vars_files
Again, this is to allow users the ability to customize the inventory
variables and remove them from the playbooks folder.

Change-Id: I74c4528ad3c6caa725338dac04284f01c387932d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-10 11:13:17 -04:00
Paul Belanger 9661ae9d40
Move group_vars next to our inventory file
By moving our group_vars next to our inventory files, we allow users
to start customizing them.

Change-Id: Ia5354bb0d730551debcd7da95dd9256eaf080099
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-10 11:13:15 -04:00
Paul Belanger a1a7f2cd32
Add statsd01 host
This starts building out support for statsd, which will be helpful for
users who want to start producing reports.

Currently both nodepool / zuul only support ipv4 for statsd. As a
results, limit enabling it on ipv4 hosts for now.

Change-Id: I029376330677e035a292bf95d9e7e63b57947985
Depends-On: https://review.openstack.org/554695
Depends-On: https://review.openstack.org/556209
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-04 13:26:57 -04:00
Paul Belanger 4231eb7cbb
Move inventory to top-level
Reorganize our inventory file into a top-level directory.

Change-Id: Ice7a72cb1e5dc04053e44af9a374639587c8f5c2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-27 21:14:16 -04:00