Giter VIP home page Giter VIP logo

puppet-module-keepalived's People

Contributors

abh avatar brunoleon avatar emilienm avatar

Stargazers

 avatar  avatar

Watchers

 avatar

puppet-module-keepalived's Issues

Notify is a metaparam, rename to notify_any

Hi,

This module resource keepalived::instance has a "notify" parameter, which overlaps with same name metaparameter.

notify is a metaparam; this value will inherit to all contained resources in the keepalived::instance definition

It should be renamed to something else as it is used for configuration option "notify".
Same remark in sync_group.

Patch is attached.
puppet-keepalived-notify_any.diff.txt

Getting undefined method error

With the most recent changes to keepalived_instance.erb, I'm getting an error when running puppet on a client tagged with keepalived

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template keepalived/keepalived_instance.erb:
  Filepath: /etc/puppet/modules/keepalived/templates/keepalived_instance.erb
  Line: 19
  Detail: undefined method `uniq' for "10.3.1.143":String
 at /etc/puppet/modules/keepalived/manifests/instance.pp:41 on node cmgmt01p1.corp.sharpcast.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

The yaml data that is used on this host

  keepalived::instance:
    "52":
      interface: "eth0"
      virtual_ips: "%{::vip_ip}"
      state: %{::vip_state}
      priority: %{::vip_priority}

The variable, vip_ip is a custom fact that is generated with this code

Facter.add("vip_ip") do
    setcode do
      Facter::Util::Resolution.exec("dig +short `hostname -f | sed 's/p[1,2]//g'`")
    end

So the value of the variable is coming out as a string, and you can't apply a uniq operator to it. If I remove the uniq operator, things work again. Am I missing something here?

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.