Commit Graph

27 Commits

Author SHA1 Message Date
Clark Boylan 87c87b6d64 Retire this repo
The opendev project has been moving away from puppet and this is one of
the puppet modules that is no longer used. To simplify things for us we
are taking the extra step of retiring this repo.

Change-Id: I0d5dd508af2482bc43db9c25bf197dfb7d0eadc4
2022-02-17 11:49:09 -08:00
OpenDev Sysadmins a9e904f821 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:25:37 +00:00
Ian Wienand 1b56e53eac Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I52a3f382c5059a03d9c61662a48d06e20014ec4c
2019-03-24 20:35:40 +00:00
Clark Boylan 4ef7a6d3bc Simplify service management
This simplification takes advantage of the fact that ensure => running
is equivalent to ensure => true (and similar for stopped and false) to
reduce the number of variables we have to track to ensure a service is
both enabled and running or disabled and stopped.

This also fixes krb5-kpropd to run on boot without waiting for a puppet
pulse.

Change-Id: I7255cd6bd719946b7525bcbbff983038d81b48a6
2019-02-22 14:18:47 -08:00
Clark Boylan 672583bd10 Workaround broken ubuntu packaging
Since ubuntu 16.04 or so the krb5-admin-server package is broken in the
postinst scripts. What happens is they try to set a debconf value if the
defaults file for this service sets RUN_KADMIND to false. Unfortunately
the key/question debconf is setting has no associated templates entry so
package install fails.

We work around this by not setting this value in the defaults file on
newer ubuntu and instead rely on our init system to manage that state.

Change-Id: I0ffe2a2acbe76acb0069df18253367ed2528241f
2019-02-21 17:57:25 -08:00
Colleen Murphy c30510ad2f Add beaker tests
Add tests to ensure the manifests apply cleanly and a kerberos ticket
can be granted.

The krb5-admin-server service won't start without the realm being
manually set up, so add those steps in between running the manifest once
and checking for idempotency. Once the realm is set up, the service will
automatically start and puppet shouldn't try to start it again.

Change-Id: I7f8aea80ea40bf4ff28fafa6a53c9d26e9c303ec
2018-07-12 15:57:21 +02:00
Colleen Murphy 0e2cbe1259 Fix default admin_server parameter
There is no fdqn fact. Use fqdn instead.

Change-Id: I0134f7adce5ce6c090e1959a958aba1fd4538b24
2018-06-30 21:37:35 +02:00
Paul Belanger 4002c707ec
Add systemd support for krb5-kpropd
Add a systemd script, which is backported from Artful. So good news if
we are still running puppet when ubuntu 18.04 upgrades happen, we can
delete this code.

Change-Id: I806abac132efedfd2b97dea1d0954e6235f26673
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-12-15 15:24:44 -05:00
Colleen Murphy 7f3f2aa074 Depend on helper gem for spec_helper_acceptance
Instead of keeping a local copy of spec_helper_acceptance.rb and
requiring updates to all modules for any change, we can move it into the
common helper gem and require it from there. This will make it easier to
create and review changes that affect all puppet modules. Also change
the Gemfile to look for the gem in the local workspace if running in a
zuul environment.

Change-Id: I2dea0aa652ce3aa6323c533e3c61cb4f28fe2dd1
2017-08-18 10:41:43 +02:00
Colleen Murphy 7a9a25a583 Fix beaker on xenial
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.

Change-Id: Ib4b6a09d50f1e9a2eaa9ae32c70b1fed1f02ae4e
2017-06-24 15:49:16 +02:00
Spencer Krum d8ae227d7b Use new infra_spec_helper for gem dependencies
Change-Id: I404c7588e1ede19d8c204ce0d589e16fb089c16e
2016-06-21 18:38:47 -07:00
Jenkins 996470c9d1 Merge "Don't have the server install the client" 2016-06-16 16:53:07 +00:00
Spencer Krum d8e5a09db1 Pin google-api-client; sanitize Gemfile
Change-Id: Iabadadc6510c1f5ada0ddfe213880e1e893d0186
2016-04-14 15:20:08 -07:00
James E. Blair 55eee25951 Don't have the server install the client
This prohibits the client being installed some other way.  If we
want to install afs on a kerberos server, it will want to include
the client.  If we don't want to install afs but we do want to
install kerb clients, we will need to add kerberos::client to the
kdc definition.

Change-Id: I6f2a370b521da08184e388ae0f4ceff363af5c0b
2016-04-14 09:13:30 -07:00
James E. Blair 767b4f925c Add an @ sign because puppet says to
Apparently not having enough @ signs causes warnings.

Change-Id: I58ddd0473fca6052ac3b0a974f01177cb783cf89
2016-04-13 16:10:03 -07:00
Andrey Nikitin 491ff21d29 Order of the classes parameters is refactored
Order and intendation of those parameters are changed
to follow Puppet Style Guide recommendation [0].
Moreover, it will allow to an user to find much faster
a variable in a list of variables.

[0]. https://docs.puppetlabs.com/guides/style_guide.html

Change-Id: I80d176298cd8897f0d6e8b056823f4ad97fbef44
2016-03-21 13:01:20 +03:00
Spencer Krum 7ecb7c07f9 Fix target path for regular git clone during tests
Use same target directory for zuul-cloner and
the regular git command.

Change-Id: I7e37bd92432ae54eca3fa447fad4ed3b4fb7db6f
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
2015-08-19 16:36:44 -07:00
Colleen Murphy a6e3db8a85 Add Gemfile and puppet 4 checks
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins. Also fix lint
errors caught by the puppet-lint-absolute_classname-check gem as well
as arrow alignment errors not caught before.

Change-Id: I0b891a9f89508bca8cd30cb2fb2253779a3661b4
2015-08-03 18:42:39 -07:00
Spencer Krum 1b8f395d04 Boilerplate beaker-rspec files
Change-Id: I1c781b7de0fe78b59d68f097cb152d5bc834e96c
2015-07-28 02:04:43 -07:00
Monty Taylor 696d1c4331 Add support for CentOS
Turns out the krb5-user package is called krb5-workstation on RH.

Change-Id: I663ce7dfcb9663ce24e63c50308df5e51841731c
2015-06-28 13:08:47 -04:00
Jeremy Stanley eb53af1a02 Replace ci.o.o links with docs.o.o/infra
The http://ci.openstack.org/ documentation site has been deprecated,
replaced by redirects to corresponding paths within
http://docs.openstack.org/infra/ where other Project Infrastructure
documentation already resides.

Change-Id: Ib3ee9656df85c71a6a4c7592b3b94c3ac6f77ca8
2015-05-14 21:38:18 +00:00
Ramy Asselin 0938743e6b Rename openstackci to openstackinfra
Change-Id: I85081d7f75adb602121872e9bfd469af0a24ed29
2015-04-20 13:44:42 -07:00
Jeremy Stanley 66c2969922 Add missing LICENSE file
The content of this project is Apache 2 licensed, but we should
include a standard LICENSE file just to be clear about that.

Change-Id: Iee6320b9d7e35fbe8d3b0a9794f3e485c18ef2c8
2015-01-29 22:58:02 +00:00
Mikhail S Medvedev c464b68c29 Add standard puppet module files and .gitreview
This module has been split out from system-config, and additional
    files are added to create a proper puppet module.

    In addition, puppet-lint issues were fixed for manifests/*

    The spec:
    http://specs.openstack.org/openstack-infra/infra-specs/specs/puppet-modules.html

Change-Id: I69129e103857694aab0d1a12d7776b4a5856579d
2015-01-29 09:26:09 -06:00
James E. Blair 7bb7596eb1 Fix kprop cron
The space around the '=' was resulting in:

  /usr/local/bin/run-kprop.sh: 2: /usr/local/bin/run-kprop.sh: kdclist: not found

Change-Id: I7e1b5499cb324a5b7986e8fd98d5f8492eed3390
2014-10-20 15:49:11 -07:00
Monty Taylor 5cb1be47f2 Add AFS
I don't really think this needs any further explanation.

Change-Id: I41378bd320c6c6fad2c981d5cc773486af075c41
2014-10-20 15:13:14 -05:00
Monty Taylor c9aa52cb41 Add Kerberos config
Step one in an AFS cell is getting kerberos working. This does not
provide end-to-end KDC management - the realm still needs to be
created by hand.

Change-Id: I891d784d676ab79e7aca9c883dd9e705a30db6e5
2014-10-20 15:13:14 -05:00