13670 Commits

Author SHA1 Message Date
Zuul
744d7fb737 Merge "Remove infracloud references" 2018-08-20 20:21:40 +00:00
Zuul
d9ee39fa47 Merge "haproxy: don't manage rsyslog service" 2018-08-20 16:57:10 +00: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
Monty Taylor
83ebf61e07
Be more explicit about puppet paths
puppet wants the code to be in /opt/system-config/production because of
the environment config. bridge just wants /opt/system-config because
it's an ansible server.

Rather than relying on inferring things, just be explicit about what we
want where.

Depends-On: https://review.openstack.org/593134
Change-Id: I9e749d2c50f7d8a7b0681fe48f38f4741c8a8d01
2018-08-17 14:26:22 -05:00
Monty Taylor
a634593a05
Set mgmt_hieradata in puppet group_vars
This is not a variable describing the system-under-management
bridge.openstack.org - it's a variable that is always true for all
systems in the puppet group.

As a result, update the puppet apply test to figure out which directory
we should be copying modules _from_ - since the puppet4 tests will be
unhappy otherwise.

Change-Id: Iddee83944bd85f69acf4fcfde83dc70304386baf
2018-08-17 14:25:50 -05:00
James E. Blair
ec69c4706d haproxy: don't manage rsyslog service
Ansible handles rsyslog, so rather than having both systems attempting
to manage the service, just let Ansible do it.  However, we still install
the haproxy rsyslog config file in Puppet for now.  The downside of that
is that an initial server build, or change to the config file, will not
cause rsyslog to reload.  That will need to be done manually until the
rest of this is ported to Ansible.

Change-Id: I19060fddf55e7e9f7030e49592f20a4a7faca429
2018-08-17 11:37:58 -07:00
Monty Taylor
dfcd9c5403
Be explicit about where to install roles
The first entry is where ansible galaxy will install roles. We want that
to be /etc/ansible/roles, not overlaid on the system-config repo.

Pass --roles-path to ansible-galaxy to make sure they go to the right
place.

Change-Id: I109dc004acad32a515c6a1caca50ab38edc62aed
2018-08-17 13:09:59 -05:00
Zuul
98ff30b699 Merge "Remove unneeded ssl cert expiry check" 2018-08-17 18:09:18 +00:00
Monty Taylor
03f52d0bc8
Move ansible log into directory
file: state=touch returns changed every time. Instead, put the log files
into a /var/log/ansible directory.

Change-Id: I086d803f0e532b9da41cb01d4e7d2ed66245dfc1
2018-08-17 12:57:20 -05:00
Zuul
2b575b5013 Merge "Set mgmt_puppet_module_dir publically" 2018-08-17 17:54:54 +00:00
Zuul
69827676ee Merge "Add base.yaml to kick.sh" 2018-08-17 17:50:53 +00:00
Zuul
ef9292b153 Merge "Turn on fact caching" 2018-08-17 17:50:52 +00:00
Clark Boylan
aa65ac21c7 Remove unneeded ssl cert expiry check
We don't manage the ssl cert (or anything else) on
openstackid-resources.openstack.org. Lets stop checking when its cert
expires as it appears to have auto renewing short term cert validity
(which results in a lot of email).

Change-Id: I9f08a09d76b2862de89a6ee022ade1ac637d9aeb
2018-08-17 09:56:14 -07:00
Monty Taylor
18e45a99dd
Update launch-node for the new Ansible world
Replace launch-node.py with launch-node-ansible.py. Update it to
delete the inventory cache correctly.

Also, update the docs to list Bionic by default rather than Trusty.

Change-Id: Iadda897b7e71dc12c8db4ced120894054169bbb8
2018-08-17 11:53:52 -05:00
Monty Taylor
c716240692
Clean up puppetmaster puppet config handled by ansible
We have a bunch of this handled now in ansible, so remove the old stuff.

Remove puppetmaster group management files. It's confusing for there to
be two files. Remove the old one.

Remove mqtt config. This isn't really a thing currently, and we're
eyeing running things from zuul anyway, so no need to port to ansible.

Change-Id: I8b64d21eadcc4a08bd5e5440fc5f756ae5bcd46b
2018-08-17 11:53:52 -05:00
Monty Taylor
ee622108a5
Remove restricted and multiverse from ubuntu servers
restricted is supported software that is non-free.
multiverse is unsupported software that is non-free.

Use of software from either would be unacceptable on any Infra server,
so remove them from the sources.list files.

While we're in there, clean things up a little bit and add an arm file
for bionic.

Change-Id: I55a3b3d411e8a3496a4e6910baaf72f3c192e9d4
2018-08-17 11:53:52 -05:00
Monty Taylor
5380eb5b6e
Remove purge_apt_sources
This was a setting added for infra cloud that had to do with bootstrap
order. It seems to have been cargo-culted elsewhere. Remove it. Let's be
specific with our sources.list files.

Change-Id: Iefbd59ad20e9fdc450d9a0c4e58b9cf4a89ff5a3
2018-08-17 11:53:52 -05:00
Monty Taylor
03d09b777e
Use openstack and groups inventory from system-config
Rather than copying these out of system-config inside of
install-ansible, just point the ansible.cfg to them in the system-config
location. This way as changes come in that have group updates we don't
have to first apply them to the system.

Change-Id: I1cefd7848b7f3f1adc8fbfa080eb9831124a297b
2018-08-17 11:47:13 -05:00
Monty Taylor
92c9a7c869
Clean up puppet variables and playbooks
The puppet playbooks were some of the first we wrote, so they're
slightly wonky.

Remove '---' lines that are completely unnecessary.

Fix indentation.

Move some variables that are the same everywhere into
ansible variables.

Put puppet related variables into the puppet group_vars.

Stop running puppet on localhost in the git playbook.

Change-Id: I2d2a4acccd3523f1931ebec5977771d5a310a0c7
2018-08-17 09:41:12 -05:00
Monty Taylor
1a8c2f66da
Move /opt/system-config/production to /opt/system-config
The production directory is a relic from the puppet environment concept,
which we do not use. Remove it.

The puppet apply tests run puppet locally, where the production
environment is still needed, so don't update the paths in the
tools/prep-apply.sh.

Depends-On: https://review.openstack.org/592946
Change-Id: I82572cc616e3c994eab38b0de8c3c72cb5ec5413
2018-08-17 09:41:02 -05:00
Mohammed Naser
de9c7a7c6b Use Kernel.org mirror for OpenSUSE
The mirror that we were using seems to be out of date and not
properly updated, causing jobs to fail.

This fixes this issue by updating from the mirror from Kernel.org
which seems to stable and it has all the needed updated packages.

Change-Id: I079d9dd8a34e24b33ee35d4dad934e8ca4b60cee
2018-08-17 10:40:51 -04:00
Monty Taylor
7a0ac4ce03
Set mgmt_puppet_module_dir publically
This was set in the private variables on brige for the transition. But
it can go here now.

Change-Id: I3883672bf549681f8a4f26871c485a71de8ee056
2018-08-17 09:38:35 -05:00
Monty Taylor
2e6e67e8d2
Add base.yaml to kick.sh
There are things in base that are needed. Add them to kick.sh.

Change-Id: I94a92cd98fa62552df40b73976bcec764c66ebec
2018-08-17 05:44:37 -05:00
Monty Taylor
c4ae268492
Turn on fact caching
We do this for zuul jobs already, so let's do it for our production
runs.

Shift the inventory cache location down a directory so that launch-node
can invalidate the inventory cache.

Change-Id: I52b1c48d091c07e4205c1a7233448925ca26d8d3
2018-08-17 05:44:37 -05:00
Zuul
f3036203c3 Merge "Remove base.yaml things from openstack_project::server" 2018-08-17 10:43:53 +00:00
Zuul
baa717a1f9 Merge "Add raw blocks to storyboard exim routers" 2018-08-16 22:35:59 +00:00
Monty Taylor
bab6fcad3c
Remove base.yaml things from openstack_project::server
Now that we've got base server stuff rewritten in ansible, remove the
old puppet versions.

Depends-On: https://review.openstack.org/588326
Change-Id: I5c82fe6fd25b9ddaa77747db377ffa7e8bf23c7b
2018-08-16 17:25:10 -05:00