Commit Graph

19 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
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
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
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
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
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
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