Skip to content
Snippets Groups Projects
  1. Apr 14, 2023
    • Maksim Malchuk's avatar
      Fix maximum width of the DIB Multiline-YAML · 47862b56
      Maksim Malchuk authored
      The dib_env_vars variable in the Bifrost's dib.yml file can contain
      the DIB_BLOCK_DEVICE_CONFIG environment variable which is always the
      Multiline-YAML data. By default, the format of the data is not
      preserved while the configuration is merged and saved for the
      bifrost-deploy container.
      
      This is because Ansible uses the PyYAML library which has a default
      80 symbol string length limit. The official Ansible documentation [1]
      recommends using to_yaml or to_nice_yaml filters with width parameter.
      This change adds the same ability to the merge_yaml Ansible plugin.
      
      1. https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#formatting-data-yaml-and-json
      
      
      
      The related change for the diskimage-builder to solve the issue with
      incorrect data provided by Kolla-Ansible is also provided:
      I3b74ede69eb064ad813a9108ec68a228e549e8bb
      
      Closes-Bug: #2014980
      Related-Bug: #2014981
      Change-Id: Id79445c0311916ac6c1beb3986e14f652ee5a63c
      Signed-off-by: default avatarMaksim Malchuk <maksim.malchuk@gmail.com>
      47862b56
  2. Apr 01, 2023
    • Maksim Malchuk's avatar
      Fix merge action plugins verbose output · 8972241d
      Maksim Malchuk authored
      
      This change fixes the output 'module_args' information of the plugins
      'merge_configs' and 'merge_yaml' when Ansible is executed in maximum
      verbose mode. Now all the plugin options are displayed instead of
      standard 'copy' plugin options only.
      
      Also, this change contains fixes already applied in the Kayobe
      project to improve and synchronize the code of the plugins between
      projects.
      
      Change-Id: Ie2d9a0501fe29bfd854eb31258f282b197855948
      Signed-off-by: default avatarMaksim Malchuk <maksim.malchuk@gmail.com>
      8972241d
  3. Dec 13, 2022
  4. Aug 06, 2021
    • Victor Morales's avatar
      Remove unused imports in merge_yaml · d15d9430
      Victor Morales authored
      Dumper and Loader are classes seem to be loaded but not used in the merge_yaml
      file. This change removes them for reducing the number of lines.
      
      Change-Id: I87ef305903ab02226fcaa725ece622647d17811c
      d15d9430
  5. Mar 08, 2021
  6. Mar 05, 2021
    • Pierre Riteau's avatar
      Remove whitespace around equal signs in zookeeper.cfg · 2b723ead
      Pierre Riteau authored
      The merge_configs action plugin is updated with an option to control
      whether whitespace should be used around equal signs. The default
      remains to use whitespace: only zookeeper.cfg doesn't use them.
      
      This is to avoid issues with the zkCleanup.sh script which expects no
      whitespace. The ZooKeeper documentation also uses no whitespace in
      configuration file examples.
      
      Change-Id: Ia082a1c002cc4e8b04f7696fdee827b747c6d13f
      Closes-Bug: #1917490
      2b723ead
  7. Nov 23, 2020
  8. May 11, 2020
    • Will Szumski's avatar
      Add extend_lists option to merge_yaml · 69a6acf7
      Will Szumski authored
      This allows you to extend lists in yaml config. This is useful, for
      example, in prometheus.yml, where it would be nice to be able to
      extend the scrape_configs to include exporters that aren't packaged
      with kolla-ansible. This would provide a mechanism to do so.
      
      Change-Id: I7a10e363f42e8ffaae3c0d2c2a758853e2cab7e1
      Related: blueprint custom-prometheus-targets
      69a6acf7
  9. Dec 11, 2019
    • Mark Goddard's avatar
      Drop python 2 support from action plugins · 3f10f708
      Mark Goddard authored
      These are executed on the local host where we run ansible-playbook,
      and we have agreed to drop Python 2 support there.
      
      Partially Implements: blueprint drop-py2-support
      Change-Id: Id2190c3a22a56f4f048afbf0f7200daa8f41a292
      3f10f708
  10. Jul 10, 2019
  11. Mar 14, 2019
  12. Dec 27, 2018
    • confi-surya's avatar
      Update hacking version · b41309ef
      confi-surya authored
      Use latest release 1.1.0 and compatible changes w.r.t pep8
      
      Change-Id: Ie5e5417a1d8481bb59d516a320bd7cc1dd89591e
      b41309ef
  13. Nov 05, 2018
  14. Oct 31, 2018
  15. Jun 12, 2018
  16. Mar 16, 2018
    • Doug Szumski's avatar
      Support parsing ini files with no sections · d32c7082
      Doug Szumski authored
      Services such as Zookeeper and Kafka use ini files which do not
      explicitly specify sections. This change supports merging ini
      files with no sections, so that the configuration for these
      services follows the example configuration provided for them
      as closely as possible.
      
      Closes-Bug: #1756101
      Partially-Implements: blueprint monasca-roles
      Change-Id: I1061729875e5545c7af7d80779f9c2124b6c7134
      d32c7082
  17. Jun 15, 2017
    • Jeffrey Zhang's avatar
      Use unified vars in task · 03e1b05f
      Jeffrey Zhang authored
      Ansible task support vars directive, no need implement another one in
      merge_config. This patch remove the vars directive in merge_config
      action plugin.
      
      Change-Id: I33648a2b6e39b4d49ce76eb66fbf2522721f8c68
      03e1b05f
  18. Feb 16, 2017
    • Abel Lopez's avatar
      Change python interpreter · 8b90fb6d
      Abel Lopez authored
      There is inconsistent use of either `/usr/bin/python` or
      `/usr/bin/env python`. This makes for unexpected results when a
      user might be using a virtualenv.
      
      Change-Id: Ibb030f920a8869f9113ade70b66a921cc815060d
      8b90fb6d
  19. Feb 08, 2017
  20. Jan 04, 2017
  21. Oct 20, 2016
  22. Sep 26, 2016
  23. Sep 12, 2016
  24. Aug 31, 2016
    • Sean Mooney's avatar
      generate bifrost yaml configs · d7dfae75
      Sean Mooney authored
      - This change indroduces a merge_yaml action_plugin
      - This change generates bifrost yaml configs.
      
      Change-Id: I9814e6a5d55cbd46c4b60c06ed70ed54a575bd2f
      Implements: blueprint bifrost-support
      d7dfae75
  25. Aug 29, 2016
    • Lu lei's avatar
      Use six.StringIO · 46e8196f
      Lu lei authored
      In links: http://pythonhosted.org/six/, we know 'cStringIO' is
      a module of python 2.x, but in python3.x module 'io' has the
      same function as 'cStringIO' in python2.x. So here we use
      six.stringIO instead.
      
      TrivialFix.
      
      Change-Id: I8022b92b186e239cd76a36dab7766301bf96d2c4
      46e8196f
  26. May 30, 2016
    • Jeffrey Zhang's avatar
      Fix the incompatibility for ansible 2.1.0 · 3545e6d5
      Jeffrey Zhang authored
      Ansible 2.1.0 has lots of change and the plugin is not compatible
      between 2.0.0 and 2.1.0. This change fix the gap.
      
      * fix the signature change for _make_tmp_path in ansible 2.1.0
      * fix the common_options in the kolla_docker.py
      
      Change-Id: I05f5f05581c8bd625cd868fa0db549d0c60a7043
      Closes-Bug: #1586018
      3545e6d5
  27. May 24, 2016
    • Jeffrey Zhang's avatar
      Bump the ansible to 2 · 491822c5
      Jeffrey Zhang authored
      DocImpact
      
      Change-Id: I3cdfbf84919de80f535c030bd146787ecda40dec
      partial-Implements: blueprint ansible2
      491822c5
  28. Dec 22, 2015
    • SamYaple's avatar
      pep8 the ansible modules · 4199634e
      SamYaple authored
      By ignoring the appropriate tests that pep8 does we can properly run
      *most* of the pep8 tests on all of our modules allowing for a more
      consistent coding style.
      
      Closes-Bug: #1528431
      Change-Id: I33f27a250d06d4f044267aa3ad189e092789b8df
      4199634e
    • SamYaple's avatar
      Simplify config creation · ed82afa8
      SamYaple authored
      Convert config creation from a playbook to an action_plugin. This
      reduces the complexity and confusion while retaining the same augment
      structure and flexibility.
      
      This allows us to remove the 0-byte files as requirements. They will
      still be used if they are present (this means we require additional
      documentation around them).
      
      DocImpact
      Closes-Bug: #1528430
      Change-Id: I2c789f6be9f195c7771ca093a6d59499564b4740
      ed82afa8
Loading