Giter Site home page Giter Site logo

backupninja-formula's People

Contributors

alxwr avatar daks avatar myii avatar noelmcloughlin avatar semantic-release-bot avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

alxwr daks myii fellek

backupninja-formula's Issues

[BUG] Does not work out of the box, without any pillar

Your setup

Formula commit hash / release tag

using semantic-release version from #4

Versions reports (master & minion)

VM default-debian-10-3001-py3

Pillar / config used

No pillar used

Bug details

Describe the bug

When running without any pillar, with only state backupninja

       Traceback (most recent call last):
         File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 400, in render_jinja_tmpl
           output = template.render(**decoded_context)
         File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
           return original_render(self, *args, **kwargs)
         File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
           return self.environment.handle_exception(exc_info, True)
         File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
           reraise(exc_type, exc_value, tb)
         File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
           raise value.with_traceback(tb)
         File "<template>", line 4, in top-level template code
         File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1073, in make_module
           return TemplateModule(self, self.new_context(vars, shared, locals))
         File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1152, in __init__
           body_stream = list(template.root_render_func(context))
         File "/tmp/kitchen/var/cache/salt/minion/files/base/backupninja/map.jinja", line 30, in top-level template code
           {% set backupninja = salt['defaults.merge'](defaults, backupninja) %}
         File "/usr/lib/python3/dist-packages/salt/modules/defaults.py", line 134, in merge
           return dictupdate.update(merged, src, merge_lists=merge_lists)
         File "/usr/lib/python3/dist-packages/salt/utils/dictupdate.py", line 45, in update
           raise TypeError("Cannot update using non-dict types in dictupdate.update()")
       TypeError: Cannot update using non-dict types in dictupdate.update()
       [DEBUG   ] Out: 
       /tmp/kitchen/var/cache/salt/minion/files/base/backupninja/map.jinja(30):
       ---

Adding a simple pillar

backupninja: {}

seems enough to be able to use this formula without customization.

Steps to reproduce the bug

Expected behaviour

I expect this formula to run without any specific pillar and only the meta-state backupninja

Attempts to fix the bug

Nothing at the moment

Additional context

Configuring duplicity in actions

Duplicity config requires both root and group parameters, trying to configure duplicity action currently will mix those values.

Example:

testconnect: no
source:
  - /home

will output

[source]
/home
testconnect = no

when it should be

testconnect = no

[source]
/home

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.