Giter Club home page Giter Club logo

Comments (10)

mcanevet avatar mcanevet commented on September 25, 2024

ping @raphink

from puppet-postfix.

Olm666 avatar Olm666 commented on September 25, 2024

+1 ping @raphink ?

from puppet-postfix.

markeganfuller avatar markeganfuller commented on September 25, 2024

I had a look at trying to get regexes to work via augeas and gave up in the end, instead I ended up doing the following:

profile::postfix::virtual:
    - "/rob.*/ root"
$virtual = lookup('profile::postfix::virtual',
{
  value_type    => Array,
  default_value => [],
  merge         => 'unique',
})

# A bit of a hack to work around the fact augeaus really doesn't want to
# use regexes in key names
#
# Note the double quote within double quote (which works here)
postfix::hash { '/etc/postfix/virtual':
  content => "${ $virtual.join("\n") }\n",
}

from puppet-postfix.

raphink avatar raphink commented on September 25, 2024

@jordiclariana @OlivierLM do you have a specific example of the syntax you'd like to pass?

from puppet-postfix.

Olm666 avatar Olm666 commented on September 25, 2024

As an example, this virtual map shall work :

/^.*-owner\@liste\.unicaen\.fr$/ sympabounce:
/^bounce\+.*/ sympabounce:
/^.+(?<!-owner)\@liste\.unicaen\.fr$/ sympa:

from puppet-postfix.

raphink avatar raphink commented on September 25, 2024

@OlivierLM ok, and what would the Puppet code you'd expect to use for that?

from puppet-postfix.

Olm666 avatar Olm666 commented on September 25, 2024

For the first line :

  postfix::transport {'/^.*-owner\@liste\.unicaen\.fr':
    ensure      => present,
    destination => 'sympabounce',
  }

from puppet-postfix.

raphink avatar raphink commented on September 25, 2024

@OlivierLM #225 should fix it. Can you test it?

from puppet-postfix.

Olm666 avatar Olm666 commented on September 25, 2024

Don't know how to try this easily :(

from puppet-postfix.

raphink avatar raphink commented on September 25, 2024

Fixed in #225

from puppet-postfix.

Related Issues (20)

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.