Commit Graph

37 Commits

Author SHA1 Message Date
Andreas Jaeger c4a0810afb Retire repo
Depends-On: https://review.opendev.org/731947
Change-Id: I9cb64cb36e2329cf763c483013b344e3b230e37c
2020-06-05 16:15:59 +02:00
OpenDev Sysadmins 1f36785c5e 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:26:04 +00:00
Ian Wienand dd1b23af05 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: Ie9674a375dff0ce96a792b27ed81ed24fb1188b9
2019-03-24 20:35:36 +00:00
Colleen Murphy a88ed42898 Fix template variables for puppet 4
On puppet 4, undef will stop evaluating to :undef in the templates and
instead start evaluating to nil, so check for both to cover our bases.

Change-Id: I6e446cf1a15c9cc5e24f93e755fa3000298f7caa
2018-07-25 11:39:34 +02:00
Colleen Murphy f10adeb3a8 Update Gemfile for Zuulv3
The logic in the Gemfile was relying on Zuulv2 variables to find out
whether the spec helper gem was already available on disk, and since
Zuulv3 has changed things it was failing to find it and downloading the
master version instead. This patch ensures the Gemfile looks for the gem
in the right place when running in CI.

Change-Id: Iec89bcc9c335e44f83b08e1048bc848946036f44
2018-07-12 09:57:43 +02:00
Colleen Murphy 65c5bb3d95 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: I4f8f403452416a1b6203684e1b6d7b5e2743dce3
2017-08-18 10:40:36 +02:00
Jenkins 03b90b3a98 Merge "Fix beaker on xenial" 2017-05-03 14:00:56 +00:00
Colleen Murphy b5cf2999ec Fix beaker on xenial
Since the beaker jobs are being run on xenial, we need a special nodeset
for it, otherwise beaker gives an error:

 beaker-hostgenerator was not able to use this value as input.
 Exiting with an Error.

We also want to install puppet from the Ubuntu repos rather than from
puppetlabs, since puppetlabs doesn't support puppet 3 for Xenial. For
centos we can keep the install process the same.

Change-Id: Ifd2244ae9dd212b2475f9cd6adb994bc058a4769
Depends-On: Ife2993b07dd995fc97676c002a91d0e695407522
2017-05-02 19:23:45 +02:00
Paul Belanger d311c896db
Add bindep.txt file
Bindep is a tool for checking the presence of binary packages needed
to use an application / library. It started life as a way to make it
easier to set up a development environment for OpenStack projects.

Change-Id: Ife2993b07dd995fc97676c002a91d0e695407522
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-01 21:01:02 -04:00
Matthew Treinish 492bf12e80
Set an ansible callback directory
This commit adds the code to manage a ansible callback_plugins directory
and sets in the ansible.cfg. This will be used for adding our own
callback plugins.

Change-Id: I697a74a5dbd63e9a87913c96a3e9be93ee7860da
2017-04-28 18:30:16 -04:00
Ian Wienand 0a05c670c3 Allow passing source for ansible
Allow passing the source parameter for the pip install of ansible

Change-Id: Ia6b50e6889a08edefb4e17957ba37d86f8db7cdb
2017-01-11 15:24:19 +11:00
Ricardo Carrillo Cruz ac07f3ae2d Expose Ansible version on the module signature
The version is hardcoded within the class code, preventing to
specify a specific version of Ansible for nodes using this class.
In the infracloud baremetal node I need Ansible 2.1.1.0, I will
propose a subsequent patch on system-config/site.pp after this
merges.

Change-Id: Ie4120c8744eed78022ebcc3ea696142d1a1375aa
2016-08-11 11:18:42 +02:00
Jenkins d8198978d5 Merge "Add support for retry files configuration" 2016-07-19 16:15:25 +00:00
James E. Blair 73bf1baa15 Add support for retry files configuration
Change-Id: I2b9806de3516ab1a2606bd982f2eecd432d19527
2016-07-18 16:34:36 -07:00
Spencer Krum 011f8fa03b Use new infra_spec_helper for gem dependencies
Change-Id: I401b27985a701be92ca33f02cbd563bd0795f0f3
2016-06-21 18:37:30 -07:00
Philip Marc Schwartz 1991e4e045 Update pip provider to use openstack_pip provider
Change-Id: Ifdf3a2ac1d40ba93777ae9c0ae9de863cabdcb46
Signed-off-by: Philip Marc Schwartz <philip@progmad.com>
2016-06-16 10:19:03 -04:00
James E. Blair c6c51f90f1 Pin to ansible 2.0.2.0
There are two observed failures with 2.1:

* Our group hiera files are not being copied over.
* ansible_module_puppet_post_puppetdb.py causes a "MODULE FAILURE".

Change-Id: I79fd382180dfe3b024fdcdab8a5a984800fad336
2016-05-26 11:55:35 -07:00
Spencer Krum 33164d2340 Pin google-api-client; sanitize Gemfile
Change-Id: I9e068ec406ad854beb1fc2d77572688d27bf7323
2016-04-14 15:16:38 -07:00
Andrey Nikitin 7286377678 Indentation of the class parameters is refactored
Indentation of those parameters is changed
to follow Puppet Style Guide recommendation [0].

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

Change-Id: I5efd9af92bb7c7993c912d68baa1a25436cbca14
2016-03-22 12:48:33 +03:00
Monty Taylor 534b2d8d17 Remove an ensure absent
Once the file is removed, we don't need to ensure it's absent anymore.

Change-Id: Ic093df3cc243d10547bbebe8adb897bf13c6b4b1
2015-11-27 13:13:02 -05:00
Monty Taylor 4cf7f3da7b Stop installing the puppet inventory
Pulling inventory from puppetmaster was a neat hack, but it was also
a hack. Let's stop providing it.

Depends-On: Ic6809ed0b7014d7aebd414bf3a342e3a37eb10b6
Change-Id: I6bb66cecca8c3ddd6d2cef2a05324faa67ca98c2
2015-11-27 13:12:31 -05:00
Bruno Tavares a133b81441 Move test assertions closer to apply.
As discussed on another project patches when introducing tests[1], we
would like to keep the tests closer to the where we apply the spec.

This change makes the testing structure consistent to the feedback given
on puppet-bandersnatch discussion.

[1] https://review.openstack.org/#/c/221941/

Change-Id: I7d0d1dc856f03f422fa5331a98f20d5661c462be
Co-Authored-By: Danilo Ramalho <dramalho@thoughtworks.com>
2015-09-24 20:01:04 -03:00
Danilo Ramalho a86dbdb500 Add acceptance tests for puppet-ansible.
Add acceptance tests for puppet-ansible module so that once the module
is applied we check if files were created and packages were installed.

Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com>
Change-Id: Ic569a70737f7e9d0a86c14e1f299b308ab9d3986
2015-09-21 19:27:38 -03:00
Spencer Krum 5e99e00dbc Fix target path for regular git clone during tests
Use same target directory for zuul-cloner and
the regular git command.

Change-Id: Iff07b9151a98059e1bbcc13139307f91273488d5
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
2015-08-19 16:33:52 -07:00
Spencer Krum dbdec6d180 Boilerplate beaker-rspec files
Change-Id: I425c43406d09140c8f9ff7a2e72a19ba1ccc4b61
2015-07-28 02:03:37 -07:00
Colleen Murphy dfca45ee20 Remove puppet-lint-numericvariable gem
Variables with numbers for names are valid as regex capture groups in
puppet 4[1], so this check is not beneficial and can be
counterproductive when we do actually want to have numeric variables.

[1] https://docs.puppetlabs.com/puppet/latest/reference/lang_variables.html#naming

Change-Id: Idb6b8f2b5350496ba41f3d559ccbd07d9e983573
2015-07-21 19:28:38 -07:00
Colleen Murphy e250447f72 Add Gemfile and puppet 4 checks + fix lint errors
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins.

This patch also fixes lint errors caught by the
puppet-lint-absolute_classname-check gem. It removes a duplicate
inclusion of the logrotate class rather than fixing its namespace
issue.

Change-Id: I263b8a80a18bc2607d547caac7e8587e2e4dd5ea
2015-07-08 16:33:33 -07:00
Jeremy Stanley edb1dddb15 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: Ie1eefb4da90a8ddae1260ebab120051ee981bdab
2015-05-14 21:38:16 +00:00
Ramy Asselin 6e925f1fd6 Rename openstackci to openstackinfra
Change-Id: Ib9cbd8a479db262fd84b8fb31cb761bde156f925
2015-04-20 13:42:26 -07:00
Monty Taylor 1769fbd75d Remove embedded ansible role
Once we have standalone ansible roles, we don't need to embed the
ansible code in the puppet module. We also don't need to delete the
existing roles path, as the follow on standalone role should go in
place, but we want the existing role to exist in the mean time.

Change-Id: I76d5cab55942beaff44ea5f289f93ff6ce772c5f
2015-03-03 15:10:50 -08:00
Clark Boylan 365db34b12 Force /etc/ansible/library deletion
Puppet won't remove directories without force => true being set. Set it
to actually get rid of the dir.

Change-Id: I3d3486c50d291a14eb5262998234159f1b4668c1
2015-03-03 15:10:47 -08:00
Monty Taylor 36da8fc39b Put the library file into the role
Roles can contain embedded library code, which is how roles work when
you distribute them on ansible galaxy. Put the library there and remove
the old location to prepare for standalone modules.

Change-Id: Iaa7906f71bb0a3bc255695e72b6ae061407fa2b8
2015-02-22 23:11:24 -05:00
Mikhail S Medvedev 82fc32cb23 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.

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

Change-Id: I17aa1f7ec14b89c529efc0820d2d365856091384
2015-01-29 21:20:35 +00:00
James E. Blair 10801611ea Plumb puppetmaster through ansible task
The previous change to make the puppetmaster configurable in the ansible
playbook omitted passing through the parameter in the task.  Also, add
the parameter to the module docs.

Change-Id: I6bcd58803fd11c3d64608ea1d9fca269042936b4
2014-09-11 10:47:11 -07:00
Clark Boylan a4e1c86595 Make ansible speak to appropriate puppetmaster
With split puppet master infrastructure ansible needs to be told which
puppetmaster to talk to. Do this by making puppetmaster a required
argument to the puppet ansible playbook.

Since we can't rely on the cert listing while this is happening also add
puppet master specific host list files which can be used to specify
which hosts talk to which puppetmaster via the new ansible playbook
feature.

Change-Id: I412c2bd6cb390d00d1b9d0e4630e75776edabbb9
2014-09-10 16:09:06 -07:00
Monty Taylor e6044ae938 Move ansible puppet code into a module
If the logic is just in a role, it's hard to re-use it in a one-off
manner on the command line. By putting it into a module, we can
run:

  ansible git0* -m puppet

To run puppet on the git farm, for instance.

Also, the file is completely not openstack specific, so do it in
such a way that we can submit it as a module upstream.

Change-Id: I35b2850e02ec5da2b41ad14eec9fd6d5a356bc93
2014-07-05 10:17:56 -07:00
Monty Taylor ecf49bf9dd Use ansible instead of direct ssh calls
Instead of a shell script looping over ssh calls, use a simple
ansible playbook. The benefit this gets is that we can then also
script ad-hoc admin tasks either via playbooks or on the command
line. We can also then get rid of the almost entirely unused
salt infrastructure.

Change-Id: I53112bd1f61d94c0521a32016c8a47c8cf9e50f7
2014-07-04 10:01:08 -07:00