Commit Graph

60 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov d186d9b921 Fix building release notes for the project
Change-Id: I73893a14e1c18e17e0ba55bd78bc7ea044b25cf0
2023-12-07 18:48:27 +01:00
Zuul 9f13a58e2b Merge "Allow to manage more the one vhost with mq_setup" 2023-08-18 15:30:10 +00:00
Dmitriy Rabotyagov f35126af68 Skip updating service password by default
At the moment we always do attempt to reset passwords for the
keystone services, which in some cases leads to race conditions in
services. Thus, running a role is not idempotent which we fix by
introducing a `service_update_password` variable. So whenever password
needs to be reseted/updated, the variable should be supplied for that.

Change-Id: I11b1046ea91cef7de0b2f6433baabbb144e07700
Closes-Bug: #2023370
2023-06-20 13:57:02 +02:00
Dmitriy Rabotyagov ed5b610177 Allow to manage more the one vhost with mq_setup
This change enables us to supply list of vhosts that needs to be
created or deleted, rather then support only single vhost creation

We also reduce code duplication by leveraging task includes.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/880031
Change-Id: I76548f45a20db29c1bfd5db332b490b670d973a4
2023-06-01 13:47:37 +00:00
OpenStack Release Bot c6d4f0eac2 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I3ef26e106fa982f200d12fa8d39928b30ba32672
2022-12-13 13:22:40 +00:00
niuke 640716ead5 remove unicode prefix from code
Change-Id: I296f28fc121bf1369aefe2a3186590795a141bd3
2022-08-15 09:35:20 +08:00
Andrew Bonney 17973545a1 Add reference_group support to provider_networks module
When deploying a routed environment with layer 3 pods it is
necessary to restrict which hosts have access to physical networks
(net_name) in Neutron's config files. At present it is necessary to
create specific Ansible groups and use 'group_binds' to indicate
where to deploy this configuration.

In more complex deployments where hosts within a 'pod' have mixed
capabilities or purposes this requires the Ansible groups to be
very specific and they become hard to manage.

By adding reference_group support here and setting this to the
'pod' identifier (for example 'rack1_hosts'), the group_binds
can be used to narrow down the hosts within this group (for example
'compute_hosts' or 'compute_hosts_with_sriov').

Change-Id: I67e2e6c41bf7162534a35577ea285aba6ae30663
2022-03-15 13:19:39 +00:00
Zuul c39e643faf Merge "Use newer openstackdocstheme and reno versions" 2020-06-05 11:42:27 +00:00
Zuul 188d7a11a4 Merge "Update docstheme for style" 2020-06-03 18:19:30 +00:00
Andreas Jaeger 4dd5479785 Use newer openstackdocstheme and reno versions
The sync from https://review.opendev.org/733244 updated to
openstackdocstheme 2.2.1 and reno 3.1.0 versions.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Id202db74fa30cc83be912190a005066f093545e4
2020-06-03 20:07:17 +02:00
OpenStack Release Bot 9bb8f5d14b Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: Ia7ca418acc438fefd822af02d7bcf3c2d90c0190
Sem-Ver: feature
2020-06-01 13:19:53 +00:00
Andreas Jaeger a8ff11570e Update docstheme for style
New version of openstackdocstheme (Victoria+) respects pygments_style.
Since this repo is using now Victoria (master) requirements but has
not branched for Ussuri yet, it uses the new version.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Change-Id: Idbbf1481e0a176c2d3346e5e1bdc017b6658327d
2020-05-20 18:52:43 +02:00
Andreas Jaeger c063ad0218 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove setup* files, those are not needed anymore
- Cleanup */source/conf.py to remove now obsolete content.
- remove install_cmd, move constraints into deps, cleanup
  tox.ini
- Enable warnings for docs build, fix problems

Change-Id: I3f91f00195f869c6ec09af1a88cfd189e8a71254
2020-04-27 20:23:20 +02:00
OpenStack Release Bot f20210a62b Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: If61a5a7f391370c84539ea27f4c09a9539c368da
Sem-Ver: feature
2019-10-22 19:03:33 +00:00
mattycarroll 42a993d69c Remove unused Magnum module
This module is not used in the openstack-ansible project and there is a
native ansible module for the same purpose. There will be no supporting
changes for this fix to remove it from use because it is not being used.

Patch set 2: Add release note

Change-Id: Ia516ccfc024218ccfb143d600268875c9013cc22
Closes-bug: #1826247
2019-05-08 15:09:17 +00:00
Zuul 6c80d69bdd Merge "Removal of netloc filters" 2019-04-24 18:58:48 +00:00
Jesse Pretorius 00c22491d0 Remove py_pkgs and packages_file lookups
Neither of these lookups are used in OSA any more, so we can
remove them.

Change-Id: Ib1c19eaf5a16d59e91d5c6c5ced9b30781b1f69b
2019-04-24 14:50:00 +01:00
Georgina 6482c25017 Removal of netloc filters
The ansible urlsplit filter added in 2.4 means that maintaining the
filters netloc, netloc_no_port and netorigin should no longer be
necessary.
All usages of these filters within other openstack repos have been
updated to use urlsplit and merged.

Change-Id: Ief1ec06e205bae7ec114fe0b9bd7d9c4973383dd
Closes-Bug: #1820830
2019-04-23 13:37:52 +00:00
OpenStack Release Bot c1ab05c682 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: I458a7a078687b82d6892b692c42076ccb34e937d
Sem-Ver: feature
2019-04-08 09:22:53 +00:00
Jesse Pretorius b28590f5bd Remove the config_template module
The config_template action module has now been moved into its own git
repository (openstack/ansible-config_template). This has been done to
simplify the ability to use the plugin in other non OpenStack-Ansible
projects.

As part of this, we now need to remove the environment settings given
to ansible so that the common tests repo settings in ansible.cfg take
effect.

Related-Bug: 1791258
Depends-On: https://review.openstack.org/635841
Change-Id: I3a7d8c0c248febc4223029e076062ca68312b104
2019-02-11 16:43:57 +00:00
Jimmy McCrory 3eb9d79a1a Fix connection plugin for Ansible 2.6
inventory_hostname is not reliable to be used as container_name. When
delegating in 2.6+, the inventory_hostname of the delegating host is
passed to the connection plugin, additionally when a host doesn't have
its own container_name variable a cached inventory_hostname is used in
its place.

To get the connection plugin working with Ansible 2.6 this change
essentially allows the container_check to fall through when delegating
to physical hosts or hosts not in the inventory by:
- removing inventory_hostname as a fallback for container_name
- unsetting container_name when delegating to a known physical host
- unsetting container_name when delegating to a host not mentioned in
  the inventory

container_name can no longer be used as a group variable based on
inventory_hostname, it will need to be an inventory/host variable for
each individual host.

Also, when container_user is used the remote_tmp path needs to be set to
a system writable directory instead of the root user's home.

Change-Id: If2eb4c16273e19599f6ec3f0cba6b3573912c6a0
2018-10-18 13:27:27 -07:00
OpenStack Release Bot b72a579d01 Update reno for stable/rocky
Change-Id: I7885c898e32def4a9ddd34c77d114d97ba61cf44
2018-08-10 16:49:13 +00:00
Zuul f655fcbaab Merge "Revert "Add a get_nested filter"" 2018-07-20 17:36:00 +00:00
Jesse Pretorius (odyssey4me) 1e436a2f43 Revert "Add a get_nested filter"
This reverts commit 80a1262252
because we're not using it, and using json_query is simple enough.

Change-Id: I8d5fba867eceb6892a7a995a9b86153e88353480
2018-07-20 11:22:38 +01:00
Jesse Pretorius 23e7c57434 Remove distro package indexing from py_pkgs lookup
The indexing of distro packages by the py_pkgs lookup was
intended for a purpose which never came to fruition. As
such it is not used. The resulting output is somewhat
confusing and very verbose. As such, I think it's best
to remove it.

Change-Id: I0d133804a91feae03e44047eede589c75806b2da
2018-05-09 11:23:52 +01:00
melissaml 2652def714 fix typos in documentation
Change-Id: I33c7c161e549679f47928566b6a4baafd62b2e6d
2018-03-26 06:44:38 +08:00
Kevin Carter f9a5f9e7e3
Update the ssh plugin for selective namespaces
The ssh plugin will now use the `nsenter` command to attach to the
container instead of splitting the command functionality between nspawn
and lxc. With the use of `nsenter` we can now selectively use different
namespaces when remotely executing against a container. A new option was
added to the plugin for "container_namespaces" which is a user provided
interface for passing in the namespaces used to attach to the container.
If this option is undefined the default namespaces will be used for full
container isolation.

Change-Id: I904ee68bbc59a0ee4458401a243246bb3f4c3523
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-03-01 04:47:24 -06:00
OpenStack Release Bot fcf65b89d5 Update reno for stable/queens
Change-Id: I7b1fec79d98997cfe71d8584a01c08caf79cba7a
2018-02-14 15:51:21 +00:00
Kevin Carter c665f9f2a2
Remove the vars plugin as it's no longer used
This plugin is no longer used and conflicts with Ansible 2.4. Master
has recently moved to Ansible 2.4 and placed all of the group_vars back
into the inventory path. Being that the plugin is no longer required
and results in a runtime warning[0] it's being removed.

[0] - http://paste.openstack.org/show/628674/

Change-Id: If91214dd2d2a36da82e5433a3a4a36c3946cbf4e
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-12-12 22:09:29 -06:00
Andreas Jaeger 7145937250 Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: I1694a1b7da68e29e83e2931d40befc1683719c2c
2017-11-17 08:09:51 +01:00
Jean-Philippe Evrard ead9047761 Initial OSA zuul v3 role jobs
This patch implements an initial set of jobs intended to match
the current job execution method. It does not intend to improve
how the jobs are executed - only to replicate what is currently
in openstack-infra/openstack-zuul-jobs and provide the platform
to iterate on.

Change-Id: Id5a41c4f09bfc63b373e83493dd85a53850bd71c
2017-10-17 20:43:54 +00:00
OpenStack Release Bot d54eda4e9d Update reno for stable/pike
Change-Id: Ia7628628484b0834b2ed915aec8e41dd146fade8
2017-08-21 10:34:45 +01:00
Jenkins e5ec919e77 Merge "Add a get_nested filter" 2017-07-07 22:16:35 +00:00
Nolan Brubaker 80a1262252 Add a get_nested filter
When accessing nested facts, such as in ansible_local sections, guard
statements in the when clause can get quite long, due to having to
repeate the 'in/not in' logic for every key at every level.

The get_nested filter attempts to instead to move the guard into a
single line, making the conditions easier to write and maintain.

As example,

   ('openstack_ansible' not in ansible_local or
    'swift' not in ansible_local['openstack_ansible'] or
    'venv_tag' not in ansible_local['openstack_ansible']['swift'] or
    ansible_local['openstack_ansible']['swift']['venv_tag'] == swift_venv_tag)

 could be rewritten as

     get_nested(ansible_local, 'openstack_ansible.swift.venv_tag') == swift_venv_tag

Change-Id: I3b43c25c8783c43cf5285f2b3e7267b2c5712ea0
2017-07-07 19:42:39 +00:00
ZhongShengping 38a7c29364 Fix openstackdocstheme settings
To use openstackdocstheme 1.11.0 properly, this patch fixes
some settings according to follow[0].

[0]https://docs.openstack.org/openstackdocstheme/latest/

Change-Id: I39e4ca8729a68786c950ade684ca3e5edaa68cca
2017-07-03 16:48:23 +08:00
Jenkins 5360291611 Merge "Add ignore_none_type to config template" 2017-06-26 21:15:55 +00:00
Miguel Alex Cantu 76d5f02a32 Add ignore_none_type to config template
It is sometimes useful to tell ConfigTemplateParser to write
out options that are valueless and not suffixed with '=' or ':',
such as when overriding a my.cnf.

This commit adds the 'ignore_none_type' attribute to the config_template
module. If this attribute is set to false, then valueless options will be
written out to the resultant INI file as-is, without the '=' or ':' suffix.

Change-Id: I5c88b2019c01b44193a5d0df9299ecce6de52f01
Partial-Bug: #1693234
2017-06-26 19:12:43 +00:00
ZhongShengping 2869a79ec8 Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use the
openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: I66ea11e32ec9736e2376027863723c19c07a32fb
2017-06-26 14:52:48 +08:00
Jimmy McCrory a5d669f0b4 Remove neutron library
As of Ansible 2.3, the os_network module now allows more additional
options for 'provider_network_type'[0]. Use of OSA's neutron plugin can
be removed.

[0] https://github.com/ansible/ansible-modules-core/issues/5589

Change-Id: If74185ecca1ea639c2e1526b5542e89dd533084b
Implements: blueprint use-std-ansible-modules
2017-05-24 23:00:42 +00:00
Jean-Philippe Evrard 77bbd15bdb Introduce userspace group_vars and host_vars
This opens the door to using group_vars and host_vars in
userspace, by allowing the user to define a ":" delimited list
of folder that will then be used by a vars_plugin, and (maybe
later) by the inventory.

This can't override group_vars due to ansible precedence.
We could technically have this override done by moving the
group_vars into a different folder and adding it to these
environment variables.

Change-Id: Id22e82b01b08885a1c7b516818ca07e75f6d558f
2017-03-14 12:57:33 +00:00
Andy McCrae 5822e29d41 Always update existing matching endpoints
There is no usecase for having 2 endpoints that have the same Region,
interface, service_name and service_type.

The keystone module should default to update these endpoints if the url
is different, but the Region, interface, service_name and service_type
match.

This will make the default behaviour of state "present" to match that of
state "update".

Change-Id: I0ade538e20f2a926b33c1637446c2d4f650cd13d
2017-03-14 11:10:17 +00:00
OpenStack Release Bot b02850124b Update reno for stable/ocata
Change-Id: Ia1a37102f4d0c119ca9cf852c1e4ee443a434479
2017-02-03 18:58:55 +00:00
Bjoern Teipel ab176bbe0d Implementation Neutron SR-IOV
This change adds the new attribute
``sriov_host_interface`` in order to map ml2 network
names to physical SR-IOV capable network interfaces.

Co-Authored-By: James Denton <james.denton@rackspace.com>

Change-Id: Ia62725e2369f75000157e0ab2c3f858e61fef10d
Closes-Bug: #1653283
2017-01-09 11:12:05 -06:00
gecong1973 1325a99cee Delete unnecessary utf-8 coding
The file was added redundant utf-8 coding by some editor.
we can delete it .

Change-Id: Iac814d97c435b5620ecb2c333218e044255f4bb8
2016-12-27 10:22:00 +08:00
Logan V 800ef36999 Revert "Remove neutron library"
Using the upstream library breaks the ability to test network plugins
that use 'local' neutron networks (ie. calico).

https://github.com/ansible/ansible-modules-core/issues/5589

This reverts commit 38b899b63b.

Change-Id: I8a33db524c24324dc2af8463a43cb145f7cc34d6
2016-11-12 17:12:48 -06:00
Jimmy McCrory 0af898835a Remove glance library
With the use of this library replaced by upstream Ansible modules it's
no longer necessary to carry it.

Closes-Bug: 1538642

Change-Id: I55591132180eec99ce9b9bc38caa996b01d18949
Depends-On: Ic98613c37069ccb2ec1bc9a7644c922cc5b37e22
Depends-On: I017303e9a731ebc60315ea1784ba184a8294b08e
Depends-On: If0e36c61307056c8786c67b60fd56b03f2ad7bda
2016-11-11 09:19:45 -08:00
Jimmy McCrory 38b899b63b Remove neutron library
With the use of this library replaced by upstream Ansible modules it's
no longer necessary to carry it.

Change-Id: Iedc9c18a457eb2b620538c693337860b80a85123
Depends-On: I8c165531407c6b6aa8e5910cb28ae610b53e2ee5
2016-11-04 10:45:56 -07:00
Jenkins 35d486984d Merge "Add get_networks command to neutron library" 2016-10-12 17:36:22 +00:00
Andy McCrae 6b5a7d942d Add get_networks command to neutron library
get_networks will return network information, and will fail if the
specified "net_name" network is not present.
If no "net_name" is specified the network information will be
returned without performing the check on the existence of "net_name"
network within neutron.

Change-Id: I01775c9b29e312cc6696ffdc708befc46d11bf52
2016-10-12 13:28:09 +00:00
Andreas Jaeger 2e4aeaa007 Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.

Change-Id: I22dc695c28fe800a16f0ec14f6cbeb4d16319192
2016-10-06 20:39:19 +02:00