diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 2850371..0000000 --- a/.gitignore +++ /dev/null @@ -1,26 +0,0 @@ -# Add patterns in here to exclude files created by tools integrated with this -# repository, such as test frameworks from the project's recommended workflow, -# rendered documentation and package builds. -# -# Don't add patterns to exclude files created by preferred personal tools -# (editors, IDEs, your operating system itself even). These should instead be -# maintained outside the repository, for example in a ~/.gitignore file added -# with: -# -# git config --global core.excludesfile '~/.gitignore' - -pkg/ -Gemfile.lock -vendor/ -spec/fixtures/ -.vagrant/ -.bundle/ -coverage/ -.idea/ -*.iml -/openstack -/log - -# Files created by releasenotes build -releasenotes/build -.tox diff --git a/.zuul.yaml b/.zuul.yaml deleted file mode 100644 index d955862..0000000 --- a/.zuul.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- project: - templates: - - puppet-openstack-check-jobs - - puppet-openstack-module-unit-jobs - - puppet-openstack-litmus-jobs - - release-notes-jobs-python3 diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst deleted file mode 100644 index b4bae7a..0000000 --- a/CONTRIBUTING.rst +++ /dev/null @@ -1,19 +0,0 @@ -The source repository for this project can be found at: - - https://opendev.org/openstack/puppet-tacker - -Pull requests submitted through GitHub are not monitored. - -To start contributing to OpenStack, follow the steps in the contribution guide -to set up and use Gerrit: - - https://docs.openstack.org/contributors/code-and-documentation/quick-start.html - -Bugs should be filed on Launchpad: - - https://bugs.launchpad.net/puppet-tacker - -For more specific information about contributing to this repository, see the -Puppet OpenStack contributor guide: - - https://docs.openstack.org/puppet-openstack-guide/latest/contributor/contributing.html diff --git a/Gemfile b/Gemfile deleted file mode 100644 index 3f46561..0000000 --- a/Gemfile +++ /dev/null @@ -1,36 +0,0 @@ -source ENV['GEM_SOURCE'] || "https://rubygems.org" - -group :development, :test, :system_tests do - spec_helper_dir = '/home/zuul/src/opendev.org/openstack/puppet-openstack_spec_helper' - if File.directory?(spec_helper_dir) - if ENV['ZUUL_PROJECT'] == 'openstack/puppet-openstack_spec_helper' - gem 'puppet-openstack_spec_helper', - :path => '../..', - :require => 'false' - else - gem 'puppet-openstack_spec_helper', - :path => spec_helper_dir, - :require => 'false' - end - else - spec_helper_version = ENV['ZUUL_BRANCH'] || "master" - gem 'puppet-openstack_spec_helper', - :git => 'https://opendev.org/openstack/puppet-openstack_spec_helper', - :ref => spec_helper_version, - :require => 'false' - end -end - -if facterversion = ENV['FACTER_GEM_VERSION'] - gem 'facter', facterversion, :require => false -else - gem 'facter', :require => false -end - -if puppetversion = ENV['PUPPET_GEM_VERSION'] - gem 'puppet', puppetversion, :require => false -else - gem 'puppet', :require => false -end - -# vim:ft=ruby diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 68c771a..0000000 --- a/LICENSE +++ /dev/null @@ -1,176 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - diff --git a/README.md b/README.md deleted file mode 100644 index ad9cc94..0000000 --- a/README.md +++ /dev/null @@ -1,81 +0,0 @@ -Team and repository tags -======================== - -[![Team and repository tags](https://governance.openstack.org/tc/badges/puppet-tacker.svg)](https://governance.openstack.org/tc/reference/tags/index.html) - - - -tacker -======= - -#### Table of Contents - -1. [Overview - What is the tacker module?](#overview) -2. [Module Description - What does the module do?](#module-description) -3. [Setup - The basics of getting started with tacker](#setup) -4. [Implementation - An under-the-hood peek at what the module is doing](#implementation) -5. [Limitations - OS compatibility, etc.](#limitations) -6. [Development - Guide for contributing to the module](#development) -7. [Contributors - Those with commits](#contributors) -8. [Release Notes - Release notes for the project](#release-notes) -9. [Repository - The project source code repository](#repository) - -Overview --------- - -The tacker module is a part of [OpenStack](https://opendev.org/openstack), an effort by the OpenStack infrastructure team to provide continuous integration testing and code review for OpenStack and OpenStack community projects not part of the core software. The module its self is used to flexibly configure and manage the NFV orchestration service for OpenStack. - -Module Description ------------------- - -The tacker module is a thorough attempt to make Puppet capable of managing the entirety of tacker. This includes manifests to provision region specific endpoint and database connections. Types are shipped as part of the tacker module to assist in manipulation of configuration files. - -Setup ------ - -**What the tacker module affects** - -* [Tacker](https://docs.openstack.org/tacker/latest/), the NFV orchestration service for OpenStack. - -### Installing tacker - - tacker is not currently in Puppet Forge, but is anticipated to be added soon. Once that happens, you'll be able to install tacker with: - puppet module install openstack/tacker - -### Beginning with tacker - -To utilize the tacker module's functionality you will need to declare multiple resources. - -Implementation --------------- - -### tacker - -tacker is a combination of Puppet manifest and ruby code to delivery configuration and extra functionality through types and providers. - -Limitations ------------- - -* All the tacker types use the CLI tools and so need to be ran on the tacker node. - -Development ------------ - -Developer documentation for the entire puppet-openstack project. - -* https://docs.openstack.org/puppet-openstack-guide/latest/ - -Contributors ------------- - -* https://github.com/openstack/puppet-tacker/graphs/contributors - -Release Notes -------------- - -* https://docs.openstack.org/releasenotes/puppet-tacker - -Repository ----------- - -* https://opendev.org/openstack/puppet-tacker diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..543210d --- /dev/null +++ b/README.rst @@ -0,0 +1,8 @@ +This project is no longer maintained. + +The contents of this repository are still available in the Git source code +management system. To see the contents of this repository before it reached its +end of life, please check out the previous commit with "git checkout HEAD^1". + +For any further questions, please email openstack-discuss@lists.openstack.org +or join #openstack-dev on OFTC. diff --git a/Rakefile b/Rakefile deleted file mode 100644 index 168d108..0000000 --- a/Rakefile +++ /dev/null @@ -1 +0,0 @@ -require 'puppet-openstack_spec_helper/rake_tasks' diff --git a/bindep.txt b/bindep.txt deleted file mode 100644 index d6645f8..0000000 --- a/bindep.txt +++ /dev/null @@ -1,12 +0,0 @@ -# This is a cross-platform list tracking distribution packages needed by tests; -# see https://docs.openstack.org/infra/bindep/ for additional information. - -libxml2-devel [test platform:rpm] -libxml2-dev [test platform:dpkg] -libxslt-devel [test platform:rpm] -libxslt1-dev [test platform:dpkg] -ruby-devel [test platform:rpm] -ruby-dev [test platform:dpkg] -zlib1g-dev [test platform:dpkg] -zlib-devel [test platform:rpm] -puppet [build] diff --git a/doc/requirements.txt b/doc/requirements.txt deleted file mode 100644 index 592fa6b..0000000 --- a/doc/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -# This is required for the docs build jobs -sphinx>=3.5.1 # BSD -openstackdocstheme>=2.2.7 # Apache-2.0 - -# This is required for the releasenotes build jobs -reno>=3.2.0 # Apache-2.0 diff --git a/examples/init.pp b/examples/init.pp deleted file mode 100644 index 3082c7a..0000000 --- a/examples/init.pp +++ /dev/null @@ -1,12 +0,0 @@ -# The baseline for module testing used by Puppet Inc. is that each manifest -# should have a corresponding test manifest that declares that class or defined -# type. -# -# Tests are then run by using puppet apply --noop (to check for compilation -# errors and view a log of events) or by fully applying the test in a virtual -# environment (to compare the resulting system state to the desired state). -# -# Learn more about module testing here: -# https://puppet.com/docs/puppet/latest/bgtm.html#testing-your-module -# -include tacker diff --git a/lib/puppet/provider/tacker_api_paste_ini/ini_setting.rb b/lib/puppet/provider/tacker_api_paste_ini/ini_setting.rb deleted file mode 100644 index 6320702..0000000 --- a/lib/puppet/provider/tacker_api_paste_ini/ini_setting.rb +++ /dev/null @@ -1,10 +0,0 @@ -Puppet::Type.type(:tacker_api_paste_ini).provide( - :ini_setting, - :parent => Puppet::Type.type(:openstack_config).provider(:ini_setting) -) do - - def self.file_path - '/etc/tacker/api-paste.ini' - end - -end diff --git a/lib/puppet/provider/tacker_config/openstackconfig.rb b/lib/puppet/provider/tacker_config/openstackconfig.rb deleted file mode 100644 index 9a7723a..0000000 --- a/lib/puppet/provider/tacker_config/openstackconfig.rb +++ /dev/null @@ -1,10 +0,0 @@ -Puppet::Type.type(:tacker_config).provide( - :openstackconfig, - :parent => Puppet::Type.type(:openstack_config).provider(:ruby) -) do - - def self.file_path - '/etc/tacker/tacker.conf' - end - -end diff --git a/lib/puppet/type/tacker_api_paste_ini.rb b/lib/puppet/type/tacker_api_paste_ini.rb deleted file mode 100644 index 5475953..0000000 --- a/lib/puppet/type/tacker_api_paste_ini.rb +++ /dev/null @@ -1,57 +0,0 @@ -Puppet::Type.newtype(:tacker_api_paste_ini) do - - ensurable - - newparam(:name, :namevar => true) do - desc 'Section/setting name to manage from /etc/tacker/api-paste.ini' - newvalues(/\S+\/\S+/) - end - - newproperty(:value) do - desc 'The value of the setting to be defined.' - munge do |value| - value = value.to_s.strip - value.capitalize! if value =~ /^(true|false)$/i - value - end - - def is_to_s( currentvalue ) - if resource.secret? - return '[old secret redacted]' - else - return currentvalue - end - end - - def should_to_s( newvalue ) - if resource.secret? - return '[new secret redacted]' - else - return newvalue - end - end - end - - newparam(:secret, :boolean => true) do - desc 'Whether to hide the value from Puppet logs. Defaults to `false`.' - - newvalues(:true, :false) - - defaultto false - end - - newparam(:ensure_absent_val) do - desc 'A value that is specified as the value property will behave as if ensure => absent was specified' - defaultto('') - end - - newparam(:key_val_separator) do - desc 'The separator string to use between each setting name and value.' - defaultto('=') - end - - autorequire(:anchor) do - ['tacker::install::end'] - end - -end diff --git a/lib/puppet/type/tacker_config.rb b/lib/puppet/type/tacker_config.rb deleted file mode 100644 index 95f91a5..0000000 --- a/lib/puppet/type/tacker_config.rb +++ /dev/null @@ -1,61 +0,0 @@ -Puppet::Type.newtype(:tacker_config) do - - ensurable - - newparam(:name, :namevar => true) do - desc 'Section/setting name to manage from tacker.conf' - newvalues(/\S+\/\S+/) - end - - newproperty(:value, :array_matching => :all) do - desc 'The value of the setting to be defined.' - def insync?(is) - return true if @should.empty? - return false unless is.is_a? Array - return false unless is.length == @should.length - return ( - is & @should == is or - is & @should.map(&:to_s) == is - ) - end - munge do |value| - value = value.to_s.strip - value.capitalize! if value =~ /^(true|false)$/i - value - end - - def is_to_s( currentvalue ) - if resource.secret? - return '[old secret redacted]' - else - return currentvalue - end - end - - def should_to_s( newvalue ) - if resource.secret? - return '[new secret redacted]' - else - return newvalue - end - end - end - - newparam(:secret, :boolean => true) do - desc 'Whether to hide the value from Puppet logs. Defaults to `false`.' - - newvalues(:true, :false) - - defaultto false - end - - newparam(:ensure_absent_val) do - desc 'A value that is specified as the value property will behave as if ensure => absent was specified' - defaultto('') - end - - autorequire(:anchor) do - ['tacker::install::end'] - end - -end diff --git a/manifests/client.pp b/manifests/client.pp deleted file mode 100644 index 838d346..0000000 --- a/manifests/client.pp +++ /dev/null @@ -1,22 +0,0 @@ -# -# Installs the tacker python library. -# -# == parameters -# [*ensure*] -# (Optional) ensure state for package. -# Defaults to 'present' -# -class tacker::client ( - $ensure = 'present' -) { - - include tacker::deps - include tacker::params - - package { 'python-tackerclient': - ensure => $ensure, - name => $::tacker::params::client_package_name, - tag => 'openstack', - } - -} diff --git a/manifests/conductor.pp b/manifests/conductor.pp deleted file mode 100644 index 0f2cd8e..0000000 --- a/manifests/conductor.pp +++ /dev/null @@ -1,69 +0,0 @@ -# = Class: tacker::conductor -# -# This class manages the Tacker conductor. -# -# [*enabled*] -# (Optional) Service enable state for tacker-conductor. -# Defaults to true. -# -# [*manage_service*] -# (Optional) Whether the service is managed by this puppet class. -# Defaults to true. -# -# [*package_ensure*] -# (Optional) Ensure state for package. -# Defaults to 'present' -# -# [*report_interval*] -# (Optional) Seconds between running components report states. -# Defaults to $::os_service_default. -# -# [*periodic_interval*] -# (Optional) Seconds between running periodic tasks. -# Defaults to $::os_service_default. -# -# [*periodic_fuzzy_delay*] -# (Optional) Range of seconds to randomly delay when starting the periodic -# task scheduler to reduce stampeding. -# Defaults to $::os_service_default. -# -class tacker::conductor( - $manage_service = true, - $enabled = true, - $package_ensure = 'present', - $report_interval = $::os_service_default, - $periodic_interval = $::os_service_default, - $periodic_fuzzy_delay = $::os_service_default, -) { - - include tacker::deps - include tacker::params - - ensure_packages('tacker-server', { - ensure => $package_ensure, - name => $::tacker::params::package_name, - tag => ['openstack', 'tacker-package'], - }) - - tacker_config { - 'DEFAULT/report_interval': value => $report_interval; - 'DEFAULT/periodic_interval': value => $periodic_interval; - 'DEFAULT/periodic_fuzzy_delay': value => $periodic_fuzzy_delay; - } - - if $manage_service { - if $enabled { - $service_ensure = 'running' - } else { - $service_ensure = 'stopped' - } - - service { 'tacker-conductor': - ensure => $service_ensure, - name => $::tacker::params::conductor_service_name, - enable => $enabled, - tag => 'tacker-service' - } - } - -} diff --git a/manifests/config.pp b/manifests/config.pp deleted file mode 100644 index e18adb2..0000000 --- a/manifests/config.pp +++ /dev/null @@ -1,38 +0,0 @@ -# == Class: tacker::config -# -# This class is used to manage arbitrary tacker configurations. -# -# === Parameters -# -# [*tacker_config*] -# (optional) Allow configuration of arbitrary tacker configurations. -# The value is an hash of tacker_config resources. Example: -# { 'DEFAULT/foo' => { value => 'fooValue'}, -# 'DEFAULT/bar' => { value => 'barValue'} -# } -# In yaml format, Example: -# tacker_config: -# DEFAULT/foo: -# value: fooValue -# DEFAULT/bar: -# value: barValue -# -# [*tacker_api_paste_ini*] -# (optional) Allow configuration of /etc/tacker/api-paste.ini options. -# -# NOTE: The configuration MUST NOT be already handled by this module -# or Puppet catalog compilation will fail with duplicate resources. -# -class tacker::config ( - $tacker_config = {}, - $tacker_api_paste_ini = {}, -) { - - include tacker::deps - - validate_legacy(Hash, 'validate_hash', $tacker_config) - validate_legacy(Hash, 'validate_hash', $tacker_api_paste_ini) - - create_resources('tacker_config', $tacker_config) - create_resources('tacker_api_paste_ini', $tacker_api_paste_ini) -} diff --git a/manifests/coordination.pp b/manifests/coordination.pp deleted file mode 100644 index bfd4f92..0000000 --- a/manifests/coordination.pp +++ /dev/null @@ -1,20 +0,0 @@ -# == Class: tacker::coordination -# -# Setup and configure Tacker coordination settings. -# -# === Parameters -# -# [*backend_url*] -# (Optional) Coordination backend URL. -# Defaults to $::os_service_default -# -class tacker::coordination ( - $backend_url = $::os_service_default, -) { - - include tacker::deps - - oslo::coordination{ 'tacker_config': - backend_url => $backend_url - } -} diff --git a/manifests/db.pp b/manifests/db.pp deleted file mode 100644 index 67aecc5..0000000 --- a/manifests/db.pp +++ /dev/null @@ -1,71 +0,0 @@ -# == Class: tacker::db -# -# Configure the tacker database -# -# === Parameters -# -# [*database_db_max_retries*] -# (optional) Maximum retries in case of connection error or deadlock error -# before error is raised. Set to -1 to specify an infinite retry count. -# Defaults to $::os_service_default -# -# [*database_connection*] -# (Optional) Url used to connect to database. -# Defaults to "sqlite:////var/lib/tacker/tacker.sqlite". -# -# [*database_connection_recycle_time*] -# (Optional) Timeout when db connections should be reaped. -# Defaults to $::os_service_default -# -# [*database_max_retries*] -# (Optional) Maximum number of database connection retries during startup. -# Setting -1 implies an infinite retry count. -# Defaults to $::os_service_default -# -# [*database_retry_interval*] -# (Optional) Interval between retries of opening a database connection. -# Defaults to $::os_service_default -# -# [*database_max_pool_size*] -# (Optional)Maximum number of SQL connections to keep open in a pool. -# Defaults to $::os_service_default -# -# [*database_max_overflow*] -# (Optional) If set, use this value for max_overflow with sqlalchemy. -# Defaults to $::os_service_default -# -# [*database_pool_timeout*] -# (Optional) If set, use this value for pool_timeout with SQLAlchemy. -# Defaults to $::os_service_default -# -# [*mysql_enable_ndb*] -# (Optional) If True, transparently enables support for handling MySQL -# Cluster (NDB). -# Defaults to $::os_service_default -# -class tacker::db ( - $database_db_max_retries = $::os_service_default, - $database_connection = 'sqlite:////var/lib/tacker/tacker.sqlite', - $database_connection_recycle_time = $::os_service_default, - $database_max_pool_size = $::os_service_default, - $database_max_retries = $::os_service_default, - $database_retry_interval = $::os_service_default, - $database_max_overflow = $::os_service_default, - $database_pool_timeout = $::os_service_default, - $mysql_enable_ndb = $::os_service_default, -) { - - include tacker::deps - - oslo::db { 'tacker_config': - db_max_retries => $database_db_max_retries, - connection => $database_connection, - connection_recycle_time => $database_connection_recycle_time, - max_retries => $database_max_retries, - retry_interval => $database_retry_interval, - max_pool_size => $database_max_pool_size, - max_overflow => $database_max_overflow, - pool_timeout => $database_pool_timeout, - mysql_enable_ndb => $mysql_enable_ndb, - } -} diff --git a/manifests/db/mysql.pp b/manifests/db/mysql.pp deleted file mode 100644 index 322a24e..0000000 --- a/manifests/db/mysql.pp +++ /dev/null @@ -1,64 +0,0 @@ -# The tacker::db::mysql class implements mysql backend for tacker -# -# This class can be used to create tables, users and grant -# privilege for a mysql tacker database. -# -# == Parameters -# -# [*password*] -# (Required) Password to connect to the database. -# -# [*dbname*] -# (Optional) Name of the database. -# Defaults to 'tacker'. -# -# [*user*] -# (Optional) User to connect to the database. -# Defaults to 'tacker'. -# -# [*host*] -# (Optional) The default source host user is allowed to connect from. -# Defaults to '127.0.0.1' -# -# [*allowed_hosts*] -# (Optional) Other hosts the user is allowed to connect from. -# Defaults to 'undef'. -# -# [*charset*] -# (Optional) The database charset. -# Defaults to 'utf8' -# -# [*collate*] -# (Optional) The database collate. -# Only used with mysql modules >= 2.2. -# Defaults to 'utf8_general_ci' -# -class tacker::db::mysql( - $password, - $dbname = 'tacker', - $user = 'tacker', - $host = '127.0.0.1', - $charset = 'utf8', - $collate = 'utf8_general_ci', - $allowed_hosts = undef -) { - - include tacker::deps - - validate_legacy(String, 'validate_string', $password) - - ::openstacklib::db::mysql { 'tacker': - user => $user, - password => $password, - dbname => $dbname, - host => $host, - charset => $charset, - collate => $collate, - allowed_hosts => $allowed_hosts, - } - - Anchor['tacker::db::begin'] - ~> Class['tacker::db::mysql'] - ~> Anchor['tacker::db::end'] - -} diff --git a/manifests/db/postgresql.pp b/manifests/db/postgresql.pp deleted file mode 100644 index 9a0bcc3..0000000 --- a/manifests/db/postgresql.pp +++ /dev/null @@ -1,49 +0,0 @@ -# == Class: tacker::db::postgresql -# -# Class that configures postgresql for tacker -# Requires the Puppetlabs postgresql module. -# -# === Parameters -# -# [*password*] -# (Required) Password to connect to the database. -# -# [*dbname*] -# (Optional) Name of the database. -# Defaults to 'tacker'. -# -# [*user*] -# (Optional) User to connect to the database. -# Defaults to 'tacker'. -# -# [*encoding*] -# (Optional) The charset to use for the database. -# Default to undef. -# -# [*privileges*] -# (Optional) Privileges given to the database user. -# Default to 'ALL' -# -class tacker::db::postgresql( - $password, - $dbname = 'tacker', - $user = 'tacker', - $encoding = undef, - $privileges = 'ALL', -) { - - include tacker::deps - - ::openstacklib::db::postgresql { 'tacker': - password => $password, - dbname => $dbname, - user => $user, - encoding => $encoding, - privileges => $privileges, - } - - Anchor['tacker::db::begin'] - ~> Class['tacker::db::postgresql'] - ~> Anchor['tacker::db::end'] - -} diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp deleted file mode 100644 index d7c6b2b..0000000 --- a/manifests/db/sync.pp +++ /dev/null @@ -1,45 +0,0 @@ -# -# Class to execute tacker-db-manage -# -# == Parameters -# -# [*extra_params*] -# (Optional) String of extra command line parameters to append -# to the tacker-dbsync command. -# Defaults to '--config-file /etc/tacker/tacker.conf' -# -# [*user*] -# (Optional) User to run dbsync command. -# Defaults to $::tacker::params::user -# -# [*db_sync_timeout*] -# (Optional) Timeout for the execution of the db_sync -# Defaults to 300 -# -class tacker::db::sync( - $extra_params = '--config-file /etc/tacker/tacker.conf', - $user = $::tacker::params::user, - $db_sync_timeout = 300, -) inherits tacker::params { - - include tacker::deps - - exec { 'tacker-db-sync': - command => "tacker-db-manage ${extra_params} upgrade head", - path => ['/bin', '/usr/bin'], - user => $user, - refreshonly => true, - try_sleep => 5, - tries => 10, - timeout => $db_sync_timeout, - logoutput => on_failure, - subscribe => [ - Anchor['tacker::install::end'], - Anchor['tacker::config::end'], - Anchor['tacker::dbsync::begin'] - ], - notify => Anchor['tacker::dbsync::end'], - tag => 'openstack-db', - } - -} diff --git a/manifests/deps.pp b/manifests/deps.pp deleted file mode 100644 index 5aa10de..0000000 --- a/manifests/deps.pp +++ /dev/null @@ -1,48 +0,0 @@ -# == Class: tacker::deps -# -# Tacker anchors and dependency management -# -class tacker::deps { - # Setup anchors for install, config and service phases of the module. These - # anchors allow external modules to hook the begin and end of any of these - # phases. Package or service management can also be replaced by ensuring the - # package is absent or turning off service management and having the - # replacement depend on the appropriate anchors. When applicable, end tags - # should be notified so that subscribers can determine if installation, - # config or service state changed and act on that if needed. - anchor { 'tacker::install::begin': } - -> Package<| tag == 'tacker-package'|> - ~> anchor { 'tacker::install::end': } - -> anchor { 'tacker::config::begin': } - -> Tacker_config<||> - ~> anchor { 'tacker::config::end': } - -> anchor { 'tacker::db::begin': } - -> anchor { 'tacker::db::end': } - ~> anchor { 'tacker::dbsync::begin': } - -> anchor { 'tacker::dbsync::end': } - ~> anchor { 'tacker::service::begin': } - ~> Service<| tag == 'tacker-service' |> - ~> anchor { 'tacker::service::end': } - - # paste-api.ini config should occur in the config block also. - Anchor['tacker::config::begin'] - -> Tacker_api_paste_ini<||> - ~> Anchor['tacker::config::end'] - - # all coordination settings should be applied and all packages should be - # installed before service startup - Oslo::Coordination<||> -> Anchor['tacker::service::begin'] - - # policy config should occur in the config block also. - Anchor['tacker::config::begin'] - -> Openstacklib::Policy<||> - ~> Anchor['tacker::config::end'] - - # all db settings should be applied and all packages should be installed - # before dbsync starts - Oslo::Db<||> -> Anchor['tacker::dbsync::begin'] - - # Installation or config changes will always restart services. - Anchor['tacker::install::end'] ~> Anchor['tacker::service::begin'] - Anchor['tacker::config::end'] ~> Anchor['tacker::service::begin'] -} diff --git a/manifests/init.pp b/manifests/init.pp deleted file mode 100644 index 54933e8..0000000 --- a/manifests/init.pp +++ /dev/null @@ -1,273 +0,0 @@ -# == Class: tacker -# -# This class is used to specify configuration parameters that are common -# across tackerservices. -# -# === Parameters -# -# [*notification_transport_url*] -# (optional) A URL representing the messaging driver to use for notifications -# and its full configuration. Transport URLs take the form: -# transport://user:pass@host1:port[,hostN:portN]/virtual_host -# Defaults to $::os_service_default -# -# [*notification_topics*] -# (optional) AMQP topics to publish to when using the RPC notification driver. -# (list value) -# Default to $::os_service_default -# -# [*notification_driver*] -# (Optional) Notification driver to use -# Defaults to $::os_service_default -# -# [*default_transport_url*] -# (optional) A URL representing the messaging driver to use and its full -# configuration. Transport URLs take the form: -# transport://user:pass@host1:port[,hostN:portN]/virtual_host -# Defaults to $::os_service_default -# -# [*rpc_response_timeout*] -# (Optional) Seconds to wait for a response from a call. -# Defaults to $::os_service_default -# -# [*control_exchange*] -# (Optional) The default exchange under which topics are scoped. May be -# overridden by an exchange name specified in the transport_url -# option. -# Defaults to $::os_service_default -# -# [*rabbit_heartbeat_timeout_threshold*] -# (optional) Number of seconds after which the RabbitMQ broker is considered -# down if the heartbeat keepalive fails. Any value >0 enables heartbeats. -# Heartbeating helps to ensure the TCP connection to RabbitMQ isn't silently -# closed, resulting in missed or lost messages from the queue. -# (Requires kombu >= 3.0.7 and amqp >= 1.4.0) -# Defaults to $::os_service_default -# -# [*rabbit_heartbeat_rate*] -# (optional) How often during the rabbit_heartbeat_timeout_threshold period to -# check the heartbeat on RabbitMQ connection. (i.e. rabbit_heartbeat_rate=2 -# when rabbit_heartbeat_timeout_threshold=60, the heartbeat will be checked -# every 30 seconds. -# Defaults to $::os_service_default -# -# [*rabbit_heartbeat_in_pthread*] -# (Optional) EXPERIMENTAL: Run the health check heartbeat thread -# through a native python thread. By default if this -# option isn't provided the health check heartbeat will -# inherit the execution model from the parent process. By -# example if the parent process have monkey patched the -# stdlib by using eventlet/greenlet then the heartbeat -# will be run through a green thread. -# Defaults to $::os_service_default -# -# [*rabbit_use_ssl*] -# (optional) Connect over SSL for RabbitMQ -# Defaults to $::os_service_default -# -# [*rabbit_ha_queues*] -# (optional) Use HA queues in RabbitMQ. (boolean value) -# Defaults to $::os_service_default -# -# [*kombu_ssl_ca_certs*] -# (optional) SSL certification authority file (valid only if SSL enabled). -# Defaults to $::os_service_default -# -# [*kombu_ssl_certfile*] -# (optional) SSL cert file (valid only if SSL enabled). -# Defaults to $::os_service_default -# -# [*kombu_ssl_keyfile*] -# (optional) SSL key file (valid only if SSL enabled). -# Defaults to $::os_service_default -# -# [*kombu_ssl_version*] -# (optional) SSL version to use (valid only if SSL enabled). -# Valid values are TLSv1, SSLv23 and SSLv3. SSLv2 may be -# available on some distributions. -# Defaults to $::os_service_default -# -# [*kombu_reconnect_delay*] -# (optional) How long to wait before reconnecting in response to an AMQP -# consumer cancel notification. -# Defaults to $::os_service_default -# -# [*kombu_failover_strategy*] -# (Optional) Determines how the next RabbitMQ node is chosen in case the one -# we are currently connected to becomes unavailable. Takes effect only if -# more than one RabbitMQ node is provided in config. (string value) -# Defaults to $::os_service_default -# -# [*kombu_compression*] -# (optional) Possible values are: gzip, bz2. If not set compression will not -# be used. This option may notbe available in future versions. EXPERIMENTAL. -# (string value) -# Defaults to $::os_service_default -# -# [*amqp_durable_queues*] -# (optional) Define queues as "durable" to rabbitmq. (boolean value) -# Defaults to $::os_service_default -# -# [*amqp_server_request_prefix*] -# (Optional) Address prefix used when sending to a specific server -# Defaults to $::os_service_default -# -# [*amqp_broadcast_prefix*] -# (Optional) address prefix used when broadcasting to all servers -# Defaults to $::os_service_default -# -# [*amqp_group_request_prefix*] -# (Optional) address prefix when sending to any server in group -# Defaults to $::os_service_default -# -# [*amqp_container_name*] -# (Optional) Name for the AMQP container -# Defaults to $::os_service_default -# -# [*amqp_idle_timeout*] -# (Optional) Timeout for inactive connections -# Defaults to $::os_service_default -# -# [*amqp_trace*] -# (Optional) Debug: dump AMQP frames to stdout -# Defaults to $::os_service_default -# -# [*amqp_ssl_ca_file*] -# (Optional) CA certificate PEM file to verify server certificate -# Defaults to $::os_service_default -# -# [*amqp_ssl_cert_file*] -# (Optional) Identifying certificate PEM file to present to clients -# Defaults to $::os_service_default -# -# [*amqp_ssl_key_file*] -# (Optional) Private key PEM file used to sign cert_file certificate -# Defaults to $::os_service_default -# -# [*amqp_ssl_key_password*] -# (Optional) Password for decrypting ssl_key_file (if encrypted) -# Defaults to $::os_service_default -# -# [*amqp_sasl_mechanisms*] -# (Optional) Space separated list of acceptable SASL mechanisms -# Defaults to $::os_service_default -# -# [*amqp_sasl_config_dir*] -# (Optional) Path to directory that contains the SASL configuration -# Defaults to $::os_service_default -# -# [*amqp_sasl_config_name*] -# (Optional) Name of configuration file (without .conf suffix) -# Defaults to $::os_service_default -# -# [*amqp_username*] -# (Optional) User name for message broker authentication -# Defaults to $::os_service_default -# -# [*amqp_password*] -# (Optional) Password for message broker authentication -# Defaults to $::os_service_default -# -# [*sync_db*] -# (Optional) Run db sync on the node. -# Defaults to true -# -# == Authors -# -# Dan Radez -# -# == Copyright -# -# Copyright 2016 Red Hat Inc, unless otherwise noted. -# -class tacker( - $notification_transport_url = $::os_service_default, - $notification_driver = $::os_service_default, - $notification_topics = $::os_service_default, - $default_transport_url = $::os_service_default, - $rpc_response_timeout = $::os_service_default, - $control_exchange = $::os_service_default, - $rabbit_heartbeat_timeout_threshold = $::os_service_default, - $rabbit_heartbeat_rate = $::os_service_default, - $rabbit_heartbeat_in_pthread = $::os_service_default, - $rabbit_use_ssl = $::os_service_default, - $rabbit_ha_queues = $::os_service_default, - $kombu_ssl_ca_certs = $::os_service_default, - $kombu_ssl_certfile = $::os_service_default, - $kombu_ssl_keyfile = $::os_service_default, - $kombu_ssl_version = $::os_service_default, - $kombu_reconnect_delay = $::os_service_default, - $kombu_failover_strategy = $::os_service_default, - $kombu_compression = $::os_service_default, - $amqp_durable_queues = $::os_service_default, - $amqp_server_request_prefix = $::os_service_default, - $amqp_broadcast_prefix = $::os_service_default, - $amqp_group_request_prefix = $::os_service_default, - $amqp_container_name = $::os_service_default, - $amqp_idle_timeout = $::os_service_default, - $amqp_trace = $::os_service_default, - $amqp_ssl_ca_file = $::os_service_default, - $amqp_ssl_cert_file = $::os_service_default, - $amqp_ssl_key_file = $::os_service_default, - $amqp_ssl_key_password = $::os_service_default, - $amqp_sasl_mechanisms = $::os_service_default, - $amqp_sasl_config_dir = $::os_service_default, - $amqp_sasl_config_name = $::os_service_default, - $amqp_username = $::os_service_default, - $amqp_password = $::os_service_default, - $sync_db = true, -) inherits tacker::params { - - include tacker::deps - - if $sync_db { - include tacker::db::sync - } - - oslo::messaging::rabbit {'tacker_config': - rabbit_use_ssl => $rabbit_use_ssl, - heartbeat_timeout_threshold => $rabbit_heartbeat_timeout_threshold, - heartbeat_rate => $rabbit_heartbeat_rate, - heartbeat_in_pthread => $rabbit_heartbeat_in_pthread, - kombu_reconnect_delay => $kombu_reconnect_delay, - kombu_failover_strategy => $kombu_failover_strategy, - amqp_durable_queues => $amqp_durable_queues, - kombu_compression => $kombu_compression, - kombu_ssl_ca_certs => $kombu_ssl_ca_certs, - kombu_ssl_certfile => $kombu_ssl_certfile, - kombu_ssl_keyfile => $kombu_ssl_keyfile, - kombu_ssl_version => $kombu_ssl_version, - rabbit_ha_queues => $rabbit_ha_queues, - } - - oslo::messaging::amqp { 'tacker_config': - server_request_prefix => $amqp_server_request_prefix, - broadcast_prefix => $amqp_broadcast_prefix, - group_request_prefix => $amqp_group_request_prefix, - container_name => $amqp_container_name, - idle_timeout => $amqp_idle_timeout, - trace => $amqp_trace, - ssl_ca_file => $amqp_ssl_ca_file, - ssl_cert_file => $amqp_ssl_cert_file, - ssl_key_file => $amqp_ssl_key_file, - ssl_key_password => $amqp_ssl_key_password, - sasl_mechanisms => $amqp_sasl_mechanisms, - sasl_config_dir => $amqp_sasl_config_dir, - sasl_config_name => $amqp_sasl_config_name, - username => $amqp_username, - password => $amqp_password, - } - - oslo::messaging::default { 'tacker_config': - transport_url => $default_transport_url, - rpc_response_timeout => $rpc_response_timeout, - control_exchange => $control_exchange, - } - - oslo::messaging::notifications { 'tacker_config': - transport_url => $notification_transport_url, - driver => $notification_driver, - topics => $notification_topics, - } - -} diff --git a/manifests/keystone/auth.pp b/manifests/keystone/auth.pp deleted file mode 100644 index a6bfb2c..0000000 --- a/manifests/keystone/auth.pp +++ /dev/null @@ -1,121 +0,0 @@ -# == Class: tacker::keystone::auth -# -# Configures tacker user, service and endpoint in Keystone. -# -# === Parameters -# -# [*password*] -# (Required) Password for tacker user. -# -# [*auth_name*] -# (Optional) Username for tacker service. -# Defaults to 'tacker'. -# -# [*email*] -# (Optional) Email for tacker user. -# Defaults to 'tacker@localhost'. -# -# [*tenant*] -# (Optional) Tenant for tacker user. -# Defaults to 'services'. -# -# [*roles*] -# (Optional) List of roles assigned to tacker user. -# Defaults to ['admin'] -# -# [*system_scope*] -# (Optional) Scope for system operations. -# Defaults to 'all' -# -# [*system_roles*] -# (Optional) List of system roles assigned to tacker user. -# Defaults to [] -# -# [*configure_endpoint*] -# (Optional) Should tacker endpoint be configured? -# Defaults to true. -# -# [*configure_user*] -# (Optional) Should the service user be configured? -# Defaults to true. -# -# [*configure_user_role*] -# (Optional) Should the admin role be configured for the service user? -# Defaults to true. -# -# [*service_type*] -# (Optional) Type of service. -# Defaults to 'nfv-orchestration'. -# -# [*region*] -# (Optional) Region for endpoint. -# Defaults to 'RegionOne'. -# -# [*service_name*] -# (Optional) Name of the service. -# Defaults to the value of 'tacker'. -# -# [*service_description*] -# (Optional) Description of the service. -# Default to 'tacker NFV orchestration Service' -# -# [*public_url*] -# (0ptional) The endpoint's public url. -# This url should *not* contain any trailing '/'. -# Defaults to 'http://127.0.0.1:9890' -# -# [*admin_url*] -# (Optional) The endpoint's admin url. -# This url should *not* contain any trailing '/'. -# Defaults to 'http://127.0.0.1:9890' -# -# [*internal_url*] -# (Optional) The endpoint's internal url. -# This url should *not* contain any trailing '/'. -# Defaults to 'http://127.0.0.1:9890' -# -class tacker::keystone::auth ( - $password, - $auth_name = 'tacker', - $email = 'tacker@localhost', - $tenant = 'services', - $roles = ['admin'], - $system_scope = 'all', - $system_roles = [], - $configure_endpoint = true, - $configure_user = true, - $configure_user_role = true, - $service_name = 'tacker', - $service_description = 'tacker NFV orchestration Service', - $service_type = 'nfv-orchestration', - $region = 'RegionOne', - $public_url = 'http://127.0.0.1:9890', - $admin_url = 'http://127.0.0.1:9890', - $internal_url = 'http://127.0.0.1:9890', -) { - - include tacker::deps - - Keystone::Resource::Service_identity['tacker'] -> Anchor['tacker::service::end'] - - keystone::resource::service_identity { 'tacker': - configure_user => $configure_user, - configure_user_role => $configure_user_role, - configure_endpoint => $configure_endpoint, - service_name => $service_name, - service_type => $service_type, - service_description => $service_description, - region => $region, - auth_name => $auth_name, - password => $password, - email => $email, - tenant => $tenant, - roles => $roles, - system_scope => $system_scope, - system_roles => $system_roles, - public_url => $public_url, - internal_url => $internal_url, - admin_url => $admin_url, - } - -} diff --git a/manifests/keystone/authtoken.pp b/manifests/keystone/authtoken.pp deleted file mode 100644 index 055a1c9..0000000 --- a/manifests/keystone/authtoken.pp +++ /dev/null @@ -1,275 +0,0 @@ -# class: tacker::keystone::authtoken -# -# Configure the keystone_authtoken section in the configuration file -# -# === Parameters -# -# [*password*] -# (Required) Password to create for the service user -# -# [*username*] -# (Optional) The name of the service user -# Defaults to 'tacker' -# -# [*auth_url*] -# (Optional) The URL to use for authentication. -# Defaults to 'http://localhost:5000'. -# -# [*project_name*] -# (Optional) Service project name -# Defaults to 'services' -# -# [*user_domain_name*] -# (Optional) Name of domain for $username -# Defaults to 'Default' -# -# [*project_domain_name*] -# (Optional) Name of domain for $project_name -# Defaults to 'Default' -# -# [*system_scope*] -# (Optional) Scope for system operations -# Defaults to $::os_service_default -# -# [*insecure*] -# (Optional) If true, explicitly allow TLS without checking server cert -# against any certificate authorities. WARNING: not recommended. Use with -# caution. -# Defaults to $::os_service_default -# -# [*auth_section*] -# (Optional) Config Section from which to load plugin specific options -# Defaults to $::os_service_default. -# -# [*auth_type*] -# (Optional) Authentication type to load -# Defaults to 'password' -# -# [*www_authenticate_uri*] -# (Optional) Complete public Identity API endpoint. -# Defaults to 'http://localhost:5000'. -# -# [*auth_version*] -# (Optional) API version of the admin Identity API endpoint. -# Defaults to $::os_service_default. -# -# [*cache*] -# (Optional) Env key for the swift cache. -# Defaults to $::os_service_default. -# -# [*cafile*] -# (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs -# connections. -# Defaults to $::os_service_default. -# -# [*certfile*] -# (Optional) Required if identity server requires client certificate -# Defaults to $::os_service_default. -# -# [*delay_auth_decision*] -# (Optional) Do not handle authorization requests within the middleware, but -# delegate the authorization decision to downstream WSGI components. Boolean -# value -# Defaults to $::os_service_default. -# -# [*enforce_token_bind*] -# (Optional) Used to control the use and type of token binding. Can be set -# to: "disabled" to not check token binding. "permissive" (default) to -# validate binding information if the bind type is of a form known to the -# server and ignore it if not. "strict" like "permissive" but if the bind -# type is unknown the token will be rejected. "required" any form of token -# binding is needed to be allowed. Finally the name of a binding method that -# must be present in tokens. String value. -# Defaults to $::os_service_default. -# -# [*http_connect_timeout*] -# (Optional) Request timeout value for communicating with Identity API -# server. -# Defaults to $::os_service_default. -# -# [*http_request_max_retries*] -# (Optional) How many times are we trying to reconnect when communicating -# with Identity API Server. Integer value -# Defaults to $::os_service_default. -# -# [*include_service_catalog*] -# (Optional) Indicate whether to set the X-Service-Catalog header. If False, -# middleware will not ask for service catalog on token validation and will -# not set the X-Service-Catalog header. Boolean value. -# Defaults to $::os_service_default. -# -# [*keyfile*] -# (Optional) Required if identity server requires client certificate -# Defaults to $::os_service_default. -# -# [*memcache_pool_conn_get_timeout*] -# (Optional) Number of seconds that an operation will wait to get a memcached -# client connection from the pool. Integer value -# Defaults to $::os_service_default. -# -# [*memcache_pool_dead_retry*] -# (Optional) Number of seconds memcached server is considered dead before it -# is tried again. Integer value -# Defaults to $::os_service_default. -# -# [*memcache_pool_maxsize*] -# (Optional) Maximum total number of open connections to every memcached -# server. Integer value -# Defaults to $::os_service_default. -# -# [*memcache_pool_socket_timeout*] -# (Optional) Number of seconds a connection to memcached is held unused in -# the pool before it is closed. Integer value -# Defaults to $::os_service_default. -# -# [*memcache_pool_unused_timeout*] -# (Optional) Number of seconds a connection to memcached is held unused in -# the pool before it is closed. Integer value -# Defaults to $::os_service_default. -# -# [*memcache_secret_key*] -# (Optional, mandatory if memcache_security_strategy is defined) This string -# is used for key derivation. -# Defaults to $::os_service_default. -# -# [*memcache_security_strategy*] -# (Optional) If defined, indicate whether token data should be authenticated -# or authenticated and encrypted. If MAC, token data is authenticated (with -# HMAC) in the cache. If ENCRYPT, token data is encrypted and authenticated in the -# cache. If the value is not one of these options or empty, auth_token will -# raise an exception on initialization. -# Defaults to $::os_service_default. -# -# [*memcache_use_advanced_pool*] -# (Optional) Use the advanced (eventlet safe) memcached client pool. The -# advanced pool will only work under python 2.x Boolean value -# Defaults to $::os_service_default. -# -# [*memcached_servers*] -# (Optional) Optionally specify a list of memcached server(s) to use for -# caching. If left undefined, tokens will instead be cached in-process. -# Defaults to $::os_service_default. -# -# [*manage_memcache_package*] -# (Optional) Whether to install the python-memcache package. -# Defaults to false. -# -# [*region_name*] -# (Optional) The region in which the identity server can be found. -# Defaults to $::os_service_default. -# -# [*token_cache_time*] -# (Optional) In order to prevent excessive effort spent validating tokens, -# the middleware caches previously-seen tokens for a configurable duration -# (in seconds). Set to -1 to disable caching completely. Integer value -# Defaults to $::os_service_default. -# -# [*service_token_roles*] -# (Optional) A choice of roles that must be present in a service token. -# Service tokens are allowed to request that an expired token -# can be used and so this check should tightly control that -# only actual services should be sending this token. Roles -# here are applied as an ANY check so any role in this list -# must be present. For backwards compatibility reasons this -# currently only affects the allow_expired check. (list value) -# Defaults to $::os_service_default. -# -# [*service_token_roles_required*] -# (optional) backwards compatibility to ensure that the service tokens are -# compared against a list of possible roles for validity -# true/false -# Defaults to $::os_service_default. -# -# [*service_type*] -# (Optional) The name or type of the service as it appears in the service -# catalog. This is used to validate tokens that have restricted access rules. -# Defaults to $::os_service_default. -# -# [*interface*] -# (Optional) Interface to use for the Identity API endpoint. Valid values are -# "public", "internal" or "admin". -# Defaults to $::os_service_default. -# -class tacker::keystone::authtoken( - $password, - $username = 'tacker', - $auth_url = 'http://localhost:5000', - $project_name = 'services', - $user_domain_name = 'Default', - $project_domain_name = 'Default', - $system_scope = $::os_service_default, - $insecure = $::os_service_default, - $auth_section = $::os_service_default, - $auth_type = 'password', - $www_authenticate_uri = 'http://localhost:5000', - $auth_version = $::os_service_default, - $cache = $::os_service_default, - $cafile = $::os_service_default, - $certfile = $::os_service_default, - $delay_auth_decision = $::os_service_default, - $enforce_token_bind = $::os_service_default, - $http_connect_timeout = $::os_service_default, - $http_request_max_retries = $::os_service_default, - $include_service_catalog = $::os_service_default, - $keyfile = $::os_service_default, - $memcache_pool_conn_get_timeout = $::os_service_default, - $memcache_pool_dead_retry = $::os_service_default, - $memcache_pool_maxsize = $::os_service_default, - $memcache_pool_socket_timeout = $::os_service_default, - $memcache_pool_unused_timeout = $::os_service_default, - $memcache_secret_key = $::os_service_default, - $memcache_security_strategy = $::os_service_default, - $memcache_use_advanced_pool = $::os_service_default, - $memcached_servers = $::os_service_default, - $manage_memcache_package = false, - $region_name = $::os_service_default, - $token_cache_time = $::os_service_default, - $service_token_roles = $::os_service_default, - $service_token_roles_required = $::os_service_default, - $service_type = $::os_service_default, - $interface = $::os_service_default, -) { - - include tacker::deps - - keystone::resource::authtoken { 'tacker_config': - username => $username, - password => $password, - project_name => $project_name, - auth_url => $auth_url, - www_authenticate_uri => $www_authenticate_uri, - auth_version => $auth_version, - auth_type => $auth_type, - auth_section => $auth_section, - user_domain_name => $user_domain_name, - project_domain_name => $project_domain_name, - system_scope => $system_scope, - insecure => $insecure, - cache => $cache, - cafile => $cafile, - certfile => $certfile, - delay_auth_decision => $delay_auth_decision, - enforce_token_bind => $enforce_token_bind, - http_connect_timeout => $http_connect_timeout, - http_request_max_retries => $http_request_max_retries, - include_service_catalog => $include_service_catalog, - keyfile => $keyfile, - memcache_pool_conn_get_timeout => $memcache_pool_conn_get_timeout, - memcache_pool_dead_retry => $memcache_pool_dead_retry, - memcache_pool_maxsize => $memcache_pool_maxsize, - memcache_pool_socket_timeout => $memcache_pool_socket_timeout, - memcache_secret_key => $memcache_secret_key, - memcache_security_strategy => $memcache_security_strategy, - memcache_use_advanced_pool => $memcache_use_advanced_pool, - memcache_pool_unused_timeout => $memcache_pool_unused_timeout, - memcached_servers => $memcached_servers, - manage_memcache_package => $manage_memcache_package, - region_name => $region_name, - token_cache_time => $token_cache_time, - service_token_roles => $service_token_roles, - service_token_roles_required => $service_token_roles_required, - service_type => $service_type, - interface => $interface, - } -} - diff --git a/manifests/logging.pp b/manifests/logging.pp deleted file mode 100644 index d036335..0000000 --- a/manifests/logging.pp +++ /dev/null @@ -1,155 +0,0 @@ -# Class tacker::logging -# -# tacker logging configuration -# -# == parameters -# -# [*debug*] -# (Optional) Should the daemons log debug messages -# Defaults to $::os_service_default -# -# [*use_syslog*] -# (Optional) Use syslog for logging. -# Defaults to $::os_service_default -# -# [*use_json*] -# (Optional) Use json for logging. -# Defaults to $::os_service_default -# -# [*use_journal*] -# (Optional) Use journal for logging. -# Defaults to $::os_service_default -# -# [*use_stderr*] -# (Optional) Use stderr for logging -# Defaults to $::os_service_default -# -# [*syslog_log_facility*] -# (Optional) Syslog facility to receive log lines. -# Defaults to $::os_service_default -# -# [*log_dir*] -# (Optional) Directory where logs should be stored. -# If set to boolean false, it will not log to any directory. -# Defaults to '/var/log/tacker'. -# -# [*log_file*] -# (Optional) File where logs should be stored. -# Defaults to '/var/log/tacker/tacker.log' -# -# [*watch_log_file*] -# (Optional) Uses logging handler designed to watch file system (boolean value). -# Defaults to $::os_service_default -# -# [*logging_context_format_string*] -# (Optional) Format string to use for log messages with context. -# Defaults to $::os_service_default -# Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\ -# [%(request_id)s %(user_identity)s] %(instance)s%(message)s' -# -# [*logging_default_format_string*] -# (Optional) Format string to use for log messages without context. -# Defaults to $::os_service_default -# Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\ -# [-] %(instance)s%(message)s' -# -# [*logging_debug_format_suffix*] -# (Optional) Formatted data to append to log format when level is DEBUG. -# Defaults to $::os_service_default -# Example: '%(funcName)s %(pathname)s:%(lineno)d' -# -# [*logging_exception_prefix*] -# (Optional) Prefix each line of exception output with this format. -# Defaults to $::os_service_default -# Example: '%(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s' -# -# [*log_config_append*] -# (Optional) The name of an additional logging configuration file. -# Defaults to $::os_service_default -# See https://docs.python.org/2/howto/logging.html -# -# [*default_log_levels*] -# (0ptional) Hash of logger (keys) and level (values) pairs. -# Defaults to $::os_service_default -# Example: -# { 'amqp' => 'WARN', 'amqplib' => 'WARN', 'boto' => 'WARN', -# 'sqlalchemy' => 'WARN', 'suds' => 'INFO', -# 'oslo.messaging' => 'INFO', 'iso8601' => 'WARN', -# 'requests.packages.urllib3.connectionpool' => 'WARN', -# 'urllib3.connectionpool' => 'WARN', -# 'websocket' => 'WARN', 'tackermiddleware' => 'WARN', -# 'routes.middleware' => 'WARN', stevedore => 'WARN' } -# -# [*publish_errors*] -# (Optional) Publish error events (boolean value). -# Defaults to $::os_service_default -# -# [*fatal_deprecations*] -# (Optional) Make deprecations fatal (boolean value) -# Defaults to $::os_service_default -# -# [*instance_format*] -# (Optional) If an instance is passed with the log message, format it -# like this (string value). -# Defaults to undef. -# Example: '[instance: %(uuid)s] ' -# -# [*instance_uuid_format*] -# (Optional) If an instance UUID is passed with the log message, format -# it like this (string value). -# Defaults to $::os_service_default -# Example: instance_uuid_format='[instance: %(uuid)s] ' -# -# [*log_date_format*] -# (Optional) Format string for %%(asctime)s in log records. -# Defaults to $::os_service_default -# Example: 'Y-%m-%d %H:%M:%S' -# -class tacker::logging( - $use_syslog = $::os_service_default, - $use_json = $::os_service_default, - $use_journal = $::os_service_default, - $use_stderr = $::os_service_default, - $syslog_log_facility = $::os_service_default, - $log_dir = '/var/log/tacker', - $log_file = '/var/log/tacker/tacker.log', - $watch_log_file = $::os_service_default, - $debug = $::os_service_default, - $logging_context_format_string = $::os_service_default, - $logging_default_format_string = $::os_service_default, - $logging_debug_format_suffix = $::os_service_default, - $logging_exception_prefix = $::os_service_default, - $log_config_append = $::os_service_default, - $default_log_levels = $::os_service_default, - $publish_errors = $::os_service_default, - $fatal_deprecations = $::os_service_default, - $instance_format = $::os_service_default, - $instance_uuid_format = $::os_service_default, - $log_date_format = $::os_service_default, -) { - - include tacker::deps - - oslo::log { 'tacker_config': - use_stderr => $use_stderr, - use_syslog => $use_syslog, - use_json => $use_json, - use_journal => $use_journal, - log_dir => $log_dir, - log_file => $log_file, - watch_log_file => $watch_log_file, - debug => $debug, - logging_context_format_string => $logging_context_format_string, - logging_default_format_string => $logging_default_format_string, - logging_debug_format_suffix => $logging_debug_format_suffix, - logging_exception_prefix => $logging_exception_prefix, - log_config_append => $log_config_append, - default_log_levels => $default_log_levels, - publish_errors => $publish_errors, - fatal_deprecations => $fatal_deprecations, - instance_format => $instance_format, - instance_uuid_format => $instance_uuid_format, - log_date_format => $log_date_format, - syslog_log_facility => $syslog_log_facility, - } -} diff --git a/manifests/params.pp b/manifests/params.pp deleted file mode 100644 index b6e5c19..0000000 --- a/manifests/params.pp +++ /dev/null @@ -1,26 +0,0 @@ -# Parameters for puppet-tacker -# -class tacker::params { - include openstacklib::defaults - - $user = 'tacker' - $group = 'tacker' - $client_package_name = 'python3-tackerclient' - - case $::osfamily { - 'RedHat': { - $package_name = 'openstack-tacker' - $server_service_name = 'openstack-tacker-server' - $conductor_service_name = 'openstack-tacker-conductor' - } - 'Debian': { - $package_name = 'tacker' - $server_service_name = 'tacker' - $conductor_service_name = 'tacker-conductor' - } - default: { - fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \ -module ${module_name} only support osfamily RedHat and Debian") - } # Case $::osfamily - } -} diff --git a/manifests/policy.pp b/manifests/policy.pp deleted file mode 100644 index 5fbea1d..0000000 --- a/manifests/policy.pp +++ /dev/null @@ -1,82 +0,0 @@ -# == Class: tacker::policy -# -# Configure the tacker policies -# -# === Parameters -# -# [*enforce_scope*] -# (Optional) Whether or not to enforce scope when evaluating policies. -# Defaults to $::os_service_default. -# -# [*enforce_new_defaults*] -# (Optional) Whether or not to use old deprecated defaults when evaluating -# policies. -# Defaults to $::os_service_default. -# -# [*policies*] -# (Optional) Set of policies to configure for tacker -# Example : -# { -# 'tacker-context_is_admin' => { -# 'key' => 'context_is_admin', -# 'value' => 'true' -# }, -# 'tacker-default' => { -# 'key' => 'default', -# 'value' => 'rule:admin_or_owner' -# } -# } -# Defaults to empty hash. -# -# [*policy_path*] -# (Optional) Path to the tacker policy.yaml file -# Defaults to /etc/tacker/policy.yaml -# -# [*policy_default_rule*] -# (Optional) Default rule. Enforced when a requested rule is not found. -# Defaults to $::os_service_default. -# -# [*policy_dirs*] -# (Optional) Path to the tacker policy folder -# Defaults to $::os_service_default -# -# [*purge_config*] -# (optional) Whether to set only the specified policy rules in the policy -# file. -# Defaults to false. -# -class tacker::policy ( - $enforce_scope = $::os_service_default, - $enforce_new_defaults = $::os_service_default, - $policies = {}, - $policy_path = '/etc/tacker/policy.yaml', - $policy_default_rule = $::os_service_default, - $policy_dirs = $::os_service_default, - $purge_config = false, -) { - - include tacker::deps - include tacker::params - - validate_legacy(Hash, 'validate_hash', $policies) - - $policy_parameters = { - policies => $policies, - policy_path => $policy_path, - file_user => 'root', - file_group => $::tacker::params::group, - file_format => 'yaml', - purge_config => $purge_config, - } - - create_resources('openstacklib::policy', { $policy_path => $policy_parameters }) - - oslo::policy { 'tacker_config': - enforce_scope => $enforce_scope, - enforce_new_defaults => $enforce_new_defaults, - policy_file => $policy_path, - policy_default_rule => $policy_default_rule, - policy_dirs => $policy_dirs, - } - -} diff --git a/manifests/server.pp b/manifests/server.pp deleted file mode 100644 index 45ee16d..0000000 --- a/manifests/server.pp +++ /dev/null @@ -1,103 +0,0 @@ -# = Class: tacker::server -# -# This class manages the Tacker server. -# -# [*enabled*] -# (Optional) Service enable state for tacker-server. -# Defaults to true. -# -# [*manage_service*] -# (Optional) Whether the service is managed by this puppet class. -# Defaults to true. -# -# [*auth_strategy*] -# (optional) Type of authentication to be used. -# Defaults to 'keystone' -# -# [*bind_host*] -# (optional) The host IP to bind to. -# Defaults to $::os_service_default -# -# [*bind_port*] -# (optional) The port to bind to. -# Defaults to $::os_service_default -# -# [*api_workers*] -# (optional) Number of separate worker process for service. -# Defaults to $::os_workers -# -# [*allow_bulk*] -# (Optional) Allow the usage of the bulk API. -# Defaults to $::os_service_default -# -# [*allow_pagination*] -# (Optional) Allow the usage of the pagination. -# Defaults to $::os_service_default -# -# [*allow_sorting*] -# (Optional) Allow the usage of the sorting. -# Defaults to $::os_service_default -# -# [*pagination_max_limit*] -# (Optional) The maximum number of items returned in a single response. -# Defaults to $::os_service_default -# -# [*package_ensure*] -# (Optional) Ensure state for package. -# Defaults to 'present' -# -class tacker::server( - $manage_service = true, - $enabled = true, - $auth_strategy = 'keystone', - $bind_host = $::os_service_default, - $bind_port = $::os_service_default, - $api_workers = $::os_workers, - $allow_bulk = $::os_service_default, - $allow_pagination = $::os_service_default, - $allow_sorting = $::os_service_default, - $pagination_max_limit = $::os_service_default, - $package_ensure = 'present', -) { - - include tacker::deps - include tacker::params - include tacker::policy - - if $auth_strategy == 'keystone' { - include tacker::keystone::authtoken - } - - ensure_packages('tacker-server', { - ensure => $package_ensure, - name => $::tacker::params::package_name, - tag => ['openstack', 'tacker-package'], - }) - - tacker_config { - 'DEFAULT/auth_strategy': value => $auth_strategy; - 'DEFAULT/bind_host': value => $bind_host; - 'DEFAULT/bind_port': value => $bind_port; - 'DEFAULT/api_workers': value => $api_workers; - 'DEFAULT/allow_bulk': value => $allow_bulk; - 'DEFAULT/allow_pagination': value => $allow_pagination; - 'DEFAULT/allow_sorting': value => $allow_sorting; - 'DEFAULT/pagination_max_limit': value => $pagination_max_limit; - } - - if $manage_service { - if $enabled { - $service_ensure = 'running' - } else { - $service_ensure = 'stopped' - } - - service { 'tacker-server': - ensure => $service_ensure, - name => $::tacker::params::server_service_name, - enable => $enabled, - tag => 'tacker-service' - } - } - -} diff --git a/manifests/vnf_lcm.pp b/manifests/vnf_lcm.pp deleted file mode 100644 index 95d7976..0000000 --- a/manifests/vnf_lcm.pp +++ /dev/null @@ -1,49 +0,0 @@ -# = Class: tacker::vnf_lcm -# -# This class manages the Tacker vnf_lcm. -# -# [*endpoint_url*] -# (Optional) Endpoint URL. -# Defaults to $::os_service_default -# -# [*subscription_num*] -# (Optional) Number of subscriptions. -# Defaults to $::os_service_default -# -# [*retry_num*] -# (Optional) Number of retry. -# Defaults to $::os_service_default -# -# [*retry_wait*] -# (Optional) Retry interval(sec). -# Defaults to $::os_service_default -# -# [*retry_timeout*] -# (Optional) Retry timeout(sec). -# Defaults to $::os_service_default -# -# [*test_callback_uri*] -# (Optional) Test callbackUri. -# Defaults to $::os_service_default -# -class tacker::vnf_lcm( - $endpoint_url = $::os_service_default, - $subscription_num = $::os_service_default, - $retry_num = $::os_service_default, - $retry_wait = $::os_service_default, - $retry_timeout = $::os_service_default, - $test_callback_uri = $::os_service_default, -) { - - include tacker::deps - include tacker::params - - tacker_config { - 'vnf_lcm/endpoint_url': value => $endpoint_url; - 'vnf_lcm/subscription_num': value => $subscription_num; - 'vnf_lcm/retry_num': value => $retry_num; - 'vnf_lcm/retry_wait': value => $retry_wait; - 'vnf_lcm/retry_timeout': value => $retry_timeout; - 'vnf_lcm/test_callback_uri': value => $test_callback_uri; - } -} diff --git a/manifests/vnf_package.pp b/manifests/vnf_package.pp deleted file mode 100644 index 97215ba..0000000 --- a/manifests/vnf_package.pp +++ /dev/null @@ -1,55 +0,0 @@ -# = Class: tacker::vnf_package -# -# This class manages the Tacker vnf_package. -# -# [*vnf_package_csar_path*] -# (Optional) Path to store extracted CSAR file. -# Defaults to $::os_service_default -# -# [*csar_file_size_cap*] -# (Optional) Maximum size of CSAR file a user can upload in GB. -# Defaults to $::os_service_default -# -# [*hashing_algorithm*] -# (Optional) Secure hashing algorithm used for computing the 'hash' property. -# Defaults to $::os_service_default -# -# [*get_top_list*] -# (Optional) List of items to get from top-vnfd. -# Defaults to $::os_service_default -# -# [*exclude_node*] -# (Optional) Exclude node from node_template. -# Default to $::os_service_default -# -# [*get_lower_list*] -# (Optional) List of types to get from lower-vnfd. -# Defaults to $::os_service_default -# -# [*del_input_list*] -# (Optional) List of del inputs from lower-vnfd -# Defaults to $::os_service_default -# -class tacker::vnf_package( - $vnf_package_csar_path = $::os_service_default, - $csar_file_size_cap = $::os_service_default, - $hashing_algorithm = $::os_service_default, - $get_top_list = $::os_service_default, - $exclude_node = $::os_service_default, - $get_lower_list = $::os_service_default, - $del_input_list = $::os_service_default, -) { - - include tacker::deps - include tacker::params - - tacker_config { - 'vnf_package/vnf_package_csar_path': value => $vnf_package_csar_path; - 'vnf_package/csar_file_size_cap': value => $csar_file_size_cap; - 'vnf_package/hashing_algorithm': value => $hashing_algorithm; - 'vnf_package/get_top_list': value => join(any2array($get_top_list), ','); - 'vnf_package/exclude_node': value => join(any2array($exclude_node), ','); - 'vnf_package/get_lower_list': value => join(any2array($get_lower_list), ','); - 'vnf_package/del_input_list': value => join(any2array($del_input_list), ','); - } -} diff --git a/metadata.json b/metadata.json deleted file mode 100644 index e412ce0..0000000 --- a/metadata.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "author": "OpenStack Contributors", - "dependencies": [ - { - "name": "puppetlabs/inifile", - "version_requirement": ">=2.0.0 <6.0.0" - }, - { - "name": "puppetlabs/stdlib", - "version_requirement": ">= 5.0.0 <9.0.0" - }, - { - "name": "openstack/keystone", - "version_requirement": ">=21.0.0 <22.0.0" - }, - { - "name": "openstack/openstacklib", - "version_requirement": ">=21.0.0 <22.0.0" - }, - { - "name": "openstack/oslo", - "version_requirement": ">=21.0.0 <22.0.0" - } - ], - "description": "Installs and configures OpenStack Tacker.", - "issues_url": "https://bugs.launchpad.net/puppet-tacker", - "license": "Apache-2.0", - "name": "openstack-tacker", - "operatingsystem_support": [ - { - "operatingsystem": "Debian", - "operatingsystemrelease": [ - "11" - ] - }, - { - "operatingsystem": "RedHat", - "operatingsystemrelease": [ - "9" - ] - }, - { - "operatingsystem": "CentOS", - "operatingsystemrelease": [ - "9" - ] - }, - { - "operatingsystem": "Ubuntu", - "operatingsystemrelease": [ - "22.04" - ] - } - ], - "project_page": "https://launchpad.net/puppet-tacker", - "requirements": [ - { - "name": "puppet", - "version_requirement": ">= 6.0.0 < 8.0.0" - } - ], - "source": "https://opendev.org/openstack/puppet-tacker.git", - "summary": "Puppet module for OpenStack Tacker", - "version": "21.0.0" -} diff --git a/releasenotes/notes/add-pool_timeout-option-for-db-963477cbb806b571.yaml b/releasenotes/notes/add-pool_timeout-option-for-db-963477cbb806b571.yaml deleted file mode 100644 index be30389..0000000 --- a/releasenotes/notes/add-pool_timeout-option-for-db-963477cbb806b571.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -features: - - | - Adds the pool_timeout option for configuring oslo.db. This will - configure this value for pool_timeout with SQLAlchemy. diff --git a/releasenotes/notes/add-service_token_roles-option-828cff06713dc9bc.yaml b/releasenotes/notes/add-service_token_roles-option-828cff06713dc9bc.yaml deleted file mode 100644 index ad0f161..0000000 --- a/releasenotes/notes/add-service_token_roles-option-828cff06713dc9bc.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -features: - - | - Add support to configure service_token_roles in authtoken middleware. diff --git a/releasenotes/notes/add-use_journal-option-for-logging-b2132d6f3e6ee0fc.yaml b/releasenotes/notes/add-use_journal-option-for-logging-b2132d6f3e6ee0fc.yaml deleted file mode 100644 index 12b190e..0000000 --- a/releasenotes/notes/add-use_journal-option-for-logging-b2132d6f3e6ee0fc.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -features: - - | - Adds the use_journal option for configuring oslo.log. This will enable - passing the logs to journald. diff --git a/releasenotes/notes/add_db_max_retries-139a35f8713d79a4.yaml b/releasenotes/notes/add_db_max_retries-139a35f8713d79a4.yaml deleted file mode 100644 index 9f74ba4..0000000 --- a/releasenotes/notes/add_db_max_retries-139a35f8713d79a4.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -features: - - Add new option tacker::db::database_db_max_retries. - The database_db_max_retries parameter regulates the - number of reconnection attempts performed after an - error raised rather than at startup. diff --git a/releasenotes/notes/add_db_sync_timeout-a8e91170bcdb0163.yaml b/releasenotes/notes/add_db_sync_timeout-a8e91170bcdb0163.yaml deleted file mode 100644 index 233445f..0000000 --- a/releasenotes/notes/add_db_sync_timeout-a8e91170bcdb0163.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -features: - - Adds db_sync_timeout parameter to db sync. diff --git a/releasenotes/notes/add_messaging_default_parameters-871a35ef9813582d.yaml b/releasenotes/notes/add_messaging_default_parameters-871a35ef9813582d.yaml deleted file mode 100644 index 39d5e04..0000000 --- a/releasenotes/notes/add_messaging_default_parameters-871a35ef9813582d.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -features: - - Add new parameter "control_exchange", the default exchange under - which topics are scoped. May be overridden by an exchange name - specified in the transport_url option. - - Add new parameter "rpc_response_timeout", seconds to wait for a - response from a call diff --git a/releasenotes/notes/add_messaging_notification_parameters-183a35d7635f9227.yaml b/releasenotes/notes/add_messaging_notification_parameters-183a35d7635f9227.yaml deleted file mode 100644 index 0469d31..0000000 --- a/releasenotes/notes/add_messaging_notification_parameters-183a35d7635f9227.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -features: - - Add new parameter "notification_transport_url", A URL - representing the messaging driver to use for notifications - and its full configuration. - - Add new parameter "notification_topics", AMQP topic used for - OpenStack notifications. - - Add new parameter "notification_driver", driver or drivers to - handle sending notifications. diff --git a/releasenotes/notes/add_mysql_enable_ndb-option-81a2f725fcf4268d.yaml b/releasenotes/notes/add_mysql_enable_ndb-option-81a2f725fcf4268d.yaml deleted file mode 100644 index 2e28c5c..0000000 --- a/releasenotes/notes/add_mysql_enable_ndb-option-81a2f725fcf4268d.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -features: - - | - Add mysql_enable_ndb parameter to select mysql storage engine. diff --git a/releasenotes/notes/add_rabbit_kombu_options-91123efd753e0f02.yaml b/releasenotes/notes/add_rabbit_kombu_options-91123efd753e0f02.yaml deleted file mode 100644 index 8ade115..0000000 --- a/releasenotes/notes/add_rabbit_kombu_options-91123efd753e0f02.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -features: - - | - Adds the kombu_failover_strategy option for configuring oslo.messaging.rabbit. - This will determines how the next RabbitMQ node is chosen in case the one we - are currently connected to becomes unavailable. diff --git a/releasenotes/notes/add_watch_log_file-option-bee1ac47cbf9a5bc.yaml b/releasenotes/notes/add_watch_log_file-option-bee1ac47cbf9a5bc.yaml deleted file mode 100644 index 2e46c92..0000000 --- a/releasenotes/notes/add_watch_log_file-option-bee1ac47cbf9a5bc.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -features: - - | - The new ``tacker::logging::watch_log_file`` parameter has been added. diff --git a/releasenotes/notes/api-allow-params-e3097edb0df1260a.yaml b/releasenotes/notes/api-allow-params-e3097edb0df1260a.yaml deleted file mode 100644 index 0bf2990..0000000 --- a/releasenotes/notes/api-allow-params-e3097edb0df1260a.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -features: - - | - The following parameters have been added to the ``tacker::server`` class. - - - ``allow_bulk`` - - ``allow_pagination`` - - ``allow_sorting`` - - ``pagination_max_limit`` diff --git a/releasenotes/notes/api_paste_ini-db64650c80b35187.yaml b/releasenotes/notes/api_paste_ini-db64650c80b35187.yaml deleted file mode 100644 index 7774862..0000000 --- a/releasenotes/notes/api_paste_ini-db64650c80b35187.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -features: - - | - The new ``tacker_api_paste_ini`` resource type has been added. This allows - customizing ``/etc/tacker/api-paste.ini``. - - - | - The new ``tacker::config::tacker_api_paste_ini`` parameter has been added. diff --git a/releasenotes/notes/api_workers-19ee939effb3d102.yaml b/releasenotes/notes/api_workers-19ee939effb3d102.yaml deleted file mode 100644 index daeae79..0000000 --- a/releasenotes/notes/api_workers-19ee939effb3d102.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -features: - - | - The new ``tacker::server::api_workers`` parameter has been added. diff --git a/releasenotes/notes/centos-9-support-912256d786db118f.yaml b/releasenotes/notes/centos-9-support-912256d786db118f.yaml deleted file mode 100644 index c3876a0..0000000 --- a/releasenotes/notes/centos-9-support-912256d786db118f.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -features: - - | - Now this module supports CentOS 9 and Red Hat Enterprise Linux 9. diff --git a/releasenotes/notes/conductor-ff8d3b89b5a3c0bd.yaml b/releasenotes/notes/conductor-ff8d3b89b5a3c0bd.yaml deleted file mode 100644 index 5f88c8c..0000000 --- a/releasenotes/notes/conductor-ff8d3b89b5a3c0bd.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -features: - - | - The new ``tacker::conductor`` class has been added. diff --git a/releasenotes/notes/coordination-62df61b16108ae0b.yaml b/releasenotes/notes/coordination-62df61b16108ae0b.yaml deleted file mode 100644 index fc6d8cf..0000000 --- a/releasenotes/notes/coordination-62df61b16108ae0b.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -features: - - | - The new ``tacker::coordination`` class has been added. diff --git a/releasenotes/notes/default_domain-be4ff459f4884138.yaml b/releasenotes/notes/default_domain-be4ff459f4884138.yaml deleted file mode 100644 index 7394505..0000000 --- a/releasenotes/notes/default_domain-be4ff459f4884138.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -issues: - - | - Keystone v2.0 API was removed so we need to set a default value - for user_domain_name and project_domain name, which will be - Default as it is already in some other classes in modules. diff --git a/releasenotes/notes/deprecate_allow_insecure_clients-option-a2a5695164bd8667.yaml b/releasenotes/notes/deprecate_allow_insecure_clients-option-a2a5695164bd8667.yaml deleted file mode 100644 index 72dff75..0000000 --- a/releasenotes/notes/deprecate_allow_insecure_clients-option-a2a5695164bd8667.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -deprecations: - - allow_insecure_clients option is now deprecated for removal, the - parameter has no effect. diff --git a/releasenotes/notes/deprecate_auth_uri_parameter-a6beb4d576824c81.yaml b/releasenotes/notes/deprecate_auth_uri_parameter-a6beb4d576824c81.yaml deleted file mode 100644 index 86d56c0..0000000 --- a/releasenotes/notes/deprecate_auth_uri_parameter-a6beb4d576824c81.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -deprecations: - - auth_uri is deprecated and will be removed in a future release. - Please use www_authenticate_uri instead. diff --git a/releasenotes/notes/deprecate_database_min_pool_size-option-8af627e95fadee30.yaml b/releasenotes/notes/deprecate_database_min_pool_size-option-8af627e95fadee30.yaml deleted file mode 100644 index 03e58c2..0000000 --- a/releasenotes/notes/deprecate_database_min_pool_size-option-8af627e95fadee30.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -deprecations: - - database_min_pool_size option is now deprecated for removal, the - parameter has no effect. diff --git a/releasenotes/notes/deprecate_idle_timeout_parameter-ae7c25bdd37a286f.yaml b/releasenotes/notes/deprecate_idle_timeout_parameter-ae7c25bdd37a286f.yaml deleted file mode 100644 index 09e76c4..0000000 --- a/releasenotes/notes/deprecate_idle_timeout_parameter-ae7c25bdd37a286f.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -deprecations: - - database_idle_timeout is deprecated and will be removed in a future - release. Please use database_connection_recycle_time instead. diff --git a/releasenotes/notes/deprecate_pki_related_parameters-9b491ae5f6bc9e9f.yaml b/releasenotes/notes/deprecate_pki_related_parameters-9b491ae5f6bc9e9f.yaml deleted file mode 100644 index 7aa4e60..0000000 --- a/releasenotes/notes/deprecate_pki_related_parameters-9b491ae5f6bc9e9f.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -deprecations: - - check_revocations_for_cached option is now deprecated for removal, the - parameter has no effect. - - hash_algorithms option is now deprecated for removal, the parameter - has no effect. diff --git a/releasenotes/notes/deprecate_revocation_cache_time_parameter-bb566daeb250a431.yaml b/releasenotes/notes/deprecate_revocation_cache_time_parameter-bb566daeb250a431.yaml deleted file mode 100644 index 438a913..0000000 --- a/releasenotes/notes/deprecate_revocation_cache_time_parameter-bb566daeb250a431.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -deprecations: - - revocation_cache_time option is now deprecated for removal, the - parameter has no effect. diff --git a/releasenotes/notes/deprecate_rpc_backend_parameter-82388fe35b27b3c9.yaml b/releasenotes/notes/deprecate_rpc_backend_parameter-82388fe35b27b3c9.yaml deleted file mode 100644 index 84884bc..0000000 --- a/releasenotes/notes/deprecate_rpc_backend_parameter-82388fe35b27b3c9.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -deprecations: - - tacker::rpc_backend is deprecated and will be removed in a future - release. Please use tacker::default_transport_url instead. diff --git a/releasenotes/notes/dont-include-logging-init-6ee9bc7f041536a6.yaml b/releasenotes/notes/dont-include-logging-init-6ee9bc7f041536a6.yaml deleted file mode 100644 index 6449a85..0000000 --- a/releasenotes/notes/dont-include-logging-init-6ee9bc7f041536a6.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -upgrade: - - | - tacker::logging is now not included in init class by default. diff --git a/releasenotes/notes/drop-fedora-d71cadf46ed026af.yaml b/releasenotes/notes/drop-fedora-d71cadf46ed026af.yaml deleted file mode 100644 index 71818df..0000000 --- a/releasenotes/notes/drop-fedora-d71cadf46ed026af.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -upgrade: - - | - Fedora is no longer supported. diff --git a/releasenotes/notes/keystone-authtoken-interface-7c0debd2916b010c.yaml b/releasenotes/notes/keystone-authtoken-interface-7c0debd2916b010c.yaml deleted file mode 100644 index 5c375fd..0000000 --- a/releasenotes/notes/keystone-authtoken-interface-7c0debd2916b010c.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -features: - - | - The new ``tacker::keystone::authtoken::interface`` parameter has been added, - which can be used to set the interface parameter in authtoken middleware. diff --git a/releasenotes/notes/keystone-authtoken-service_type-9b88483c50bab22b.yaml b/releasenotes/notes/keystone-authtoken-service_type-9b88483c50bab22b.yaml deleted file mode 100644 index 8601c1c..0000000 --- a/releasenotes/notes/keystone-authtoken-service_type-9b88483c50bab22b.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -features: - - | - The new ``tacker::keystone::authtoken::service_type`` parameter has been - added to configure the service_type parameter in authtoken middleware. diff --git a/releasenotes/notes/log-json-7613e987013f1a45.yaml b/releasenotes/notes/log-json-7613e987013f1a45.yaml deleted file mode 100644 index 41c0413..0000000 --- a/releasenotes/notes/log-json-7613e987013f1a45.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -features: - - | - Expose use_json logging parameter, which enables JSON formatted logging. diff --git a/releasenotes/notes/migrate-policy-format-json-to-yaml-a0fc4af909e233eb.yaml b/releasenotes/notes/migrate-policy-format-json-to-yaml-a0fc4af909e233eb.yaml deleted file mode 100644 index fd7e1a8..0000000 --- a/releasenotes/notes/migrate-policy-format-json-to-yaml-a0fc4af909e233eb.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -upgrade: - - | - Now policy.yaml is used by default instead of policy.json. diff --git a/releasenotes/notes/openstack_db_tag-9d9b3d58c9d63a42.yaml b/releasenotes/notes/openstack_db_tag-9d9b3d58c9d63a42.yaml deleted file mode 100644 index 4872e11..0000000 --- a/releasenotes/notes/openstack_db_tag-9d9b3d58c9d63a42.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -features: - - Add openstack-db tag to Exec that run db-sync. diff --git a/releasenotes/notes/oslo_policy-enforce_scope-d3329499e4bdd3ca.yaml b/releasenotes/notes/oslo_policy-enforce_scope-d3329499e4bdd3ca.yaml deleted file mode 100644 index c01160b..0000000 --- a/releasenotes/notes/oslo_policy-enforce_scope-d3329499e4bdd3ca.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -features: - - | - The new ``tacker::policy::enforce_scope`` parameter has been added to - support the corresponding parameter in oslo.policy library. diff --git a/releasenotes/notes/policy-dirs-6ee9bf5a0f434aad.yaml b/releasenotes/notes/policy-dirs-6ee9bf5a0f434aad.yaml deleted file mode 100644 index 17ef622..0000000 --- a/releasenotes/notes/policy-dirs-6ee9bf5a0f434aad.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -features: - - | - There is now a new policy_dirs parameter in the tacker::policy class, - so one can set a custom path. diff --git a/releasenotes/notes/policy-enforce_new_defaults-e57000a96328a6a7.yaml b/releasenotes/notes/policy-enforce_new_defaults-e57000a96328a6a7.yaml deleted file mode 100644 index 06fcdb8..0000000 --- a/releasenotes/notes/policy-enforce_new_defaults-e57000a96328a6a7.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -features: - - | - The new ``tacker::policy::enforce_new_defaults`` parameter has been - added. diff --git a/releasenotes/notes/policy_default_rule-9b2ec656d186967a.yaml b/releasenotes/notes/policy_default_rule-9b2ec656d186967a.yaml deleted file mode 100644 index a1619c7..0000000 --- a/releasenotes/notes/policy_default_rule-9b2ec656d186967a.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -features: - - | - The new ``tacker::policy::policy_default_rule`` parameter has been added. diff --git a/releasenotes/notes/policy_purge_config-759998eb1ab87bd2.yaml b/releasenotes/notes/policy_purge_config-759998eb1ab87bd2.yaml deleted file mode 100644 index ecb17ae..0000000 --- a/releasenotes/notes/policy_purge_config-759998eb1ab87bd2.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -features: - - | - Adds new purge_config parameter. When set to true, the policy file is - cleared during configuration process. This allows to remove any existing - rules before applying them or clean the file when all policies got removed. diff --git a/releasenotes/notes/puppet4-mysql-func-6da2140a20ae6d64.yaml b/releasenotes/notes/puppet4-mysql-func-6da2140a20ae6d64.yaml deleted file mode 100644 index 9db533e..0000000 --- a/releasenotes/notes/puppet4-mysql-func-6da2140a20ae6d64.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -upgrade: - - | - This module now requires a puppetlabs-mysql version >= 6.0.0 diff --git a/releasenotes/notes/rabbitmq-heartbeat-over-pthread-a4ccf632450fe566.yaml b/releasenotes/notes/rabbitmq-heartbeat-over-pthread-a4ccf632450fe566.yaml deleted file mode 100644 index 496d227..0000000 --- a/releasenotes/notes/rabbitmq-heartbeat-over-pthread-a4ccf632450fe566.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -features: - - | - Allow users to run the RabbitMQ heartbeat over a native python thread in the - oslo.messaging RabbitMQ driver, by using the `rabbit_heartbeat_in_pthread` - option in configuration. diff --git a/releasenotes/notes/release-note-ubuntu-py3-7df0383f755751df.yaml b/releasenotes/notes/release-note-ubuntu-py3-7df0383f755751df.yaml deleted file mode 100644 index 8ec2452..0000000 --- a/releasenotes/notes/release-note-ubuntu-py3-7df0383f755751df.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -prelude: > - In this release Ubuntu has moved all projects that supported it to python3 - which means that there will be a lot of changes. The Puppet OpenStack project - does not test the upgrade path from python2 to python3 packages so there might - be manual steps required when moving to the python3 packages. -upgrade: - - | - Ubuntu packages are now using python3, the upgrade path is not tested by - Puppet OpenStack. Manual steps may be required when upgrading. diff --git a/releasenotes/notes/remove-amqp_allow_insecure_clients-0a111a95029df374.yaml b/releasenotes/notes/remove-amqp_allow_insecure_clients-0a111a95029df374.yaml deleted file mode 100644 index e548237..0000000 --- a/releasenotes/notes/remove-amqp_allow_insecure_clients-0a111a95029df374.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -upgrade: - - | - The ``tacker::amqp_allow_insecure_clients`` parameter has been removed. diff --git a/releasenotes/notes/remove-auth-uri-60e70376d1571635.yaml b/releasenotes/notes/remove-auth-uri-60e70376d1571635.yaml deleted file mode 100644 index b3e3719..0000000 --- a/releasenotes/notes/remove-auth-uri-60e70376d1571635.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -upgrade: - - | - The deprecated parameter auth_uri is now removed, please use www_authenticate_uri. diff --git a/releasenotes/notes/remove-centos-8-245b07ed9fd5343f.yaml b/releasenotes/notes/remove-centos-8-245b07ed9fd5343f.yaml deleted file mode 100644 index 7451387..0000000 --- a/releasenotes/notes/remove-centos-8-245b07ed9fd5343f.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -upgrade: - - | - CentOS 8 Stream is no longer supported by this module. diff --git a/releasenotes/notes/remove-database_min_pool_size-d41cfa37a688ab20.yaml b/releasenotes/notes/remove-database_min_pool_size-d41cfa37a688ab20.yaml deleted file mode 100644 index e2b4d0e..0000000 --- a/releasenotes/notes/remove-database_min_pool_size-d41cfa37a688ab20.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -upgrade: - - | - The ``tacker::db::database_min_pool_size`` parameter has been removed. diff --git a/releasenotes/notes/remove-deprecated-rabbit-params-21ab0c89b2ef85fc.yaml b/releasenotes/notes/remove-deprecated-rabbit-params-21ab0c89b2ef85fc.yaml deleted file mode 100644 index 6a599e9..0000000 --- a/releasenotes/notes/remove-deprecated-rabbit-params-21ab0c89b2ef85fc.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -upgrade: - - | - The deprecated tacker::rpc_backend is now removed. Please use - tacker::default_transport_url instead. diff --git a/releasenotes/notes/remove_deprecated_keystone_revocation_cache_time_option-9b4653c7b63ff446.yaml b/releasenotes/notes/remove_deprecated_keystone_revocation_cache_time_option-9b4653c7b63ff446.yaml deleted file mode 100644 index e7fe971..0000000 --- a/releasenotes/notes/remove_deprecated_keystone_revocation_cache_time_option-9b4653c7b63ff446.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -upgrade: - - Deprecated keystone::authtoken::revocation_cache_time option has been removed. diff --git a/releasenotes/notes/remove_deprecated_pki_related_options-bf467c0f89340bc9.yaml b/releasenotes/notes/remove_deprecated_pki_related_options-bf467c0f89340bc9.yaml deleted file mode 100644 index 62af34f..0000000 --- a/releasenotes/notes/remove_deprecated_pki_related_options-bf467c0f89340bc9.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -upgrade: - - | - The deprecated pki related options check_revocations_for_cached and - hash_algorithms option has been removed. diff --git a/releasenotes/notes/remove_idle_timeout_option-9b3ae94dab5435c5.yaml b/releasenotes/notes/remove_idle_timeout_option-9b3ae94dab5435c5.yaml deleted file mode 100644 index 6ba54d4..0000000 --- a/releasenotes/notes/remove_idle_timeout_option-9b3ae94dab5435c5.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -upgrade: - - Deprecated idle_timeout option has been removed. diff --git a/releasenotes/notes/service-opts-fb0b928f265220f1.yaml b/releasenotes/notes/service-opts-fb0b928f265220f1.yaml deleted file mode 100644 index 529741b..0000000 --- a/releasenotes/notes/service-opts-fb0b928f265220f1.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -features: - - | - The following parameters have been added to the ``tacker::conductor`` - class. - - - ``report_interval`` - - ``periodic_interval`` - - ``periodic_fuzzy_delay`` diff --git a/releasenotes/notes/service_token_roles_required-8026d50ee62b8a3e.yaml b/releasenotes/notes/service_token_roles_required-8026d50ee62b8a3e.yaml deleted file mode 100644 index 60a4521..0000000 --- a/releasenotes/notes/service_token_roles_required-8026d50ee62b8a3e.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -features: - - Service_token_roles_required missing in the server config file which - allows backwards compatibility to ensure that the service tokens are - compared against a list of possible roles for validity. diff --git a/releasenotes/notes/system_scope-keystone-1b608a6438b81d20.yaml b/releasenotes/notes/system_scope-keystone-1b608a6438b81d20.yaml deleted file mode 100644 index 96284a2..0000000 --- a/releasenotes/notes/system_scope-keystone-1b608a6438b81d20.yaml +++ /dev/null @@ -1,12 +0,0 @@ -features: - - | - The ``system_scope`` parameter has been added to - the ``tacker::keystone::authtoken`` class. - - - | - The ``tacker::keystone::auth`` class now supports customizing roles - assigned to the tacker service user. - - - | - The ``tacker::keystone::auth`` class now supports defining assignmet of - system-scoped roles to the tacker service user. diff --git a/releasenotes/notes/ubuntu-jammy-540d34478b123915.yaml b/releasenotes/notes/ubuntu-jammy-540d34478b123915.yaml deleted file mode 100644 index b6e0f8a..0000000 --- a/releasenotes/notes/ubuntu-jammy-540d34478b123915.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -features: - - | - This module now supports Ubuntu 22.04 (Jammy Jellyfish). - -upgrade: - - | - This module no longer supports Ubuntu 20.04 (Focal Fossa). diff --git a/releasenotes/notes/vnf-params-a98424616fba6a39.yaml b/releasenotes/notes/vnf-params-a98424616fba6a39.yaml deleted file mode 100644 index 6492c15..0000000 --- a/releasenotes/notes/vnf-params-a98424616fba6a39.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -features: - - | - The following classes have been added. - - - ``tacker::vnf_package`` - - ``tacker::vnf_lcm`` diff --git a/releasenotes/source/_static/.placeholder b/releasenotes/source/_static/.placeholder deleted file mode 100644 index e69de29..0000000 diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py deleted file mode 100644 index 4654cb0..0000000 --- a/releasenotes/source/conf.py +++ /dev/null @@ -1,256 +0,0 @@ -# -*- coding: utf-8 -*- -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -# implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -#sys.path.insert(0, os.path.abspath('.')) - -# -- General configuration ------------------------------------------------ - - -# If your documentation needs a minimal Sphinx version, state it here. -#needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = [ - 'openstackdocstheme', - 'reno.sphinxext', -] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix of source filenames. -source_suffix = '.rst' - -# The encoding of source files. -#source_encoding = 'utf-8-sig' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -copyright = '2017, Puppet OpenStack Developers' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The short X.Y version. -version = '' -# The full version, including alpha/beta/rc tags. -release = '' - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -#language = None - -# There are two options for replacing |today|: either, you set today to some -# non-false value, then it is used: -#today = '' -# Else, today_fmt is used as the format for a strftime call. -#today_fmt = '%B %d, %Y' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -exclude_patterns = [] - -# The reST default role (used for this markup: `text`) to use for all -# documents. -#default_role = None - -# If true, '()' will be appended to :func: etc. cross-reference text. -#add_function_parentheses = True - -# If true, the current module name will be prepended to all description -# unit titles (such as .. function::). -#add_module_names = True - -# If true, sectionauthor and moduleauthor directives will be shown in the -# output. They are ignored by default. -#show_authors = False - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'native' - -# A list of ignored prefixes for module index sorting. -#modindex_common_prefix = [] - -# If true, keep warnings as "system message" paragraphs in the built documents. -#keep_warnings = False - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -html_theme = 'openstackdocs' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -#html_theme_options = {} - -# Add any paths that contain custom themes here, relative to this directory. -# html_theme_path = [] - -# The name for this set of Sphinx documents. If None, it defaults to -# " v documentation". -#html_title = None - -# A shorter title for the navigation bar. Default is the same as html_title. -#html_short_title = None - -# The name of an image file (relative to this directory) to place at the top -# of the sidebar. -#html_logo = None - -# The name of an image file (within the static path) to use as favicon of the -# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 -# pixels large. -#html_favicon = None - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] - -# Add any extra paths that contain custom files (such as robots.txt or -# .htaccess) here, relative to this directory. These files are copied -# directly to the root of the documentation. -#html_extra_path = [] - -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, -# using the given strftime format. - -# If true, SmartyPants will be used to convert quotes and dashes to -# typographically correct entities. -#html_use_smartypants = True - -# Custom sidebar templates, maps document names to template names. -#html_sidebars = {} - -# Additional templates that should be rendered to pages, maps page names to -# template names. -#html_additional_pages = {} - -# If false, no module index is generated. -#html_domain_indices = True - -# If false, no index is generated. -#html_use_index = True - -# If true, the index is split into individual pages for each letter. -#html_split_index = False - -# If true, links to the reST sources are added to the pages. -#html_show_sourcelink = True - -# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. -#html_show_sphinx = True - -# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. -#html_show_copyright = True - -# If true, an OpenSearch description file will be output, and all pages will -# contain a tag referring to it. The value of this option must be the -# base URL from which the finished HTML is served. -#html_use_opensearch = '' - -# This is the file name suffix for HTML files (e.g. ".xhtml"). -#html_file_suffix = None - -# Output file base name for HTML help builder. -htmlhelp_basename = 'puppet-tackerReleaseNotesdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - ('index', 'puppet-tackerReleaseNotes.tex', 'puppet-tacker Release Notes Documentation', - '2017, Puppet OpenStack Developers', 'manual'), -] - -# The name of an image file (relative to this directory) to place at the top of -# the title page. -#latex_logo = None - -# For "manual" documents, if this is true, then toplevel headings are parts, -# not chapters. -#latex_use_parts = False - -# If true, show page references after internal links. -#latex_show_pagerefs = False - -# If true, show URL addresses after external links. -#latex_show_urls = False - -# Documents to append as an appendix to all manuals. -#latex_appendices = [] - -# If false, no module index is generated. -#latex_domain_indices = True - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - ('index', 'puppet-tackerreleasenotes', 'puppet-tacker Release Notes Documentation', - ['2017, Puppet OpenStack Developers'], 1) -] - -# If true, show URL addresses after external links. -#man_show_urls = False - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - ('index', 'puppet-tackerReleaseNotes', 'puppet-tacker Release Notes Documentation', - '2017, Puppet OpenStack Developers', 'puppet-tackerReleaseNotes', 'One line description of project.', - 'Miscellaneous'), -] - -# Documents to append as an appendix to all manuals. -#texinfo_appendices = [] - -# If false, no module index is generated. -#texinfo_domain_indices = True - -# How to display URL addresses: 'footnote', 'no', or 'inline'. -#texinfo_show_urls = 'footnote' - -# If true, do not generate a @detailmenu in the "Top" node's menu. -#texinfo_no_detailmenu = False - -# -- Options for Internationalization output ------------------------------ -locale_dirs = ['locale/'] - -# openstackdocstheme options -openstackdocs_repo_name = 'openstack/puppet-tacker' -openstackdocs_bug_project = 'puppet-tacker' -openstackdocs_bug_tag = '' -openstackdocs_auto_name = False diff --git a/releasenotes/source/index.rst b/releasenotes/source/index.rst deleted file mode 100644 index 7119064..0000000 --- a/releasenotes/source/index.rst +++ /dev/null @@ -1,30 +0,0 @@ -======================================= -Welcome to puppet-tacker Release Notes! -======================================= - -Contents -======== - -.. toctree:: - :maxdepth: 2 - - unreleased - zed - yoga - xena - wallaby - victoria - ussuri - train - stein - rocky - queens - pike - ocata - - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`search` diff --git a/releasenotes/source/ocata.rst b/releasenotes/source/ocata.rst deleted file mode 100644 index ebe62f4..0000000 --- a/releasenotes/source/ocata.rst +++ /dev/null @@ -1,6 +0,0 @@ -=================================== - Ocata Series Release Notes -=================================== - -.. release-notes:: - :branch: origin/stable/ocata diff --git a/releasenotes/source/pike.rst b/releasenotes/source/pike.rst deleted file mode 100644 index e43bfc0..0000000 --- a/releasenotes/source/pike.rst +++ /dev/null @@ -1,6 +0,0 @@ -=================================== - Pike Series Release Notes -=================================== - -.. release-notes:: - :branch: stable/pike diff --git a/releasenotes/source/queens.rst b/releasenotes/source/queens.rst deleted file mode 100644 index 36ac616..0000000 --- a/releasenotes/source/queens.rst +++ /dev/null @@ -1,6 +0,0 @@ -=================================== - Queens Series Release Notes -=================================== - -.. release-notes:: - :branch: stable/queens diff --git a/releasenotes/source/rocky.rst b/releasenotes/source/rocky.rst deleted file mode 100644 index 40dd517..0000000 --- a/releasenotes/source/rocky.rst +++ /dev/null @@ -1,6 +0,0 @@ -=================================== - Rocky Series Release Notes -=================================== - -.. release-notes:: - :branch: stable/rocky diff --git a/releasenotes/source/stein.rst b/releasenotes/source/stein.rst deleted file mode 100644 index efaceb6..0000000 --- a/releasenotes/source/stein.rst +++ /dev/null @@ -1,6 +0,0 @@ -=================================== - Stein Series Release Notes -=================================== - -.. release-notes:: - :branch: stable/stein diff --git a/releasenotes/source/train.rst b/releasenotes/source/train.rst deleted file mode 100644 index 5839003..0000000 --- a/releasenotes/source/train.rst +++ /dev/null @@ -1,6 +0,0 @@ -========================== -Train Series Release Notes -========================== - -.. release-notes:: - :branch: stable/train diff --git a/releasenotes/source/unreleased.rst b/releasenotes/source/unreleased.rst deleted file mode 100644 index 2334dd5..0000000 --- a/releasenotes/source/unreleased.rst +++ /dev/null @@ -1,5 +0,0 @@ -============================== - Current Series Release Notes -============================== - - .. release-notes:: diff --git a/releasenotes/source/ussuri.rst b/releasenotes/source/ussuri.rst deleted file mode 100644 index e21e50e..0000000 --- a/releasenotes/source/ussuri.rst +++ /dev/null @@ -1,6 +0,0 @@ -=========================== -Ussuri Series Release Notes -=========================== - -.. release-notes:: - :branch: stable/ussuri diff --git a/releasenotes/source/victoria.rst b/releasenotes/source/victoria.rst deleted file mode 100644 index 4efc7b6..0000000 --- a/releasenotes/source/victoria.rst +++ /dev/null @@ -1,6 +0,0 @@ -============================= -Victoria Series Release Notes -============================= - -.. release-notes:: - :branch: stable/victoria diff --git a/releasenotes/source/wallaby.rst b/releasenotes/source/wallaby.rst deleted file mode 100644 index d77b565..0000000 --- a/releasenotes/source/wallaby.rst +++ /dev/null @@ -1,6 +0,0 @@ -============================ -Wallaby Series Release Notes -============================ - -.. release-notes:: - :branch: stable/wallaby diff --git a/releasenotes/source/xena.rst b/releasenotes/source/xena.rst deleted file mode 100644 index 1be85be..0000000 --- a/releasenotes/source/xena.rst +++ /dev/null @@ -1,6 +0,0 @@ -========================= -Xena Series Release Notes -========================= - -.. release-notes:: - :branch: stable/xena diff --git a/releasenotes/source/yoga.rst b/releasenotes/source/yoga.rst deleted file mode 100644 index 7cd5e90..0000000 --- a/releasenotes/source/yoga.rst +++ /dev/null @@ -1,6 +0,0 @@ -========================= -Yoga Series Release Notes -========================= - -.. release-notes:: - :branch: stable/yoga diff --git a/releasenotes/source/zed.rst b/releasenotes/source/zed.rst deleted file mode 100644 index 9608c05..0000000 --- a/releasenotes/source/zed.rst +++ /dev/null @@ -1,6 +0,0 @@ -======================== -Zed Series Release Notes -======================== - -.. release-notes:: - :branch: stable/zed diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index f51c4c2..0000000 --- a/setup.cfg +++ /dev/null @@ -1,15 +0,0 @@ -[metadata] -name = puppet-tacker -summary = Puppet module for OpenStack Tacker -description_file = - README.md -author = OpenStack -author_email = openstack-discuss@lists.openstack.org -home_page = https://docs.openstack.org/puppet-openstack-guide/latest -license = Apache License, Version 2.0 -classifier = - Intended Audience :: Developers - Intended Audience :: Information Technology - Intended Audience :: System Administrators - License :: OSI Approved :: Apache Software License - Operating System :: POSIX :: Linux diff --git a/setup.py b/setup.py deleted file mode 100644 index 31d6ada..0000000 --- a/setup.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -# implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import setuptools - -setuptools.setup( - setup_requires=['pbr>=2.0.0'], - py_modules=[], - pbr=True) diff --git a/spec/acceptance/10_basic_tacker_spec.rb b/spec/acceptance/10_basic_tacker_spec.rb deleted file mode 100644 index a1ca146..0000000 --- a/spec/acceptance/10_basic_tacker_spec.rb +++ /dev/null @@ -1,76 +0,0 @@ -require 'spec_helper_acceptance' - -describe 'basic tacker' do - - context 'default parameters' do - - it 'should work with no errors' do - pp= <<-EOS - include openstack_integration - include openstack_integration::repos - include openstack_integration::apache - include openstack_integration::rabbitmq - include openstack_integration::mysql - include openstack_integration::keystone - - rabbitmq_user { 'tacker': - admin => true, - password => 'my_secret', - provider => 'rabbitmqctl', - require => Class['rabbitmq'], - } - - rabbitmq_user_permissions { 'tacker@/': - configure_permission => '.*', - write_permission => '.*', - read_permission => '.*', - provider => 'rabbitmqctl', - require => Class['rabbitmq'], - } - - class { 'tacker::db::mysql': - charset => $::openstack_integration::params::mysql_charset, - password => 'a_big_secret', - } - case $::osfamily { - 'Debian': { - warning('Tacker is not yet packaged on Ubuntu systems.') - } - 'RedHat': { - class { 'tacker::db': - database_connection => 'mysql+pymysql://tacker:a_big_secret@127.0.0.1/tacker?charset=utf8', - } - class { 'tacker::keystone::auth': - password => 'a_big_secret', - } - class { 'tacker::keystone::authtoken': - password => 'a_big_secret', - } - class { 'tacker::logging': - debug => true, - } - class { 'tacker': - default_transport_url => 'rabbit://tacker:my_secret@127.0.0.1:5672/', - } - include tacker::server - include tacker::client - } - default: { - fail("Unsupported osfamily (${::osfamily})") - } - } - EOS - - # Run it twice and test for idempotency - apply_manifest(pp, :catch_failures => true) - apply_manifest(pp, :catch_changes => true) - end - - if os[:family].casecmp('RedHat') == 0 - describe port(9890) do - it { is_expected.to be_listening } - end - end - end - -end diff --git a/spec/acceptance/99_tacker_config_spec.rb b/spec/acceptance/99_tacker_config_spec.rb deleted file mode 100644 index 348f064..0000000 --- a/spec/acceptance/99_tacker_config_spec.rb +++ /dev/null @@ -1,101 +0,0 @@ -require 'spec_helper_acceptance' - -describe 'basic tacker_config resource' do - - context 'default parameters' do - - it 'should work with no errors' do - pp= <<-EOS - Exec { logoutput => 'on_failure' } - - File <||> -> Tacker_config <||> - File <||> -> Tacker_api_paste_ini <||> - - file { '/etc/tacker' : - ensure => directory, - } - file { '/etc/tacker/tacker.conf' : - ensure => file, - } - file { '/etc/tacker/api-paste.ini' : - ensure => file, - } - - tacker_config { 'DEFAULT/thisshouldexist' : - value => 'foo', - } - - tacker_config { 'DEFAULT/thisshouldnotexist' : - value => '', - } - - tacker_config { 'DEFAULT/thisshouldexist2' : - value => '', - ensure_absent_val => 'toto', - } - - tacker_config { 'DEFAULT/thisshouldnotexist2' : - value => 'toto', - ensure_absent_val => 'toto', - } - - tacker_config { 'DEFAULT/thisshouldexist3' : - value => ['foo', 'bar'], - } - - tacker_api_paste_ini { 'DEFAULT/thisshouldexist' : - value => 'foo', - } - - tacker_api_paste_ini { 'DEFAULT/thisshouldnotexist' : - value => '', - } - - tacker_api_paste_ini { 'DEFAULT/thisshouldexist2' : - value => '', - ensure_absent_val => 'toto', - } - - tacker_api_paste_ini { 'DEFAULT/thisshouldnotexist2' : - value => 'toto', - ensure_absent_val => 'toto', - } - - tacker_api_paste_ini { 'DEFAULT/thisshouldexist3' : - value => 'foo', - key_val_separator => ':' - } - EOS - - - # Run it twice and test for idempotency - apply_manifest(pp, :catch_failures => true) - apply_manifest(pp, :catch_changes => true) - end - - describe file('/etc/tacker/tacker.conf') do - it { is_expected.to exist } - it { is_expected.to contain('thisshouldexist=foo') } - it { is_expected.to contain('thisshouldexist2=') } - it { is_expected.to contain('thisshouldexist3=foo') } - it { is_expected.to contain('thisshouldexist3=bar') } - - describe '#content' do - subject { super().content } - it { is_expected.to_not match /thisshouldnotexist/ } - end - end - - describe file('/etc/tacker/api-paste.ini') do - it { is_expected.to exist } - it { is_expected.to contain('thisshouldexist=foo') } - it { is_expected.to contain('thisshouldexist2=') } - it { is_expected.to contain('thisshouldexist3:foo') } - - describe '#content' do - subject { super().content } - it { is_expected.to_not match /thisshouldnotexist/ } - end - end - end -end diff --git a/spec/classes/tacker_client_spec.rb b/spec/classes/tacker_client_spec.rb deleted file mode 100644 index e17f8c6..0000000 --- a/spec/classes/tacker_client_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -require 'spec_helper' - -describe 'tacker::client' do - - shared_examples 'tacker::client' do - - context 'with default parameters' do - it 'contains tacker::params' do - is_expected.to contain_class('tacker::deps') - is_expected.to contain_class('tacker::params') - end - it 'contains tackerclient' do - is_expected.to contain_package('python-tackerclient').with( - :ensure => 'present', - :name => platform_params[:client_package_name], - :tag => 'openstack', - ) - end - end - - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - let(:platform_params) do - case facts[:osfamily] - when 'Debian' - { :client_package_name => 'python3-tackerclient' } - when 'RedHat' - { :client_package_name => 'python3-tackerclient' } - end - end - - it_behaves_like 'tacker::client' - - end - end - - -end diff --git a/spec/classes/tacker_conductor_spec.rb b/spec/classes/tacker_conductor_spec.rb deleted file mode 100644 index 5274a2b..0000000 --- a/spec/classes/tacker_conductor_spec.rb +++ /dev/null @@ -1,88 +0,0 @@ -require 'spec_helper' - -describe 'tacker::conductor' do - - let :pre_condition do - "class {'tacker': }" - end - - let :params do - { :enabled => true, - :manage_service => true, - } - end - - shared_examples_for 'tacker::conductor' do - - it { is_expected.to contain_class('tacker::deps') } - it { is_expected.to contain_class('tacker::params') } - - it { - is_expected.to contain_tacker_config('DEFAULT/report_interval').with_value('') - is_expected.to contain_tacker_config('DEFAULT/periodic_interval').with_value('') - is_expected.to contain_tacker_config('DEFAULT/periodic_fuzzy_delay').with_value('') - } - - [{:enabled => true}, {:enabled => false}].each do |param_hash| - context "when service should be #{param_hash[:enabled] ? 'enabled' : 'disabled'}" do - before do - params.merge!(param_hash) - end - - it 'configures tacker-server service' do - is_expected.to contain_service('tacker-conductor').with( - :ensure => (params[:manage_service] && params[:enabled]) ? 'running' : 'stopped', - :name => platform_params[:conductor_service_name], - :enable => params[:enabled], - :tag => 'tacker-service', - ) - end - it 'contains tacker' do - is_expected.to contain_package('tacker-server').with( - :ensure => 'installed', - :name => platform_params[:tacker_package] - ) - end - - end - end - - context 'when parameters set' do - before do - params.merge!( - :report_interval => 10, - :periodic_interval => 40, - :periodic_fuzzy_delay => 5, - ) - end - it { - is_expected.to contain_tacker_config('DEFAULT/report_interval').with_value(10) - is_expected.to contain_tacker_config('DEFAULT/periodic_interval').with_value(40) - is_expected.to contain_tacker_config('DEFAULT/periodic_fuzzy_delay').with_value(5) - } - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - let(:platform_params) do - case facts[:osfamily] - when 'Debian' - { :conductor_service_name => 'tacker-conductor', - :tacker_package => 'tacker' } - when 'RedHat' - { :conductor_service_name => 'openstack-tacker-conductor', - :tacker_package => 'openstack-tacker' } - end - end - - it_configures 'tacker::conductor' - end - end -end diff --git a/spec/classes/tacker_config_spec.rb b/spec/classes/tacker_config_spec.rb deleted file mode 100644 index 65fa311..0000000 --- a/spec/classes/tacker_config_spec.rb +++ /dev/null @@ -1,50 +0,0 @@ -require 'spec_helper' - -describe 'tacker::config' do - - let(:config_hash) do { - 'DEFAULT/foo' => { 'value' => 'fooValue' }, - 'DEFAULT/bar' => { 'value' => 'barValue' }, - 'DEFAULT/baz' => { 'ensure' => 'absent' } - } - end - - shared_examples_for 'tacker_config' do - let :params do - { :tacker_config => config_hash } - end - - it { is_expected.to contain_class('tacker::deps') } - - it 'configures arbitrary tacker-config configurations' do - is_expected.to contain_tacker_config('DEFAULT/foo').with_value('fooValue') - is_expected.to contain_tacker_config('DEFAULT/bar').with_value('barValue') - is_expected.to contain_tacker_config('DEFAULT/baz').with_ensure('absent') - end - end - - shared_examples_for 'tacker_api_paste_ini' do - let :params do - { :tacker_api_paste_ini => config_hash } - end - - it 'configures arbitrary tacker-api-paste-ini configurations' do - is_expected.to contain_tacker_api_paste_ini('DEFAULT/foo').with_value('fooValue') - is_expected.to contain_tacker_api_paste_ini('DEFAULT/bar').with_value('barValue') - is_expected.to contain_tacker_api_paste_ini('DEFAULT/baz').with_ensure('absent') - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - it_configures 'tacker_config' - it_configures 'tacker_api_paste_ini' - end - end -end diff --git a/spec/classes/tacker_coordination_spec.rb b/spec/classes/tacker_coordination_spec.rb deleted file mode 100644 index f061b4a..0000000 --- a/spec/classes/tacker_coordination_spec.rb +++ /dev/null @@ -1,39 +0,0 @@ -require 'spec_helper' - -describe 'tacker::coordination' do - shared_examples 'tacker::coordination' do - context 'with default parameters' do - it { - is_expected.to contain_oslo__coordination('tacker_config').with( - :backend_url => '' - ) - } - end - - context 'with specified parameters' do - let :params do - { - :backend_url => 'etcd3+http://127.0.0.1:2379', - } - end - - it { - is_expected.to contain_oslo__coordination('tacker_config').with( - :backend_url => 'etcd3+http://127.0.0.1:2379' - ) - } - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge(OSDefaults.get_facts()) - end - - it_behaves_like 'tacker::coordination' - end - end -end diff --git a/spec/classes/tacker_db_mysql_spec.rb b/spec/classes/tacker_db_mysql_spec.rb deleted file mode 100644 index a988b2d..0000000 --- a/spec/classes/tacker_db_mysql_spec.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'spec_helper' - -describe 'tacker::db::mysql' do - - let :pre_condition do - 'include mysql::server' - end - - let :required_params do - { :password => 'tackerpass', } - end - - shared_examples_for 'tacker-db-mysql' do - context 'with only required params' do - let :params do - required_params - end - - it { should contain_class('tacker::deps') } - - it { is_expected.to contain_openstacklib__db__mysql('tacker').with( - :user => 'tacker', - :password => 'tackerpass', - :dbname => 'tacker', - :host => '127.0.0.1', - :charset => 'utf8', - :collate => 'utf8_general_ci', - )} - end - - context 'overriding allowed_hosts param to array' do - let :params do - { :allowed_hosts => ['127.0.0.1','%'] }.merge(required_params) - end - - it { is_expected.to contain_openstacklib__db__mysql('tacker').with( - :user => 'tacker', - :password => 'tackerpass', - :dbname => 'tacker', - :host => '127.0.0.1', - :charset => 'utf8', - :collate => 'utf8_general_ci', - :allowed_hosts => ['127.0.0.1','%'] - )} - end - - describe 'overriding allowed_hosts param to string' do - let :params do - { :allowed_hosts => '192.168.1.1' }.merge(required_params) - end - - it { is_expected.to contain_openstacklib__db__mysql('tacker').with( - :user => 'tacker', - :password => 'tackerpass', - :dbname => 'tacker', - :host => '127.0.0.1', - :charset => 'utf8', - :collate => 'utf8_general_ci', - :allowed_hosts => '192.168.1.1' - )} - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - it_behaves_like 'tacker-db-mysql' - end - end -end diff --git a/spec/classes/tacker_db_postgresql_spec.rb b/spec/classes/tacker_db_postgresql_spec.rb deleted file mode 100644 index 7e56317..0000000 --- a/spec/classes/tacker_db_postgresql_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -require 'spec_helper' - -describe 'tacker::db::postgresql' do - - let :pre_condition do - 'include postgresql::server' - end - - let :required_params do - { :password => 'tackerpass' } - end - - shared_examples_for 'tacker-db-postgresql' do - context 'with only required parameters' do - let :params do - required_params - end - - it { is_expected.to contain_class('tacker::deps') } - - it { is_expected.to contain_openstacklib__db__postgresql('tacker').with( - :user => 'tacker', - :password => 'tackerpass', - :dbname => 'tacker', - :encoding => nil, - :privileges => 'ALL', - )} - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts({ - # puppet-postgresql requires the service_provider fact provided by - # puppetlabs-postgresql. - :service_provider => 'systemd' - })) - end - - it_behaves_like 'tacker-db-postgresql' - end - end -end diff --git a/spec/classes/tacker_db_spec.rb b/spec/classes/tacker_db_spec.rb deleted file mode 100644 index 73e5040..0000000 --- a/spec/classes/tacker_db_spec.rb +++ /dev/null @@ -1,63 +0,0 @@ -require 'spec_helper' - -describe 'tacker::db' do - shared_examples 'tacker::db' do - context 'with default parameters' do - it { should contain_class('tacker::deps') } - - it { should contain_oslo__db('tacker_config').with( - :db_max_retries => '', - :connection => 'sqlite:////var/lib/tacker/tacker.sqlite', - :connection_recycle_time => '', - :max_pool_size => '', - :max_retries => '', - :retry_interval => '', - :max_overflow => '', - :pool_timeout => '', - :mysql_enable_ndb => '', - )} - end - - context 'with specific parameters' do - let :params do - { - :database_connection => 'mysql+pymysql://tacker:tacker@localhost/tacker', - :database_connection_recycle_time => '3601', - :database_max_retries => '11', - :database_db_max_retries => '-1', - :database_retry_interval => '11', - :database_max_pool_size => '11', - :database_max_overflow => '21', - :database_pool_timeout => '21', - :mysql_enable_ndb => true, - } - end - - it { should contain_class('tacker::deps') } - - it { should contain_oslo__db('tacker_config').with( - :connection => 'mysql+pymysql://tacker:tacker@localhost/tacker', - :connection_recycle_time => '3601', - :max_pool_size => '11', - :max_retries => '11', - :db_max_retries => '-1', - :retry_interval => '11', - :max_overflow => '21', - :pool_timeout => '21', - :mysql_enable_ndb => true, - )} - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - it_behaves_like 'tacker::db' - end - end -end diff --git a/spec/classes/tacker_db_sync_spec.rb b/spec/classes/tacker_db_sync_spec.rb deleted file mode 100644 index 515d633..0000000 --- a/spec/classes/tacker_db_sync_spec.rb +++ /dev/null @@ -1,71 +0,0 @@ -require 'spec_helper' - -describe 'tacker::db::sync' do - - shared_examples_for 'tacker-dbsync' do - - it { is_expected.to contain_class('tacker::deps') } - - it 'runs tacker-manage db sync' do - is_expected.to contain_exec('tacker-db-sync').with( - :command => 'tacker-db-manage --config-file /etc/tacker/tacker.conf upgrade head', - :user => 'tacker', - :path => ['/bin','/usr/bin'], - :refreshonly => 'true', - :try_sleep => 5, - :tries => 10, - :timeout => 300, - :logoutput => 'on_failure', - :subscribe => ['Anchor[tacker::install::end]', - 'Anchor[tacker::config::end]', - 'Anchor[tacker::dbsync::begin]'], - :notify => 'Anchor[tacker::dbsync::end]', - :tag => 'openstack-db', - ) - end - - describe "overriding extra_params" do - let :params do - { - :extra_params => '--config-file /etc/tacker/tacker.conf', - :db_sync_timeout => 750, - } - end - - it { - is_expected.to contain_exec('tacker-db-sync').with( - :command => 'tacker-db-manage --config-file /etc/tacker/tacker.conf upgrade head', - :user => 'tacker', - :path => ['/bin','/usr/bin'], - :refreshonly => 'true', - :try_sleep => 5, - :tries => 10, - :timeout => 750, - :logoutput => 'on_failure', - :subscribe => ['Anchor[tacker::install::end]', - 'Anchor[tacker::config::end]', - 'Anchor[tacker::dbsync::begin]'], - :notify => 'Anchor[tacker::dbsync::end]', - :tag => 'openstack-db', - ) - } - end - - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge(OSDefaults.get_facts({ - :os_workers => 8, - :concat_basedir => '/var/lib/puppet/concat' - })) - end - - it_configures 'tacker-dbsync' - end - end - -end diff --git a/spec/classes/tacker_init_spec.rb b/spec/classes/tacker_init_spec.rb deleted file mode 100644 index b695c99..0000000 --- a/spec/classes/tacker_init_spec.rb +++ /dev/null @@ -1,217 +0,0 @@ -require 'spec_helper' - -describe 'tacker' do - - shared_examples 'tacker' do - - context 'with default parameters' do - let :params do - { - } - end - - it 'contains the deps class' do - is_expected.to contain_class('tacker::deps') - end - - it 'configures rabbit' do - is_expected.to contain_tacker_config('DEFAULT/transport_url').with_value('') - is_expected.to contain_tacker_config('DEFAULT/rpc_response_timeout').with_value('') - is_expected.to contain_tacker_config('DEFAULT/control_exchange').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_rabbit/heartbeat_timeout_threshold').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_rabbit/heartbeat_rate').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_rabbit/heartbeat_in_pthread').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_rabbit/kombu_compression').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_rabbit/kombu_failover_strategy').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_notifications/transport_url').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_notifications/driver').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_notifications/topics').with_value('') - end - - end - - context 'with overridden parameters' do - let :params do - { - :default_transport_url => 'rabbit://user:pass@host:1234/virt', - :rpc_response_timeout => '120', - :control_exchange => 'tacker', - :rabbit_ha_queues => 'undef', - :rabbit_heartbeat_timeout_threshold => '60', - :rabbit_heartbeat_rate => '10', - :rabbit_heartbeat_in_pthread => true, - :kombu_compression => 'gzip', - :kombu_failover_strategy => 'shuffle', - :notification_transport_url => 'rabbit://user:pass@host:1234/virt', - :notification_topics => 'openstack', - :notification_driver => 'messagingv1', - } - end - - it 'configures rabbit' do - is_expected.to contain_tacker_config('DEFAULT/transport_url').with_value('rabbit://user:pass@host:1234/virt') - is_expected.to contain_tacker_config('DEFAULT/rpc_response_timeout').with_value('120') - is_expected.to contain_tacker_config('DEFAULT/control_exchange').with_value('tacker') - is_expected.to contain_tacker_config('oslo_messaging_rabbit/heartbeat_timeout_threshold').with_value('60') - is_expected.to contain_tacker_config('oslo_messaging_rabbit/heartbeat_rate').with_value('10') - is_expected.to contain_tacker_config('oslo_messaging_rabbit/heartbeat_in_pthread').with_value(true) - is_expected.to contain_tacker_config('oslo_messaging_rabbit/kombu_compression').with_value('gzip') - is_expected.to contain_tacker_config('oslo_messaging_rabbit/kombu_failover_strategy').with_value('shuffle') - is_expected.to contain_tacker_config('oslo_messaging_notifications/transport_url').with_value('rabbit://user:pass@host:1234/virt') - is_expected.to contain_tacker_config('oslo_messaging_notifications/driver').with_value('messagingv1') - is_expected.to contain_tacker_config('oslo_messaging_notifications/topics').with_value('openstack') - end - - end - - context 'with kombu_reconnect_delay set to 5.0' do - let :params do - { :kombu_reconnect_delay => '5.0' } - end - - it 'configures rabbit' do - is_expected.to contain_tacker_config('oslo_messaging_rabbit/kombu_reconnect_delay').with_value('5.0') - end - end - - context 'with rabbit_ha_queues set to true' do - let :params do - { :rabbit_ha_queues => 'true' } - end - - it 'configures rabbit' do - is_expected.to contain_tacker_config('oslo_messaging_rabbit/rabbit_ha_queues').with_value(true) - end - end - - context 'with rabbit_ha_queues set to false' do - let :params do - { :rabbit_ha_queues => 'false' } - end - - it 'configures rabbit' do - is_expected.to contain_tacker_config('oslo_messaging_rabbit/rabbit_ha_queues').with_value(false) - end - end - - context 'with amqp_durable_queues parameter' do - let :params do - { :amqp_durable_queues => 'true' } - end - - it 'configures rabbit' do - is_expected.to contain_tacker_config('oslo_messaging_rabbit/rabbit_ha_queues').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_rabbit/amqp_durable_queues').with_value(true) - is_expected.to contain_oslo__messaging__rabbit('tacker_config').with( - :rabbit_use_ssl => '', - ) - end - end - - context 'with rabbit ssl enabled with kombu' do - let :params do - { - :rabbit_use_ssl => true, - :kombu_ssl_ca_certs => '/etc/ca.cert', - :kombu_ssl_certfile => '/etc/certfile', - :kombu_ssl_keyfile => '/etc/key', - :kombu_ssl_version => 'TLSv1', } - end - - it 'configures rabbit' do - is_expected.to contain_oslo__messaging__rabbit('tacker_config').with( - :rabbit_use_ssl => true, - :kombu_ssl_ca_certs => '/etc/ca.cert', - :kombu_ssl_certfile => '/etc/certfile', - :kombu_ssl_keyfile => '/etc/key', - :kombu_ssl_version => 'TLSv1', - ) - end - end - - context 'with rabbit ssl enabled without kombu' do - let :params do - { - :rabbit_use_ssl => true, - } - end - - it 'configures rabbit' do - is_expected.to contain_oslo__messaging__rabbit('tacker_config').with( - :rabbit_use_ssl => true, - :kombu_ssl_ca_certs => '', - :kombu_ssl_certfile => '', - :kombu_ssl_keyfile => '', - :kombu_ssl_version => '', - ) - end - end - - context 'with amqp default parameters' do - it 'configures amqp' do - is_expected.to contain_tacker_config('oslo_messaging_amqp/server_request_prefix').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/broadcast_prefix').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/group_request_prefix').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/container_name').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/idle_timeout').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/trace').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/ssl_ca_file').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/ssl_cert_file').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/ssl_key_file').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/ssl_key_password').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/sasl_mechanisms').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/sasl_config_dir').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/sasl_config_name').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/username').with_value('') - is_expected.to contain_tacker_config('oslo_messaging_amqp/password').with_value('') - end - end - - context 'with overridden amqp parameters' do - let :params do - { - :amqp_idle_timeout => '60', - :amqp_trace => true, - :amqp_ssl_ca_file => '/etc/ca.cert', - :amqp_ssl_cert_file => '/etc/certfile', - :amqp_ssl_key_file => '/etc/key', - :amqp_username => 'amqp_user', - :amqp_password => 'password', - } - end - - it 'configures amqp' do - is_expected.to contain_tacker_config('oslo_messaging_amqp/idle_timeout').with_value('60') - is_expected.to contain_tacker_config('oslo_messaging_amqp/trace').with_value('true') - is_expected.to contain_tacker_config('oslo_messaging_amqp/ssl_ca_file').with_value('/etc/ca.cert') - is_expected.to contain_tacker_config('oslo_messaging_amqp/ssl_cert_file').with_value('/etc/certfile') - is_expected.to contain_tacker_config('oslo_messaging_amqp/ssl_key_file').with_value('/etc/key') - is_expected.to contain_tacker_config('oslo_messaging_amqp/username').with_value('amqp_user') - is_expected.to contain_tacker_config('oslo_messaging_amqp/password').with_value('password') - end - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - let(:platform_params) do - case facts[:osfamily] - when 'Debian' - { :tacker_package => 'tacker' } - when 'RedHat' - { :tacker_package => 'openstack-tacker' } - end - end - it_behaves_like 'tacker' - - end - end - - -end diff --git a/spec/classes/tacker_keystone_auth_spec.rb b/spec/classes/tacker_keystone_auth_spec.rb deleted file mode 100644 index 9531997..0000000 --- a/spec/classes/tacker_keystone_auth_spec.rb +++ /dev/null @@ -1,89 +0,0 @@ -# -# Unit tests for tacker::keystone::auth -# - -require 'spec_helper' - -describe 'tacker::keystone::auth' do - shared_examples_for 'tacker::keystone::auth' do - context 'with default class parameters' do - let :params do - { :password => 'tacker_password' } - end - - it { is_expected.to contain_keystone__resource__service_identity('tacker').with( - :configure_user => true, - :configure_user_role => true, - :configure_endpoint => true, - :service_name => 'tacker', - :service_type => 'nfv-orchestration', - :service_description => 'tacker NFV orchestration Service', - :region => 'RegionOne', - :auth_name => 'tacker', - :password => 'tacker_password', - :email => 'tacker@localhost', - :tenant => 'services', - :roles => ['admin'], - :system_scope => 'all', - :system_roles => [], - :public_url => 'http://127.0.0.1:9890', - :internal_url => 'http://127.0.0.1:9890', - :admin_url => 'http://127.0.0.1:9890', - ) } - end - - context 'when overriding parameters' do - let :params do - { :password => 'tacker_password', - :auth_name => 'alt_tacker', - :email => 'alt_tacker@alt_localhost', - :tenant => 'alt_service', - :roles => ['admin', 'service'], - :system_scope => 'alt_all', - :system_roles => ['admin', 'member', 'reader'], - :configure_endpoint => false, - :configure_user => false, - :configure_user_role => false, - :service_description => 'Alternative tacker NFV orchestration Service', - :service_name => 'alt_service', - :service_type => 'alt_nfv-orchestration', - :region => 'RegionTwo', - :public_url => 'https://10.10.10.10:80', - :internal_url => 'http://10.10.10.11:81', - :admin_url => 'http://10.10.10.12:81' } - end - - it { is_expected.to contain_keystone__resource__service_identity('tacker').with( - :configure_user => false, - :configure_user_role => false, - :configure_endpoint => false, - :service_name => 'alt_service', - :service_type => 'alt_nfv-orchestration', - :service_description => 'Alternative tacker NFV orchestration Service', - :region => 'RegionTwo', - :auth_name => 'alt_tacker', - :password => 'tacker_password', - :email => 'alt_tacker@alt_localhost', - :tenant => 'alt_service', - :roles => ['admin', 'service'], - :system_scope => 'alt_all', - :system_roles => ['admin', 'member', 'reader'], - :public_url => 'https://10.10.10.10:80', - :internal_url => 'http://10.10.10.11:81', - :admin_url => 'http://10.10.10.12:81', - ) } - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - it_behaves_like 'tacker::keystone::auth' - end - end -end diff --git a/spec/classes/tacker_keystone_authtoken_spec.rb b/spec/classes/tacker_keystone_authtoken_spec.rb deleted file mode 100644 index 7783961..0000000 --- a/spec/classes/tacker_keystone_authtoken_spec.rb +++ /dev/null @@ -1,155 +0,0 @@ -require 'spec_helper' - -describe 'tacker::keystone::authtoken' do - - let :params do - { :password => 'tacker_password', } - end - - shared_examples 'tacker::keystone::authtoken' do - - context 'with default parameters' do - - it 'configure keystone_authtoken' do - is_expected.to contain_keystone__resource__authtoken('tacker_config').with( - :username => 'tacker', - :password => 'tacker_password', - :auth_url => 'http://localhost:5000', - :project_name => 'services', - :user_domain_name => 'Default', - :project_domain_name => 'Default', - :system_scope => '', - :insecure => '', - :auth_section => '', - :auth_type => 'password', - :www_authenticate_uri => 'http://localhost:5000', - :auth_version => '', - :cache => '', - :cafile => '', - :certfile => '', - :delay_auth_decision => '', - :enforce_token_bind => '', - :http_connect_timeout => '', - :http_request_max_retries => '', - :include_service_catalog => '', - :keyfile => '', - :memcache_pool_conn_get_timeout => '', - :memcache_pool_dead_retry => '', - :memcache_pool_maxsize => '', - :memcache_pool_socket_timeout => '', - :memcache_pool_unused_timeout => '', - :memcache_secret_key => '', - :memcache_security_strategy => '', - :memcache_use_advanced_pool => '', - :memcached_servers => '', - :manage_memcache_package => false, - :region_name => '', - :token_cache_time => '', - :service_token_roles => '', - :service_token_roles_required => '', - :service_type => '', - :interface => '', - ) - end - end - - context 'when overriding parameters' do - before do - params.merge!({ - :www_authenticate_uri => 'https://10.0.0.1:9999/', - :username => 'myuser', - :password => 'mypasswd', - :auth_url => 'http://127.0.0.1:5000', - :project_name => 'service_project', - :user_domain_name => 'domainX', - :project_domain_name => 'domainX', - :system_scope => '', - :insecure => false, - :auth_section => 'new_section', - :auth_type => 'password', - :auth_version => 'v3', - :cache => 'somevalue', - :cafile => '/opt/stack/data/cafile.pem', - :certfile => 'certfile.crt', - :delay_auth_decision => false, - :enforce_token_bind => 'permissive', - :http_connect_timeout => '300', - :http_request_max_retries => '3', - :include_service_catalog => true, - :keyfile => 'keyfile', - :memcache_pool_conn_get_timeout => '9', - :memcache_pool_dead_retry => '302', - :memcache_pool_maxsize => '11', - :memcache_pool_socket_timeout => '2', - :memcache_pool_unused_timeout => '61', - :memcache_secret_key => 'secret_key', - :memcache_security_strategy => 'ENCRYPT', - :memcache_use_advanced_pool => true, - :memcached_servers => ['memcached01:11211','memcached02:11211'], - :manage_memcache_package => true, - :region_name => 'region2', - :token_cache_time => '301', - :service_token_roles => ['service'], - :service_token_roles_required => false, - :service_type => 'identity', - :interface => 'internal', - }) - end - - it 'configure keystone_authtoken' do - is_expected.to contain_keystone__resource__authtoken('tacker_config').with( - :www_authenticate_uri => 'https://10.0.0.1:9999/', - :username => 'myuser', - :password => 'mypasswd', - :auth_url => 'http://127.0.0.1:5000', - :project_name => 'service_project', - :user_domain_name => 'domainX', - :project_domain_name => 'domainX', - :system_scope => '', - :insecure => false, - :auth_section => 'new_section', - :auth_type => 'password', - :auth_version => 'v3', - :cache => 'somevalue', - :cafile => '/opt/stack/data/cafile.pem', - :certfile => 'certfile.crt', - :delay_auth_decision => false, - :enforce_token_bind => 'permissive', - :http_connect_timeout => '300', - :http_request_max_retries => '3', - :include_service_catalog => true, - :keyfile => 'keyfile', - :memcache_pool_conn_get_timeout => '9', - :memcache_pool_dead_retry => '302', - :memcache_pool_maxsize => '11', - :memcache_pool_socket_timeout => '2', - :memcache_pool_unused_timeout => '61', - :memcache_secret_key => 'secret_key', - :memcache_security_strategy => 'ENCRYPT', - :memcache_use_advanced_pool => true, - :memcached_servers => ['memcached01:11211','memcached02:11211'], - :manage_memcache_package => true, - :region_name => 'region2', - :token_cache_time => '301', - :service_token_roles => ['service'], - :service_token_roles_required => false, - :service_type => 'identity', - :interface => 'internal', - ) - end - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - it_configures 'tacker::keystone::authtoken' - end - end - -end diff --git a/spec/classes/tacker_logging_spec.rb b/spec/classes/tacker_logging_spec.rb deleted file mode 100644 index cbb9112..0000000 --- a/spec/classes/tacker_logging_spec.rb +++ /dev/null @@ -1,136 +0,0 @@ -require 'spec_helper' - -describe 'tacker::logging' do - - let :params do - { - } - end - - let :log_params do - { - :logging_context_format_string => '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s', - :logging_default_format_string => '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s', - :logging_debug_format_suffix => '%(funcName)s %(pathname)s:%(lineno)d', - :logging_exception_prefix => '%(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s', - :log_config_append => '/etc/tacker/logging.conf', - :publish_errors => true, - :default_log_levels => { - 'amqp' => 'WARN', 'amqplib' => 'WARN', 'boto' => 'WARN', - 'sqlalchemy' => 'WARN', 'suds' => 'INFO', 'iso8601' => 'WARN', - 'requests.packages.urllib3.connectionpool' => 'WARN' }, - :fatal_deprecations => true, - :instance_format => '[instance: %(uuid)s] ', - :instance_uuid_format => '[instance: %(uuid)s] ', - :log_date_format => '%Y-%m-%d %H:%M:%S', - :use_syslog => true, - :use_json => true, - :use_journal => true, - :use_stderr => false, - :syslog_log_facility => 'LOG_FOO', - :log_dir => '/var/log', - :log_file => '/var/tmp/tacker_random.log', - :watch_log_file => true, - :debug => true, - } - end - - shared_examples_for 'tacker-logging' do - - context 'with basic logging options and default settings' do - it_configures 'basic default logging settings' - end - - context 'with basic logging options and non-default settings' do - before { params.merge!( log_params ) } - it_configures 'basic non-default logging settings' - end - - context 'with extended logging options' do - before { params.merge!( log_params ) } - it_configures 'logging params set' - end - - context 'without extended logging options' do - it_configures 'logging params unset' - end - - end - - shared_examples 'basic default logging settings' do - it 'configures tacker logging settings with default values' do - is_expected.to contain_oslo__log('tacker_config').with( - :use_syslog => '', - :use_json => '', - :use_journal => '', - :use_stderr => '', - :syslog_log_facility => '', - :log_dir => '/var/log/tacker', - :log_file => '/var/log/tacker/tacker.log', - :watch_log_file => '', - :debug => '', - ) - end - end - - shared_examples 'basic non-default logging settings' do - it 'configures tacker logging settings with non-default values' do - is_expected.to contain_oslo__log('tacker_config').with( - :use_syslog => true, - :use_json => true, - :use_journal => true, - :use_stderr => false, - :syslog_log_facility => 'LOG_FOO', - :log_dir => '/var/log', - :log_file => '/var/tmp/tacker_random.log', - :watch_log_file => true, - :debug => true, - ) - end - end - - shared_examples_for 'logging params set' do - it 'enables logging params' do - is_expected.to contain_oslo__log('tacker_config').with( - :logging_context_format_string => - '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s', - :logging_default_format_string => '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s', - :logging_debug_format_suffix => '%(funcName)s %(pathname)s:%(lineno)d', - :logging_exception_prefix => '%(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s', - :log_config_append => '/etc/tacker/logging.conf', - :publish_errors => true, - :default_log_levels => { - 'amqp' => 'WARN', 'amqplib' => 'WARN', 'boto' => 'WARN', - 'sqlalchemy' => 'WARN', 'suds' => 'INFO', 'iso8601' => 'WARN', - 'requests.packages.urllib3.connectionpool' => 'WARN' }, - :fatal_deprecations => true, - :instance_format => '[instance: %(uuid)s] ', - :instance_uuid_format => '[instance: %(uuid)s] ', - :log_date_format => '%Y-%m-%d %H:%M:%S', - ) - end - end - - shared_examples_for 'logging params unset' do - [ :logging_context_format_string, :logging_default_format_string, - :logging_debug_format_suffix, :logging_exception_prefix, - :log_config_append, :publish_errors, - :default_log_levels, :fatal_deprecations, - :instance_format, :instance_uuid_format, - :log_date_format, ].each { |param| - it { is_expected.to contain_oslo__log('tacker_config').with("#{param}" => '') } - } - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - it_behaves_like 'tacker-logging' - end - end -end diff --git a/spec/classes/tacker_policy_spec.rb b/spec/classes/tacker_policy_spec.rb deleted file mode 100644 index c3591b0..0000000 --- a/spec/classes/tacker_policy_spec.rb +++ /dev/null @@ -1,87 +0,0 @@ -require 'spec_helper' - -describe 'tacker::policy' do - shared_examples 'tacker::policy' do - - context 'setup policy with parameters' do - let :params do - { - :enforce_scope => false, - :enforce_new_defaults => false, - :policy_path => '/etc/tacker/policy.yaml', - :policy_default_rule => 'default', - :policy_dirs => '/etc/tacker/policy.d', - :policies => { - 'context_is_admin' => { - 'key' => 'context_is_admin', - 'value' => 'foo:bar' - } - } - } - end - - it 'set up the policies' do - is_expected.to contain_openstacklib__policy('/etc/tacker/policy.yaml').with( - :policies => { - 'context_is_admin' => { - 'key' => 'context_is_admin', - 'value' => 'foo:bar' - } - }, - :policy_path => '/etc/tacker/policy.yaml', - :file_user => 'root', - :file_group => 'tacker', - :file_format => 'yaml', - :purge_config => false, - ) - is_expected.to contain_oslo__policy('tacker_config').with( - :enforce_scope => false, - :enforce_new_defaults => false, - :policy_file => '/etc/tacker/policy.yaml', - :policy_default_rule => 'default', - :policy_dirs => '/etc/tacker/policy.d', - ) - end - end - - context 'with empty policies and purge_config enabled' do - let :params do - { - :enforce_scope => false, - :enforce_new_defaults => false, - :policy_path => '/etc/tacker/policy.yaml', - :policies => {}, - :purge_config => true, - } - end - - it 'set up the policies' do - is_expected.to contain_openstacklib__policy('/etc/tacker/policy.yaml').with( - :policies => {}, - :policy_path => '/etc/tacker/policy.yaml', - :file_user => 'root', - :file_group => 'tacker', - :file_format => 'yaml', - :purge_config => true, - ) - is_expected.to contain_oslo__policy('tacker_config').with( - :enforce_scope => false, - :enforce_new_defaults => false, - :policy_file => '/etc/tacker/policy.yaml', - ) - end - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - it_behaves_like 'tacker::policy' - end - end -end diff --git a/spec/classes/tacker_server_spec.rb b/spec/classes/tacker_server_spec.rb deleted file mode 100644 index 3f895dc..0000000 --- a/spec/classes/tacker_server_spec.rb +++ /dev/null @@ -1,87 +0,0 @@ -require 'spec_helper' - -describe 'tacker::server' do - - let :pre_condition do - "class { 'tacker::keystone::authtoken': - password =>'foo', - } - class {'tacker': }" - end - - let :params do - { :enabled => true, - :manage_service => true, - :bind_host => '0.0.0.0', - :bind_port => '1789' - } - end - - shared_examples_for 'tacker::server' do - - it { is_expected.to contain_class('tacker::deps') } - it { is_expected.to contain_class('tacker::params') } - it { is_expected.to contain_class('tacker::policy') } - - it 'configures api' do - is_expected.to contain_tacker_config('DEFAULT/auth_strategy').with_value('keystone') - is_expected.to contain_tacker_config('DEFAULT/bind_host').with_value( params[:bind_host] ) - is_expected.to contain_tacker_config('DEFAULT/bind_port').with_value( params[:bind_port] ) - is_expected.to contain_tacker_config('DEFAULT/api_workers').with_value(4) - is_expected.to contain_tacker_config('DEFAULT/allow_bulk').with_value('') - is_expected.to contain_tacker_config('DEFAULT/allow_pagination').with_value('') - is_expected.to contain_tacker_config('DEFAULT/allow_sorting').with_value('') - is_expected.to contain_tacker_config('DEFAULT/pagination_max_limit').with_value('') - end - - [{:enabled => true}, {:enabled => false}].each do |param_hash| - context "when service should be #{param_hash[:enabled] ? 'enabled' : 'disabled'}" do - before do - params.merge!(param_hash) - end - - it 'configures tacker-server service' do - is_expected.to contain_service('tacker-server').with( - :ensure => (params[:manage_service] && params[:enabled]) ? 'running' : 'stopped', - :name => platform_params[:server_service_name], - :enable => params[:enabled], - :tag => 'tacker-service', - ) - end - it 'contains tacker' do - is_expected.to contain_package('tacker-server').with( - :ensure => 'installed', - :name => platform_params[:tacker_package] - ) - end - - end - end - - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts( - :os_workers => 4 - )) - end - - let(:platform_params) do - case facts[:osfamily] - when 'Debian' - { :server_service_name => 'tacker', - :tacker_package => 'tacker' } - when 'RedHat' - { :server_service_name => 'openstack-tacker-server', - :tacker_package => 'openstack-tacker' } - end - end - - it_configures 'tacker::server' - end - end -end diff --git a/spec/classes/tacker_vnf_lcm_spec.rb b/spec/classes/tacker_vnf_lcm_spec.rb deleted file mode 100644 index 36e40bd..0000000 --- a/spec/classes/tacker_vnf_lcm_spec.rb +++ /dev/null @@ -1,49 +0,0 @@ -require 'spec_helper' - -describe 'tacker::vnf_lcm' do - - shared_examples_for 'tacker::vnf_lcm' do - - context 'with defaults' do - it 'configures defaults' do - is_expected.to contain_tacker_config('vnf_lcm/endpoint_url').with_value('') - is_expected.to contain_tacker_config('vnf_lcm/subscription_num').with_value('') - is_expected.to contain_tacker_config('vnf_lcm/retry_num').with_value('') - is_expected.to contain_tacker_config('vnf_lcm/retry_wait').with_value('') - is_expected.to contain_tacker_config('vnf_lcm/test_callback_uri').with_value('') - end - end - - context 'with parameters set' do - let :params do - { - :endpoint_url => 'http://localhost:9890/', - :subscription_num => 100, - :retry_num => 3, - :retry_wait => 10, - :test_callback_uri => true, - } - end - - it 'configures the specified values' do - is_expected.to contain_tacker_config('vnf_lcm/endpoint_url').with_value('http://localhost:9890/') - is_expected.to contain_tacker_config('vnf_lcm/subscription_num').with_value(100) - is_expected.to contain_tacker_config('vnf_lcm/retry_num').with_value(3) - is_expected.to contain_tacker_config('vnf_lcm/retry_wait').with_value(10) - is_expected.to contain_tacker_config('vnf_lcm/test_callback_uri').with_value(true) - end - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - it_configures 'tacker::vnf_lcm' - end - end -end diff --git a/spec/classes/tacker_vnf_package_spec.rb b/spec/classes/tacker_vnf_package_spec.rb deleted file mode 100644 index 693b510..0000000 --- a/spec/classes/tacker_vnf_package_spec.rb +++ /dev/null @@ -1,55 +0,0 @@ -require 'spec_helper' - -describe 'tacker::vnf_package' do - - shared_examples_for 'tacker::vnf_package' do - - context 'with defaults' do - it 'configures defaults' do - is_expected.to contain_tacker_config('vnf_package/vnf_package_csar_path').with_value('') - is_expected.to contain_tacker_config('vnf_package/csar_file_size_cap').with_value('') - is_expected.to contain_tacker_config('vnf_package/hashing_algorithm').with_value('') - is_expected.to contain_tacker_config('vnf_package/get_top_list').with_value('') - is_expected.to contain_tacker_config('vnf_package/exclude_node').with_value('') - is_expected.to contain_tacker_config('vnf_package/get_lower_list').with_value('') - is_expected.to contain_tacker_config('vnf_package/del_input_list').with_value('') - end - end - - context 'with parameters set' do - let :params do - { - :vnf_package_csar_path => '/var/lib/tacker/vnfpackages/', - :csar_file_size_cap => 1024, - :hashing_algorithm => 'sha512', - :get_top_list => ['tosca_definitions_version', 'description', 'metadata'], - :exclude_node => ['VNF'], - :get_lower_list => ['tosca.nodes.nfv.VNF', 'tosca.nodes.nfv.VDU.Tacker'], - :del_input_list => ['descriptor_id', 'descriptor_version'], - } - end - - it 'configures the specified values' do - is_expected.to contain_tacker_config('vnf_package/vnf_package_csar_path').with_value('/var/lib/tacker/vnfpackages/') - is_expected.to contain_tacker_config('vnf_package/csar_file_size_cap').with_value(1024) - is_expected.to contain_tacker_config('vnf_package/hashing_algorithm').with_value('sha512') - is_expected.to contain_tacker_config('vnf_package/get_top_list').with_value('tosca_definitions_version,description,metadata') - is_expected.to contain_tacker_config('vnf_package/exclude_node').with_value('VNF') - is_expected.to contain_tacker_config('vnf_package/get_lower_list').with_value('tosca.nodes.nfv.VNF,tosca.nodes.nfv.VDU.Tacker') - is_expected.to contain_tacker_config('vnf_package/del_input_list').with_value('descriptor_id,descriptor_version') - end - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - it_configures 'tacker::vnf_package' - end - end -end diff --git a/spec/shared_examples.rb b/spec/shared_examples.rb deleted file mode 100644 index fec0eac..0000000 --- a/spec/shared_examples.rb +++ /dev/null @@ -1,5 +0,0 @@ -shared_examples_for "a Puppet::Error" do |description| - it "with message matching #{description.inspect}" do - expect { is_expected.to have_class_count(1) }.to raise_error(Puppet::Error, description) - end -end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb deleted file mode 100644 index 33f27e2..0000000 --- a/spec/spec_helper.rb +++ /dev/null @@ -1,18 +0,0 @@ -# Load libraries here to simulate how they live together in a real puppet run (for provider unit tests) -$LOAD_PATH.push(File.join(File.dirname(__FILE__), 'fixtures', 'modules', 'inifile', 'lib')) -$LOAD_PATH.push(File.join(File.dirname(__FILE__), 'fixtures', 'modules', 'openstacklib', 'lib')) -require 'puppetlabs_spec_helper/module_spec_helper' -require 'shared_examples' -require 'puppet-openstack_spec_helper/facts' - -fixture_path = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures')) - -RSpec.configure do |c| - c.alias_it_should_behave_like_to :it_configures, 'configures' - c.alias_it_should_behave_like_to :it_raises, 'raises' - - c.module_path = File.join(fixture_path, 'modules') - c.manifest_dir = File.join(fixture_path, 'manifests') -end - -at_exit { RSpec::Puppet::Coverage.report! } diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb deleted file mode 100644 index d51dfdb..0000000 --- a/spec/spec_helper_acceptance.rb +++ /dev/null @@ -1 +0,0 @@ -require 'puppet-openstack_spec_helper/litmus_spec_helper' diff --git a/spec/unit/provider/tacker_api_paste_ini/ini_setting_spec.rb b/spec/unit/provider/tacker_api_paste_ini/ini_setting_spec.rb deleted file mode 100644 index fe5f63d..0000000 --- a/spec/unit/provider/tacker_api_paste_ini/ini_setting_spec.rb +++ /dev/null @@ -1,13 +0,0 @@ -require 'spec_helper' -provider_class = Puppet::Type.type(:tacker_api_paste_ini).provider(:ini_setting) -describe provider_class do - - it 'should allow setting to be set explicitly' do - resource = Puppet::Type::Tacker_api_paste_ini.new( - {:name => 'dude/foo', :value => 'bar'} - ) - provider = provider_class.new(resource) - expect(provider.section).to eq('dude') - expect(provider.setting).to eq('foo') - end -end diff --git a/spec/unit/provider/tacker_config/openstackconfig_spec.rb b/spec/unit/provider/tacker_config/openstackconfig_spec.rb deleted file mode 100644 index 0626412..0000000 --- a/spec/unit/provider/tacker_config/openstackconfig_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -require 'spec_helper' -provider_class = Puppet::Type.type(:tacker_config).provider(:openstackconfig) -describe provider_class do - - it 'should default to the default setting when no other one is specified' do - resource = Puppet::Type::Tacker_config.new( - {:name => 'DEFAULT/foo', :value => 'bar'} - ) - provider = provider_class.new(resource) - expect(provider.section).to eq('DEFAULT') - expect(provider.setting).to eq('foo') - end - - it 'should allow setting to be set explicitly' do - resource = Puppet::Type::Tacker_config.new( - {:name => 'dude/foo', :value => 'bar'} - ) - provider = provider_class.new(resource) - expect(provider.section).to eq('dude') - expect(provider.setting).to eq('foo') - end - - it 'should ensure absent when is specified as a value' do - resource = Puppet::Type::Tacker_config.new( - {:name => 'dude/foo', :value => ''} - ) - provider = provider_class.new(resource) - provider.exists? - expect(resource[:ensure]).to eq :absent - end - - it 'should ensure absent when value matches ensure_absent_val' do - resource = Puppet::Type::Tacker_config.new( - {:name => 'dude/foo', :value => 'foo', :ensure_absent_val => 'foo' } - ) - provider = provider_class.new(resource) - provider.exists? - expect(resource[:ensure]).to eq :absent - end - -end diff --git a/spec/unit/type/tacker_api_paste_ini_spec.rb b/spec/unit/type/tacker_api_paste_ini_spec.rb deleted file mode 100644 index 4b48bad..0000000 --- a/spec/unit/type/tacker_api_paste_ini_spec.rb +++ /dev/null @@ -1,24 +0,0 @@ -require 'puppet' -require 'puppet/type/tacker_api_paste_ini' - -describe 'Puppet::Type.type(:tacker_api_paste_ini)' do - before :each do - @tacker_api_paste_ini = Puppet::Type.type(:tacker_api_paste_ini).new(:name => 'DEFAULT/foo', :value => 'bar') - end - - it 'should accept a valid value' do - @tacker_api_paste_ini[:value] = 'bar' - expect(@tacker_api_paste_ini[:value]).to eq('bar') - end - - it 'should autorequire the package that install the file' do - catalog = Puppet::Resource::Catalog.new - anchor = Puppet::Type.type(:anchor).new(:name => 'tacker::install::end') - catalog.add_resource anchor, @tacker_api_paste_ini - dependency = @tacker_api_paste_ini.autorequire - expect(dependency.size).to eq(1) - expect(dependency[0].target).to eq(@tacker_api_paste_ini) - expect(dependency[0].source).to eq(anchor) - end - -end diff --git a/spec/unit/type/tacker_config_spec.rb b/spec/unit/type/tacker_config_spec.rb deleted file mode 100644 index 385e1d5..0000000 --- a/spec/unit/type/tacker_config_spec.rb +++ /dev/null @@ -1,65 +0,0 @@ -require 'puppet' -require 'puppet/type/tacker_config' - -describe 'Puppet::Type.type(:tacker_config)' do - before :each do - @tacker_config = Puppet::Type.type(:tacker_config).new(:name => 'DEFAULT/foo', :value => 'bar') - end - - it 'should require a name' do - expect { - Puppet::Type.type(:tacker_config).new({}) - }.to raise_error(Puppet::Error, 'Title or name must be provided') - end - - it 'should not expect a name with whitespace' do - expect { - Puppet::Type.type(:tacker_config).new(:name => 'f oo') - }.to raise_error(Puppet::Error, /Parameter name failed/) - end - - it 'should fail when there is no section' do - expect { - Puppet::Type.type(:tacker_config).new(:name => 'foo') - }.to raise_error(Puppet::Error, /Parameter name failed/) - end - - it 'should not require a value when ensure is absent' do - Puppet::Type.type(:tacker_config).new(:name => 'DEFAULT/foo', :ensure => :absent) - end - - it 'should accept a valid value' do - @tacker_config[:value] = 'bar' - expect(@tacker_config[:value]).to eq(['bar']) - end - - it 'should accept a value with whitespace' do - @tacker_config[:value] = 'b ar' - expect(@tacker_config[:value]).to eq(['b ar']) - end - - it 'should accept valid ensure values' do - @tacker_config[:ensure] = :present - expect(@tacker_config[:ensure]).to eq(:present) - @tacker_config[:ensure] = :absent - expect(@tacker_config[:ensure]).to eq(:absent) - end - - it 'should not accept invalid ensure values' do - expect { - @tacker_config[:ensure] = :latest - }.to raise_error(Puppet::Error, /Invalid value/) - end - - it 'should autorequire the package that install the file' do - catalog = Puppet::Resource::Catalog.new - anchor = Puppet::Type.type(:anchor).new(:name => 'tacker::install::end') - catalog.add_resource anchor, @tacker_config - dependency = @tacker_config.autorequire - expect(dependency.size).to eq(1) - expect(dependency[0].target).to eq(@tacker_config) - expect(dependency[0].source).to eq(anchor) - end - - -end diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 5bf76d2..0000000 --- a/tox.ini +++ /dev/null @@ -1,13 +0,0 @@ -[tox] -minversion = 3.1 -skipsdist = True -envlist = releasenotes -ignore_basepython_conflict = True - -[testenv] -basepython = python3 - -[testenv:releasenotes] -deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} - -r{toxinidir}/doc/requirements.txt -commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html