13695 Commits

Author SHA1 Message Date
Tony Breeds
da2f6457ce Install the puppetlabs puppet package
in Ica34b7525bab53f8a6d161401f7fb9a2dbe37bc3 we added support for
installing puppet5 on bionic nodes.  However we missed adding the
package name.  Which results in the expansion[1]:

  apt-get --option Dpkg::Options::=--force-confold --assume-yes install -y --force-yes git rubygems

and later puppet isn't installed[2]:

  Failed to stop puppet.service: Unit puppet.service not loaded.

Adding the pkg name gets us[3]

[1] http://logs.openstack.org/41/588441/1/check/build-wheel-mirror-ubuntu-bionic/b3fd7ef/job-output.txt.gz#_2018-08-22_23_42_42_196476
[2] http://logs.openstack.org/41/588441/1/check/build-wheel-mirror-ubuntu-bionic/b3fd7ef/job-output.txt.gz#_2018-08-22_23_42_46_453880
[3] http://paste.openstack.org/raw/728653/

Change-Id: Icbcf5268624a5ff75e0058f8a355881125cd5d79
2018-08-23 14:55:08 +10:00
Zuul
0eaee6c131 Merge "Support puppet5 for bionic" 2018-08-22 21:26:36 +00:00
Zuul
6bd0ce4e8f Merge "Add bridge to cacti" 2018-08-22 03:57:09 +00:00
Monty Taylor
4f9ab4eeb2 Increase the run_all forks count to 20
In testing this on bridge, 20 forks did not appreciably increase the
load average.

Change-Id: Ib571dec0f07e031273dc76a9f364478183b8f578
2018-08-22 01:42:43 +00:00
Zuul
181aa06d8e Merge "Move tox basepython to top-level" 2018-08-22 01:26:16 +00:00
Zuul
dd5c83b31c Merge "run_all.sh: add timestamp" 2018-08-22 00:50:26 +00:00
Zuul
de6e0abfac Merge "Update to latest docs PTI" 2018-08-21 23:50:44 +00:00
Ian Wienand
64ac47cca9 run_all.sh: add timestamp
When cron runs this we don't get any delimination between runs in the
output log file.  Add begin and end markers.

Change-Id: I4d73d7a8943a302e229517bc717175cda260282c
2018-08-22 09:34:39 +10:00
Monty Taylor
de7fbba912
Set path in cron so we can find ansible-playbook
ansible-playbook is in /usr/local/bin which is not in the path in cron.

Change-Id: I633c021936dfbbfdb022aa3d052fe88f32d2ef6a
2018-08-21 16:55:42 -05:00
Ian Wienand
c3c5cb97af Update to latest docs PTI
We now put the documentation-only requirements in doc/requirements.txt
and call build-sphinx directly [1]; see

[1] https://governance.openstack.org/tc/reference/project-testing-interface.html#documentation

Change-Id: I4ade203f1746409275d213f409603199ecb93878
2018-08-22 07:51:46 +10:00
Ian Wienand
93b8f98fac Move tox basepython to top-level
Currently we're building docs with python 2.  It works fine with
python3, so move the basepython override up to the top level so we're
all-python3-all-the-time.

Change-Id: I2c49a0b8bcda72385a9594f40a6b9db10403d688
2018-08-22 07:50:40 +10:00
Monty Taylor
759015f101
Start running puppet cron on bridge.openstack.org
Puppet cron is no longer being run on puppetmaster (yay!) so start
running it in cron from bridge.

Change-Id: Idc579a2660a5450092544c21a2e9e6cb9688e5f9
2018-08-20 18:26:30 -05:00
James E. Blair
048705121e Add bridge to cacti
Change-Id: I7c39867d535bbf102f63f6601a1afa8faba0ae1e
2018-08-20 15:04:01 -07:00
Monty Taylor
1b54971705 Ensure apt is used on ubuntu hosts with zypper
There is an issue with our nb0* hosts where they have zypper installed
for building suse images but that tricks ansible in to thinking it
should use zypper for package management.

This has been submitted upstream as
https://github.com/ansible/ansible/pull/44413

Change-Id: I96f60501e43bfe9c6acb4ce80f8450b245943ca8
2018-08-20 20:45:13 +00:00
Zuul
ac3d9d4651 Merge "Add local copy of pkg_mgr fact module" 2018-08-20 20:41:04 +00:00
Zuul
45930d6cb4 Merge "Have ansible retry ssh connections" 2018-08-20 20:41:03 +00:00
Zuul
bcf322038a Merge "Run base and bridge playbooks in run_all.sh" 2018-08-20 20:41:01 +00:00
Zuul
24c86f1648 Merge "Manage sshd config with ansible" 2018-08-20 20:41:00 +00:00
Zuul
83e651899d Merge "Add non-working hosts to disabled list" 2018-08-20 20:38:21 +00:00
Zuul
744d7fb737 Merge "Remove infracloud references" 2018-08-20 20:21:40 +00:00
Monty Taylor
9911799b76
Add local copy of pkg_mgr fact module
We need to override this. This is the upstream version unmodified.

Change-Id: Iec3a22595a2f1f802922c22e883c4d63859c3886
2018-08-20 13:18:21 -05:00
Monty Taylor
f6533076f7
Have ansible retry ssh connections
In zuul's ansible config we add retries=3 to deal with transient issues.
Do the same thing for our production runs.

Change-Id: Ide53bae34e5e622de1fd4741706752e8728da20e
2018-08-20 13:18:21 -05:00
Zuul
d9ee39fa47 Merge "haproxy: don't manage rsyslog service" 2018-08-20 16:57:10 +00:00
Monty Taylor
1e223dbd4c
Run base and bridge playbooks in run_all.sh
We need to run base before we run the other things.

Change-Id: Iaa8525946e5f09df842ef141213b7ddcb63dfea1
2018-08-20 11:26:42 -05:00
Monty Taylor
eae9a42b4b
Manage sshd config with ansible
We write out a specific sshd config file. Let's do it with ansible.

Change-Id: Ie92b6ec6c8772d31009d1c2a2f7d5558bb38f67a
2018-08-20 11:26:38 -05:00
Monty Taylor
5cccc7a902
Add non-working hosts to disabled list
These hosts are not currently working with ansible from bridge. Let's
explicitly disable them so that it doesn't look like issues are
happening.

Change-Id: Iaad69df2d8666285f12f201e2c9913e84bde9a26
2018-08-20 11:03:55 -05:00
Monty Taylor
0625c289c8
Remove infracloud references
We don't run a cloud anymore and don't use these. With the cfg
management update effort, it's unlikely we'd use them in the form they
are in even if we did get more hardware and decide to run a cloud again.

Remove them for clarity.

Change-Id: I88f58fc7f2768ad60c5387eb775a340cac2c822a
2018-08-20 11:03:55 -05:00
Zuul
5a6132d697 Merge "Fix AFS and CA docs references to puppetmaster" 2018-08-19 16:18:55 +00:00
Zuul
8885bb29aa Merge "Use ansible.cfg for ansible logging config" 2018-08-19 16:18:54 +00:00
Zuul
2011113c3f Merge "Install ssh key on bridge.openstack.org" 2018-08-19 16:18:53 +00:00
Monty Taylor
7ed39c17f5
Fix AFS and CA docs references to puppetmaster
Also, update the locations that we're told to hieraedit.

Change-Id: I41824ff9dc52b3e70a5e55ae71ef49f29511e8e3
2018-08-19 10:26:10 -05:00
Monty Taylor
dd4b26903b
Use ansible.cfg for ansible logging config
We have an ansible logging location defined in ansible.cfg. We don't
need to override it in run_all.sh.

Change-Id: I7f0a8b70a1ccd7a43ce47a3f452b6d0d5c57e96a
2018-08-19 10:26:10 -05:00
Monty Taylor
c4b111691b
Install ssh key on bridge.openstack.org
We copied this over from puppetmaster, but let's manage it in ansible.

The key has been renamed in host_vars on bridge.openstack.org already.

Change-Id: Ia102dbe2ae2836880092b8997cb99135f5197b00
2018-08-19 10:26:10 -05:00
Zuul
33638a24f2 Merge "Update launch-node for the new Ansible world" 2018-08-17 23:02:31 +00:00
Zuul
1da69972ca Merge "Clean up puppetmaster puppet config handled by ansible" 2018-08-17 22:28:25 +00:00
Zuul
ac66fbbf2d Merge "Use is changed instead of | changed" 2018-08-17 22:15:25 +00:00
Zuul
d69a5ab55e Merge "Add loop_control and loop_var to silence a warning" 2018-08-17 22:15:23 +00:00
Zuul
f9baa7ca31 Merge "Add skip: true to disable-puppet-agent" 2018-08-17 22:10:18 +00:00
Zuul
f2a514af44 Merge "Be more explicit about puppet paths" 2018-08-17 22:10:17 +00:00
Zuul
69dad08119 Merge "Set mgmt_hieradata in puppet group_vars" 2018-08-17 22:10:16 +00:00
Zuul
2b0fcd8e4d Merge "Be explicit about where to install roles" 2018-08-17 22:10:14 +00:00
Monty Taylor
fee717fcbd
Use is changed instead of | changed
Using tests as filters is going away. Use it as a test.

Change-Id: Icc60395186c950d50e539592dcabc772dda96c8a
2018-08-17 16:05:26 -05:00
Monty Taylor
01a90aadb3
Add loop_control and loop_var to silence a warning
The CentOS tasks run inside of a loop in tasks/main.yaml. That means
that item has been defined in the loop there. While it's currently
working, go ahead and add loop_control.loop_var to remove the clash.

Change-Id: I0e8288c35645945aa9b43fb02c29576c1ad31d7e
2018-08-17 15:47:26 -05:00
Monty Taylor
5f6c56998e
Add skip: true to disable-puppet-agent
We don't need to do anything on RH as services don't start by default
there.

Change-Id: I38daee0b80006711cb0c4c65aed108ac0c5c215a
2018-08-17 15:38:41 -05:00
Zuul
470f9f8f07 Merge "Move ansible log into directory" 2018-08-17 19:58:43 +00:00
Zuul
c9b60bd93b Merge "Remove restricted and multiverse from ubuntu servers" 2018-08-17 19:58:41 +00:00
Zuul
1a4b01653b Merge "Remove purge_apt_sources" 2018-08-17 19:58:40 +00:00
Zuul
4072eb60cf Merge "Use openstack and groups inventory from system-config" 2018-08-17 19:57:47 +00:00
Zuul
b3d8ffe5db Merge "Clean up puppet variables and playbooks" 2018-08-17 19:57:13 +00:00
Zuul
98f311d74e Merge "Move /opt/system-config/production to /opt/system-config" 2018-08-17 19:55:18 +00:00